1
0
Fork 0
mirror of https://github.com/demostf/demo.js synced 2026-06-04 09:04:13 +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 .PHONY: watch
$(TSLINT) $< watch: node_modules
node $(tsc) --watch
js.stub: $(TS_SRC) .PHONY: build
$(TSC) $^ build: node_modules
@touch $@ node $(tsc)

View file

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