-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
44 lines (35 loc) · 869 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
44
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
patch:
npx kaoscript ./scripts/patch.ks$(if $(value dir), "$(dir)")
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/parser --force
npm publish
dev: export DEBUG = 1
dev: export SKIP_KIND = 0
dev:
@# clear terminal
@make cls
@# tests
npx kaoscript test/parse.dev.ks "parse test"
.PHONY: test coverage