2021-10-09 09:15:13 -04:00
|
|
|
|
|
|
|
|
|
|
|
all: js/application.js js/preact.min.js | js
|
|
|
|
|
2021-10-23 20:15:34 -04:00
|
|
|
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
|
2021-10-13 23:28:06 -04:00
|
|
|
|
|
|
|
js/application.js : $(SRC)
|
2021-10-10 23:52:37 -04:00
|
|
|
esbuild --bundle --jsx-factory=preact.h --jsx-fragment=preact.Fragment --format=esm \
|
|
|
|
src/main.jsx --outfile=js/application.js
|
2021-10-09 09:15:13 -04:00
|
|
|
|
|
|
|
|
|
|
|
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
|