1
0
mirror of https://github.com/hrfee/jfa-go.git synced 2024-12-22 17:10:10 +00:00
jfa-go/site/Makefile
Harvey Tindall b8d9d22545
add landing page for jfa-go.com; move wiki
located in `site/`. Wiki now @ wiki.jfa-go.com.
2021-06-30 00:32:03 +01:00

24 lines
1.0 KiB
Makefile

all:
-mkdir -p out
cp index.html 404.html favicon.ico out/
cp -r node_modules/remixicon/fonts/remixicon.css node_modules/remixicon/fonts/remixicon.woff2 out/
npx esbuild --bundle base.css --outfile=out/bundle.css --external:remixicon.css --minify
npx uncss index.html 404.html --stylesheets out/bundle.css > out/_bundle.css
mv out/_bundle.css out/bundle.css
npx uncss index.html 404.html --stylesheets out/remixicon.css > out/_remixicon.css
mv out/_remixicon.css out/remixicon.css
npx esbuild --bundle ts/main.ts --outfile=out/main.js --minify
cp ../static/* out/
debug:
-mkdir -p out
cp index.html 404.html favicon.ico out/
cp -r node_modules/remixicon/fonts/remixicon.css node_modules/remixicon/fonts/remixicon.woff2 out/
npx esbuild --bundle base.css --outfile=out/bundle.css --external:remixicon.css --minify
npx esbuild --bundle ts/main.ts --sourcemap --outfile=out/main.js --minify
cp ../static/* out/
monitor:
npx live-server --watch=out --open=out/index.html &
npx nodemon -e html,css,ts -i out --exec "make debug"