1
0
Fork 0
mirror of https://github.com/demostf/demo.js synced 2026-06-04 00:54:14 +02:00

update makefile

This commit is contained in:
Robin Appelman 2016-12-22 00:19:48 +01:00
commit b152231e7c
2 changed files with 14 additions and 10 deletions

View file

@ -1,12 +1,15 @@
TS_JS := $(TS_SRC:.ts=.js)
tsc=node_modules/.bin/tsc
.PHONY: all tsc
.PHONY: all
all: build
all: $(TS_JS)
node_modules: package.json
npm install --deps
$(TS_JS): %.js: %.ts js.stub
$(TSLINT) $<
.PHONY: watch
watch: node_modules
node $(tsc) --watch
js.stub: $(TS_SRC)
$(TSC) $^
@touch $@
.PHONY: build
build: node_modules
node $(tsc)

View file

@ -7,13 +7,14 @@
},
"main": "demo.js",
"dependencies": {
"bit-buffer": "icewind1991/bit-buffer#readBitStream",
"bit-buffer": "icewind1991/bit-buffer#typings",
"clone": "^2.1.0",
"minimist": "1.1.x",
"typedarray-to-buffer": "^3.1.2"
},
"devDependencies": {
"@types/node": "^6.0.52",
"babel-preset-es2015-node6": "^0.4.0"
"babel-preset-es2015-node6": "^0.4.0",
"typescript": "^2.1.4"
}
}