UNPKG

500 BPlain TextView Raw
1.PHONY: test
2
3FLAGS=--noUnusedLocals --removeComments --strictNullChecks --lib es6 -t es5 --outDir dist
4
5build:
6 tsc ${FLAGS} src/main.ts
7
8watch:
9 tsc ${FLAGS} -w src/main.ts
10
11types: build
12 ./build-jars.sh
13 \@types/build.sh
14
15test: build
16 ./bin/1c help
17 ./bin/1c version
18 ./bin/1c env
19 rm -rf test/dist
20 cd test && ../bin/1c install
21 cd test && ../bin/1c build -c dist -u main.ts
22 cd test && ../bin/1c build -o dist/test.js nashorn.ts
23 cd test && ../bin/1c run dist/test.js
24 test -f test/dist/main.js