forked from nodayoshikazu/jsonselect-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
46 lines (37 loc) · 1.61 KB
/
Makefile
File metadata and controls
46 lines (37 loc) · 1.61 KB
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 lib/ -c src/
test:
node lib/index.js ":root" < test/sample1.json
node lib/index.js ":root" -f test/sample1.json
node lib/index.js ":root" -f test/sample1.json -o test/root-out.obj
node lib/index.js ".languagesSpoken .lang" -f test/sample1.json
node lib/index.js ".drinkPreference :first-child" -f test/sample1.json
node lib/index.js ".seatingPreference :nth-child(1)" -f test/sample1.json
node lib/index.js ".weight" -f test/sample1.json
node lib/index.js ".lang" -f test/sample1.json
node lib/index.js ".favoriteColor" -f test/sample1.json
node lib/index.js "string.favoriteColor" -f test/sample1.json
node lib/index.js "string:last-child" -f test/sample1.json
node lib/index.js "string:nth-child(-n+2)" -f test/sample1.json
node lib/index.js "string:nth-child(odd)" -f test/sample1.json
node lib/index.js "string:nth-last-child(1)" -f test/sample1.json
node lib/index.js ":root" -f test/sample1.json
node lib/index.js "number" -f test/sample1.json
node lib/index.js ":has(:root > .preferred)" -f test/sample1.json
node lib/index.js ".preferred ~ .lang" -f test/sample1.json
node lib/index.js ":has(.lang:val(\"Spanish\")) > .level" -f test/sample1.json
node lib/index.js ".lang:val(\"Bulgarian\") ~ .level" -f test/sample1.json
node lib/index.js ".weight:expr(x<180) ~ .name .first" -f test/sample1.json
dist: clean init docs build test
publish: dist
npm publish