-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
48 lines (38 loc) · 1.09 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
######################
# BUILD
init:
rm -rf build_temp
mkdir build_temp
build_search:
# build search
(cd search && npm run import && npm run build)
# mv search/dist build_temp
# mv build_temp/dist build_temp/search
cp -r search/dist/* build_temp
build_view:
# build search
(cd view && npm run import && npm run build)
#mv view/dist build_temp
#mv build_temp/dist build_temp/view
mv view/dist/index.html view/dist/view.html
cp -r view/dist/* build_temp
manifest:
# manifest
cp -r meta/* build_temp
zip:
#zip
(rm -f Approvals.zip && cd build_temp && zip ../Approvals.zip -r .)
build:
make init
make build_search
make build_view
make manifest
make zip
######################
# INSTALL
######################
install:
(cd service && rm -rf node_modules && rm package-lock.json && npm --force install)
(cd page && rm -rf node_modules && rm package-lock.json && npm --force install)
(cd search && rm -rf node_modules && rm package-lock.json && npm --force install && npm run import)
(cd view && rm -rf node_modules && rm package-lock.json && npm --force install && npm run import)