1 | BIN := node_modules/.bin
|
2 |
|
3 | # these are not files
|
4 | .PHONY: clean test patch
|
5 |
|
6 | # disable default suffixes
|
7 | .SUFFIXES:
|
8 |
|
9 | all: yarn.lock
|
10 |
|
11 | yarn.lock:: package.json
|
12 | @yarn install --production=false
|
13 | @touch -mr $@ $<
|
14 |
|
15 | yarn.lock:: node_modules
|
16 | @yarn install --production=false --check-files
|
17 | @touch -mr $@ $<
|
18 |
|
19 | node_modules:
|
20 | mkdir -p $@
|
21 |
|
22 | patch:
|
23 | npm version patch
|
24 | npm publish
|
25 |
|
26 | clean:
|
27 | rm -rf node_modules
|
28 |
|
29 | test: yarn.lock
|
30 | $(error No tests) |
\ | No newline at end of file |