js-wmf/Makefile
2020-02-29 23:55:36 -05:00

19 lines
427 B
Makefile

.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