mirror of
https://github.com/demostf/demo.js
synced 2026-06-04 09:04:13 +02:00
update makefile
This commit is contained in:
parent
8b1ea168e6
commit
b152231e7c
2 changed files with 14 additions and 10 deletions
19
Makefile
19
Makefile
|
|
@ -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)
|
||||||
|
|
|
||||||
|
|
@ -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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue