-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
46 lines (37 loc) · 1.71 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
PATH := ./node_modules/.bin:${PATH}
.PHONY : init clean-docs clean build test dist publish
init:
npm install
docs:
docco src/*.coffee
clean-docs:
rm -rf docs/
clean: clean-docs
rm -rf lib/ test/*.js
build:
./node_modules/coffee-script/bin/coffee -o ./jsonselect-cli/ -c src/
test:
node ./jsonselect-cli ":root" < test/sample1.json
node ./jsonselect-cli ":root" -f test/sample1.json
node ./jsonselect-cli ":root" -f test/sample1.json -o test/root-out.obj
node ./jsonselect-cli ".languagesSpoken .lang" -f test/sample1.json
node ./jsonselect-cli ".drinkPreference :first-child" -f test/sample1.json
node ./jsonselect-cli ".seatingPreference :nth-child(1)" -f test/sample1.json
node ./jsonselect-cli ".weight" -f test/sample1.json
node ./jsonselect-cli ".lang" -f test/sample1.json
node ./jsonselect-cli ".favoriteColor" -f test/sample1.json
node ./jsonselect-cli "string.favoriteColor" -f test/sample1.json
node ./jsonselect-cli "string:last-child" -f test/sample1.json
node ./jsonselect-cli "string:nth-child(-n+2)" -f test/sample1.json
node ./jsonselect-cli "string:nth-child(odd)" -f test/sample1.json
node ./jsonselect-cli "string:nth-last-child(1)" -f test/sample1.json
node ./jsonselect-cli ":root" -f test/sample1.json
node ./jsonselect-cli "number" -f test/sample1.json
node ./jsonselect-cli ":has(:root > .preferred)" -f test/sample1.json
node ./jsonselect-cli ".preferred ~ .lang" -f test/sample1.json
node ./jsonselect-cli ":has(.lang:val(\"Spanish\")) > .level" -f test/sample1.json
node ./jsonselect-cli ".lang:val(\"Bulgarian\") ~ .level" -f test/sample1.json
node ./jsonselect-cli ".weight:expr(x<180) ~ .name .first" -f test/sample1.json
dist: clean init docs build test
publish: dist
npm publish