-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
43 lines (34 loc) · 834 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
40
41
42
43
test:
ifeq ($(g),)
node_modules/.bin/mocha --colors --check-leaks --require kaoscript/register --reporter spec "test/*.test.ks"
else
node_modules/.bin/mocha --colors --check-leaks --require kaoscript/register --reporter spec -g "$(g)" "test/*.test.ks"
endif
coverage:
ifeq ($(g),)
./node_modules/@zokugun/istanbul.cover/src/cli.js
else
./node_modules/@zokugun/istanbul.cover/src/cli.js "$(g)"
endif
sync:
npx kaoscript ./scripts/sync.ks
clean:
npx kaoscript --clean
cls:
printf '\033[2J\033[3J\033[1;1H'
update:
@make clean
rm -rf node_modules package-lock.json
nrm use local
npm i
local:
nrm use local
npm unpublish @kaoscript/source-generator --force
npm publish
dev: export DEBUG = 1
dev:
@# clear terminal
@make cls
@# tests
npx kaoscript test/generate.dev.ks "generate test"
.PHONY: test coverage sync