-
Notifications
You must be signed in to change notification settings - Fork 29
/
Makefile
29 lines (24 loc) · 895 Bytes
/
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
docker:
docker-compose pull && docker-compose up -d
pkg :
rm -rf ./bin && mkdir ./bin
cd api && npm install
npm install && pkg petio.js --out-path "./bin"
mkdir ./bin/views
cd frontend && npm install && REACT_APP_ENV=pkg npm run build && mv build ../bin/views/frontend
cd admin && npm install && REACT_APP_ENV=pkg npm run build && mv build ../bin/views/admin
zip -r petio.zip ./bin
rm -rf ./bin
npm run stamp-version
clean:
rm -rf ./bin
rm -rf node_modules && rm -rf admin/node_modules && rm -rf frontend/node_modules && rm -rf api/node_modules
rm -rf admin/build && rm -rf frontend/build
run:
cd api && npm install
rm -rf ./views && mkdir ./views
cd frontend && npm install && REACT_APP_ENV=pkg npm run build && mv build ../views/frontend
cd admin && npm install && REACT_APP_ENV=pkg npm run build && mv build ../views/admin
npm install
docker-stop:
docker-compose down