sheetjs_sheetjs/demos/rollup/Makefile

24 lines
497 B
Makefile
Raw Normal View History

2017-06-08 06:19:11 +00:00
TOOL=rollup
.PHONY: all
2017-09-24 23:40:09 +00:00
all: $(TOOL).min.js worker.min.js
2017-06-08 06:19:11 +00:00
$(TOOL).min.js: $(TOOL).js
uglifyjs $< > $@
.PHONY: $(TOOL).js
$(TOOL).js:
# node
rollup -c rollup.config.node.js
node -e 'require("./rollup.node")'
# browser
rollup -c
2017-09-24 23:40:09 +00:00
rollup -c rollup.config.worker.js
worker.min.js: worker.js
uglifyjs $< > $@
2017-06-08 06:19:11 +00:00
.PHONY: init
init:
2021-10-03 01:41:36 +00:00
#@npm install @rollup/plugin-node-resolve @rollup/plugin-commonjs
@mkdir -p node_modules; cd node_modules; if [ ! -e xlsx ]; then ln -s ../../../ xlsx; fi; cd -