-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
106 lines (73 loc) · 1.81 KB
/
Makefile
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
# .DEFAULT_GOAL := local
# .PHONY: tests
SHELL := /bin/bash
# General Commands
help:
cat Makefile
install:
npm install
update:
npm update
npm audit fix
lock:
npm install --package-lock-only
build-dev:
npm run build
build-prod:
npm run build-prod
build: build-dev
dev:
npm install --dev
clean:
npm --rm
fresh: clean install
# Development Commands
test-dev:
npm run test-dev
test:
npm run test
test-run-build:
. scripts/build_prod_test.sh
. scripts/build_prod_test.sh restore
test-run-build-restore:
. scripts/build_prod_test.sh restore
eject-dev:
npm run eject-dev
config:
sh node_modules/genericsuite/scripts/change_env_be_endpoint.sh dev
config_qa:
sh node_modules/genericsuite/scripts/change_env_be_endpoint.sh qa
config_demo:
sh node_modules/genericsuite/scripts/change_env_be_endpoint.sh demo
deploy: config
sh node_modules/genericsuite/scripts/aws_deploy_to_s3.sh
deploy_qa: config_qa
sh node_modules/genericsuite/scripts/aws_deploy_to_s3.sh
deploy_demo: config_demo
sh node_modules/genericsuite/scripts/aws_deploy_to_s3.sh
run: config
sh node_modules/genericsuite/scripts/run_app_frontend.sh dev
run_qa: config_qa
sh node_modules/genericsuite/scripts/run_app_frontend.sh qa
server: run
start: run
local: run
run_prod: build-prod
# sh run_app_frontend.sh
npm start
tailwind:
# npx tailwindcss -i ./src/input.css -o ./dist/output.css --watch
npx tailwindcss -i ./src/input.css -o ./public/output.css --watch
add_submodules:
sh node_modules/genericsuite/scripts/add_github_submodules.sh
create_ssl_certs:
sh node_modules/genericsuite/scripts/create_ssl_certs.sh
## NPM scripts library
config_lib:
sh scripts/change_env_be_endpoint.sh dev
run_lib: config_lib
sh scripts/run_app_frontend.sh dev
pre-publish:
sh scripts/npm_publish.sh pre-publish
publish:
sh scripts/npm_publish.sh publish