forked from dev-id/draft
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (26 loc) · 791 Bytes
/
Makefile
File metadata and controls
35 lines (26 loc) · 791 Bytes
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
all: install clean cards score js
node := ${CURDIR}/node_modules
install:
npm install
mkdir -p public/lib
ln -sf ${node}/normalize.css/normalize.css public/lib
ln -sf ${node}/react/dist/react.js public/lib
ln -sf ${node}/engine.io-client/engine.io.js public/lib
ln -sf ${node}/traceur/bin/traceur.js public/lib
ln -sf ${node}/traceur/bin/traceur-runtime.js public/lib
ln -sf ${node}/ee/ee.js public/lib
ln -sf ${node}/utils/utils.js public/lib
clean:
rm -f data/AllSets.json
cards: data/AllSets.json
node src/make cards
custom:
node src/make custom
data/AllSets.json:
curl -so data/AllSets.json https://mtgjson.com/json/AllSets.json
score:
-node src/make score #ignore errors
js:
node_modules/.bin/traceur --out public/lib/app.js public/src/init.js
run: js
node run