1
0
Fork 0
mirror of https://github.com/demostf/demo.js synced 2026-06-03 16:44:12 +02:00
demo.js/Makefile

28 lines
479 B
Makefile

tsc=node_modules/.bin/tsc
.PHONY: all
all: build
node_modules: package.json
npm install --deps
.PHONY: watch
watch: node_modules
node $(tsc) --watch
.PHONY: build
build: node_modules
node $(tsc)
node $(tsc) -p tsconfig.es6.json
.PHONY: test
test: node_modules
node node_modules/.bin/mocha --opts mocha.opts
.PHONY: unit
unit: node_modules
node node_modules/.bin/mocha --opts unit.mocha.opts
.PHONY: lint
lint: node_modules
node_modules/.bin/tslint -p tsconfig.json