mirror of
https://github.com/ksherlock/ensoniq-buddy.git
synced 2025-01-17 23:30:45 +00:00
27 lines
727 B
Makefile
27 lines
727 B
Makefile
|
|
|
|
all: js/application.js js/preact.min.js | js
|
|
|
|
SRC = src/main.jsx src/application.jsx src/note_input.jsx src/wave_data.jsx src/utils.js \
|
|
src/input.jsx src/duration_input.jsx
|
|
|
|
js/application.js : $(SRC)
|
|
esbuild --bundle --jsx-factory=preact.h --jsx-fragment=preact.Fragment --format=esm \
|
|
src/main.jsx --outfile=js/application.js
|
|
|
|
|
|
js/preact.min.js : node_modules/preact/dist/preact.min.js
|
|
cp node_modules/preact/dist/preact.min.js js/preact.min.js
|
|
|
|
js :
|
|
mkdir js
|
|
|
|
# js/application.js: src/application.jsx
|
|
# babel --react --transform-react-jsx pragma=h --loose --no-comments --runtime polyfill=false \
|
|
# --minify-constant-folding --minify-numeric-literals \
|
|
# -o $@ $<
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
$(RM) js/application.js
|