forked from gush-labs/kazan
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
43 lines (36 loc) · 881 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
30
31
32
33
34
35
36
37
38
39
40
41
42
# Makefile script to quickly build and run both server
# and client. Just execute "make <command to run>" like
# "make client-build"
client-lint:
cd client; \
npm ci; \
npm run lint-ci
client-build: client-lint
@echo "CLIENT: Building the client for web..."
cd client; \
npm ci; \
npm run build; \
cp ./dist/index.html ./dist/404.html
@echo "CLIENT: Build complete!"
client-run:
@echo "CLIENT: Running web-server for the client.. "
cd client; \
npm ci; \
npm run dev
server-build:
@echo "SERVER: Building the server..."
cd server; \
npm ci; \
npm run build
@echo "SERVER: Build complete"
server-build-prod:
@echo "SERVER: Building the server for production..."
cd server; \
npm ci; \
npm run build-prod;
@echo "SERVER: Production build complete"
server-run: server-build
@echo "SERVER: Running the server..."
cd server; \
npm ci; \
npm run start