js-wmf/Makefile

19 lines
427 B
Makefile
Raw Permalink Normal View History

2020-03-01 04:55:36 +00:00
.PHONY: all
all: node browser
.PHONY: src/index.ts
js/index.js: src/index.ts
#tsc src/index.ts
tsc
node: js/index.js
webpack-cli --config misc/webpack.node.config.js
browser: js/index.js
webpack-cli --config misc/webpack.browser.config.js
.PHONY: dist prod
dist prod: js/index.js
webpack-cli --mode=production --config misc/webpack.node.config.js
webpack-cli --mode=production --config misc/webpack.browser.config.js