forked from PolicyEngine/policyengine-app
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (30 loc) · 708 Bytes
/
Makefile
File metadata and controls
38 lines (30 loc) · 708 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
REACT_APP_DEBUG ?= false
install:
npm ci
pip3 install -U black
build:
npm run build
debug-no-lint:
ESLINT_NO_DEV_ERRORS=true npm start
debug:
REACT_APP_DEBUG=true npm start
test:
node metadata_fetch.mjs
npm run test
deploy-setup:
cp gcp/.gcloudignore ./.gcloudignore
cp gcp/app.yaml ./app.yaml
cp gcp/main.py ./main.py
cp gcp/social_card_tags.py ./social_card_tags.py
cp gcp/requirements.txt ./requirements.txt
cp -r social_cards/ build/static/media/social_cards
deploy: build deploy-setup
gcloud config set app/cloud_build_timeout 1000
y | gcloud app deploy --project policyengine-app
rm app.yaml
rm .gcloudignore
rm main.py
rm requirements.txt
format:
black . -l 79
npm run fix