-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
40 lines (29 loc) · 1.1 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
container_name = poem-react-c7
place-new-bundle:
./keep-latest-bundle.sh
docker exec -u user -t $(container_name) /home/user/collectstatic.sh
docker exec -u user -t $(container_name) /home/user/restarthttpd.sh
devel-watch:
rm -rf frontend/bundles/reactbundle/* ; \
node_modules/.bin/webpack --config webpack.config.js --progress --mode development --watch
devel-django-server:
docker exec -ti $(container_name) /home/user/run-django-server.sh
devel-webpack-server:
node_modules/.bin/webpack-dev-server --config webpack.devserver.config.js --progress
devel-webpack-server-hmr:
node_modules/.bin/webpack-dev-server --config webpack.devserver.config.js --progress --hot
devel-bundle:
rm -rf frontend/bundles/reactbundle/* ; \
node_modules/.bin/webpack --config webpack.config.js --progress --mode development
prod-bundle:
rm -rf frontend/bundles/reactbundle/* ; \
node_modules/.bin/webpack --config webpack.config.js --progress --mode production
py-audit-view:
docker exec -t $(container_name) ./safety.sh
test-front:
rm -rf coverage
npm test
js-audit-view:
npm audit
js-audit-fix:
npm audit fix