-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
executable file
·39 lines (27 loc) · 881 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
39
default: build
config/secret.json:
[ ! -f config/secret.json ] && cp config/secret.template.json config/secret.json
node_modules:
yarn
flow-typed: node_modules
./node_modules/.bin/flow-typed install
dev: build lint type test
run: node_modules config/secret.json
./node_modules/.bin/nodemon ./dist/src/app.js --watch dist -e js \
| ./node_modules/.bin/bunyan
type: node_modules
./node_modules/.bin/flow status
test: node_modules
./node_modules/.bin/jest
lint: node_modules
./node_modules/.bin/eslint src test
clean:
rm -rf dist
watch:
@which watchman-make > /dev/null || ( echo 'install watchman' && exit 1 )
watchman-make \
-p 'src/**/*.js' 'src/*.js' 'test/**/*.js' 'test/*.js' -t dev
build: node_modules
./node_modules/.bin/babel src --out-dir dist/src --source-maps inline
cp ./package.json ./dist/.
.PHONY: clean default run lint build test watch ci