forked from linsight/react-keyboard-event-handler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
executable file
·40 lines (24 loc) · 861 Bytes
/
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
.PHONY: default lint test build
default: deps-node
test-watch: deps-node
docker-compose run --rm app npm run test:watch
test: deps-node
docker-compose run --rm app npm test
lint: deps-node
docker-compose run app npm run lint
build: deps-node
docker-compose run --rm app npm run build
demo: deps-node
docker-compose run --rm app npm run build:demo
demo-dev: deps-node
node node_modules/webpack-dev-server/bin/webpack-dev-server --config webpack.config.demo.js --host=0.0.0.0 --content-base=demo/dist --hot --inline --watch
################################################################################
# Node
.PHONY: deps-node clean-deps-node
NODE_BINS = node_modules/.bin
$(NODE_BINS): node_modules
node_modules: package.json
npm install -q --no-optional --unsafe-perm
@touch node_modules
@touch $(NODE_BINS)
deps-node: $(NODE_BINS)