-
Notifications
You must be signed in to change notification settings - Fork 67
/
Copy pathMakefile
39 lines (28 loc) · 776 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
ESLINT = node_modules/.bin/eslint
LAB = ./node_modules/lab/bin/lab
BABEL = ./node_modules/.bin/babel
KNEX_VERSIONS = 0.8 0.9 0.10 0.11 0.12 0.13 0.14 0.15 0.16 0.17 0.18 0.19 0.20 0.21 0.95 1.0 2.0 3.0 latest
.PHONY: clean test lint lint-quiet watch build test-debug $(KNEX_VERSIONS)
default: build
clean:
-rm -rf ./dist
test:
${LAB} ./test/init.js
test-suite: $(KNEX_VERSIONS)
$(KNEX_VERSIONS):
-npm i knex@$@
-npm install sqlite3 --dev
-npm install @vscode/sqlite3 --dev
make test
debug:
BLUEBIRD_DEBUG=1 DEBUG=pool2 node --inspect-brk ${LAB} ./test/init.js
lint:
$(ESLINT) --ext .js --ext .jsx .
lint-quiet:
$(ESLINT) --ext .js --ext .jsx --quiet .
watch:
make clean
${BABEL} src --out-dir=dist --watch
build:
make clean
${BABEL} src --out-dir=dist