-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmakefile
36 lines (27 loc) · 1.15 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
init: copy-assets
npm install;
deploy: copy-assets build
sh deploy.sh
build:
npm run build;
download: download-full-gm download-new download-tw
download-full-gm:
mkdir -p data;\
wget -q --no-check-certificate --no-cache --no-cookies --show-progress 'https://github.com/PokeMiners/game_masters/raw/master/latest/latest.json' -O './data/gamemaster-full.json'; \
download-new:
mkdir -p data;\
wget -q --no-check-certificate --no-cache --no-cookies --show-progress 'https://github.com/pvpoke/pvpoke/raw/master/src/data/gamemaster.json' -O './data/gamemaster-pvpoke.json'; \
download-tw:
mkdir -p data;\
wget -q --no-check-certificate --no-cache --no-cookies --show-progress 'https://github.com/Bruceychen/pvpoketw/raw/master/src/data/gamemaster.json' -O './data/gamemaster-pvpoketw.json'; \
# no shadow pm
# 'https://github.com/Bruceychen/pvpoketw/raw/df05d0c4b640b17a43bf56a46e751d96ef7c457d/src/data/gamemaster.json'
genGM:
node ./task/genGM.js
copy-assets:
mkdir -p public; \
cp -r ./assets/* ./public/; \
sed -i -r "s/2020-03-20T00:00:00/`date '+%FT%T'`/g" ./public/index.html; \
cp ./public/index.html ./public/404.html
dev: copy-assets
npm run dev