espial/purs/Makefile
Jon Schoning 79ee31dff6 use parcel-bundler
'moment' and 'marked' can now be required() from purescript FFI
2019-01-31 22:43:58 -06:00

29 lines
691 B
Makefile

.PHONY: clean build
all: build
install:
spago install
build:
@spago build
@spago bundle --to dist/bundle.js
@npm run parcel-build
@rm -f dist/*.gz
@gzip -k dist/app.min.map
@gzip -k dist/app.min.js
@find dist -type f -printf "%kK\\t%h/%f\\n" | sort -k 2
@cp dist/app.min.map ../static/js/app.min.map
@cp dist/app.min.map.gz ../static/js/app.min.map.gz
@cp dist/app.min.js ../static/js/app.min.js
@cp dist/app.min.js.gz ../static/js/app.min.js.gz
docs:
@rm -Rf generated-docs
@purs docs ".spago/*/*/src/**/*.purs" --format html
clean:
rm -f dist/*
# inotifywait -m -r -q -e close_write --format '%T %w%f' --timefmt '%T' src | while read FILE; do echo $FILE; make; done