1 | #
|
2 | # Vars
|
3 | #
|
4 |
|
5 | BIN = ./node_modules/.bin
|
6 | .DEFAULT_GOAL := all
|
7 |
|
8 | #
|
9 | # Tasks
|
10 | #
|
11 |
|
12 | node_modules: package.json
|
13 | @npm install
|
14 | @touch node_modules
|
15 |
|
16 | test: $(src) $(tests) node_modules
|
17 | @NODE_ENV=development hihat test/index.js -- \
|
18 | --debug \
|
19 | -t babelify \
|
20 | -p tap-dev-tool
|
21 |
|
22 | validate: node_modules
|
23 | @standard
|
24 |
|
25 | init:
|
26 | @git init
|
27 | @git add .
|
28 | @git commit -am "initial"
|
29 | @hub create vdux-components/form -d "vdux form component"
|
30 | @travis enable
|
31 | @git push -u origin master
|
32 |
|
33 | clean:
|
34 | @rm -rf lib
|
35 |
|
36 | build: clean
|
37 | babel src --out-dir lib
|
38 |
|
39 | all: validate test
|
40 |
|
41 | #
|
42 | # Phony
|
43 | #
|
44 |
|
45 | .PHONY: test validate clean build
|