9 lines
284 B
Bash
Executable File
9 lines
284 B
Bash
Executable File
#!/bin/sh
|
|
|
|
SHA=$(git rev-parse --short HEAD)
|
|
bun build ./src/js/main.js \
|
|
--outfile ./public/bundle.js \
|
|
--target browser
|
|
printf "////\n// version: %s\n\n" "$SHA" | cat - ./public/bundle.js > ./public/bundle.tmp.js
|
|
mv ./public/bundle.tmp.js ./public/bundle.js
|