mirror of
https://github.com/demostf/demo.js
synced 2026-06-04 00:54:14 +02:00
27 lines
445 B
Makefile
27 lines
445 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)
|
|
|
|
.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
|