-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (29 loc) · 820 Bytes
/
Makefile
File metadata and controls
39 lines (29 loc) · 820 Bytes
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
BIN := ./node_modules/.bin
PATH := $(BIN):$(PATH)
main:
clear
@echo [main]
@echo Project: Template
ready:
@echo [ready]
@mkdir -p logs
compile-front:
@echo [compile-front]
@$(BIN)/webpack
compile-back:
@echo [compile-back]
@$(BIN)/babel server -d dst -q
lint:
@echo [lint]
@$(BIN)/eslint client server test -f stylish --color
tests:
@echo [tests]
@PORT=5555 DB=test-db LEVEL=silly $(BIN)/istanbul cover --print summary $(BIN)/_mocha -- --recursive
watch: all
@echo [watch]
@$(BIN)/chokidar 'client/**/*.js' 'server/**/*.js' 'test/**/*.js' -c 'make all'
fast-tests-watch: fast-tests
@echo [fast-tests-watch]
@$(BIN)/chokidar 'client/**/*.js' 'server/**/*.js' 'test/**/*.js' -c 'make fast-tests'
fast-tests: main ready compile-back tests
all: main ready compile-front compile-back lint tests