Permalink
Fetching contributors…
Cannot retrieve contributors at this time
50 lines (37 sloc) 788 Bytes
export PATH:=./node_modules/.bin/:$(PATH)
.PHONY: build
build: browser/ketting.min.js browser/mocha-tests.js tsbuild
.PHONY: clean
clean:
-rm -r browser/
-rm -r dist/
.PHONY: test
test: lint
nyc mocha
.PHONY: test-debug
test-debug:
mocha --inspect-brk
.PHONY: lint
lint:
tslint -c tslint.json --project tsconfig.json 'src/**/*.ts' 'test/**/*.ts'
.PHONY: fix
fix:
tslint -c tslint.json --project tsconfig.json 'src/**/*.ts' 'test/**/*.ts' --fix
.PHONY: tsbuild
tsbuild:
tsc
.PHONY: watch
watch:
tsc --watch
.PHONY: browserbuild
browserbuild:
mkdir -p browser
webpack \
--optimize-minimize \
-p \
--display-modules \
--sort-modules-by size
browser/ketting.min.js: browserbuild
browser/mocha-tests.js: browserbuild
testserver: build
ts-node test/testserver.ts