Skip to content

Commit 8d8b3dc

Browse files
committed
dev(makefile): add 'make build' by default and depend on package.json
Avoids unnecessary npm install on each build or dev invocation
1 parent 0e3799e commit 8d8b3dc

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

Makefile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
BIN=node_modules/.bin/
22
COGS=$(BIN)cogs
3+
.DEFAULT_GOAL := build
34

4-
dev:
5+
install: package.json
56
npm install
7+
8+
build: install
9+
$(COGS)
10+
11+
dev: install
612
$(COGS) -w docs/index.es6 -w react-list.es6

0 commit comments

Comments
 (0)