https://pvzm.net/ to play [Read-only GitHub mirror] pvzm.net
modded vs pvz plants-vs-zombies plantsvszombies javascript online zombie noads jspvz pvzm game plants plant
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

create cloudflare pages build script

authored by

Clay and committed by
GitHub
00801e67 8dd4b0f9

+30
+30
scripts/build.sh
··· 1 + #!/bin/bash 2 + set -e 3 + 4 + npm install -g oxlint oxfmt esbuild html-minifier-terser 5 + 6 + # lint & format 7 + oxlint . || true 8 + oxfmt --write . "**/*.{js,md,html,css,yml}" 9 + 10 + # bundle entry point 11 + esbuild game/js/CPlants.js \ 12 + --bundle --minify --sourcemap \ 13 + --outfile=game/js/CPlants.js --allow-overwrite 14 + 15 + # minify remaining js & css 16 + find . -type f \( -name "*.js" -o -name "*.css" \) \ 17 + -not -path "./node_modules/*" \ 18 + -not -name "CPlants.js" | \ 19 + xargs -P4 -I{} esbuild {} \ 20 + --minify --sourcemap \ 21 + --outdir=. --allow-overwrite & 22 + 23 + # minify html 24 + find . -type f -name "*.html" \ 25 + -not -path "./node_modules/*" | \ 26 + xargs -P4 -I{} html-minifier-terser \ 27 + --collapse-whitespace --remove-comments --remove-tag-whitespace \ 28 + --minify-css true --minify-js true -o {} {} & 29 + 30 + wait