sheetjs/demos/rollup/Makefile
SheetJS 5dd16ae640 version bump 0.12.3: cleanup
- PtgList and old Ptg record support
- fleshed out ftab constants from macrosheet support
- reimplemented / fixed / removed shim functions
- demo refresh
2018-02-28 05:41:49 -05:00

24 lines
494 B
Makefile

TOOL=rollup
.PHONY: all
all: $(TOOL).min.js worker.min.js
$(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
rollup -c rollup.config.worker.js
worker.min.js: worker.js
uglifyjs $< > $@
.PHONY: init
init:
@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 -