2021-06-29 23:23:05 +00:00
|
|
|
all:
|
|
|
|
-mkdir -p out
|
2022-01-04 21:13:09 +00:00
|
|
|
cp ../css/modal.css out/
|
2022-01-30 14:41:11 +00:00
|
|
|
NOTEMPLATE=1 node ../scripts/missing-colors.js index.html out/index.html
|
2021-06-29 23:23:05 +00:00
|
|
|
cp -r node_modules/remixicon/fonts/remixicon.css node_modules/remixicon/fonts/remixicon.woff2 out/
|
2022-01-04 21:13:09 +00:00
|
|
|
-rm -r tempts
|
|
|
|
cp -r ts tempts
|
|
|
|
../scripts/dark-variant.sh tempts
|
2023-06-12 17:49:42 +00:00
|
|
|
npx esbuild --target=es6 --bundle tempts/main.ts --outfile=out/main.js --minify
|
2021-06-30 00:16:51 +00:00
|
|
|
npx esbuild --bundle base.css --outfile=out/bundle.css --external:remixicon.css --external:modal.css --minify
|
2022-12-29 21:15:07 +00:00
|
|
|
npx tailwindcss -c tailwind.config.js -i out/bundle.css -o out/bundle.css
|
2021-06-29 23:47:22 +00:00
|
|
|
cd out && npx uncss index.html --stylesheets remixicon.css > _remixicon.css; cd ..
|
2021-06-29 23:23:05 +00:00
|
|
|
mv out/_remixicon.css out/remixicon.css
|
|
|
|
cp ../static/* out/
|
2022-01-02 22:05:26 +00:00
|
|
|
node inject.js
|
2021-06-29 23:23:05 +00:00
|
|
|
|
|
|
|
debug:
|
|
|
|
-mkdir -p out
|
2022-01-04 21:13:09 +00:00
|
|
|
cp ../css/modal.css out/
|
2022-01-30 14:41:11 +00:00
|
|
|
NOTEMPLATE=1 node ../scripts/missing-colors.js index.html out/index.html
|
2021-06-29 23:23:05 +00:00
|
|
|
cp -r node_modules/remixicon/fonts/remixicon.css node_modules/remixicon/fonts/remixicon.woff2 out/
|
2022-01-04 21:13:09 +00:00
|
|
|
-rm -r tempts
|
|
|
|
cp -r ts tempts
|
|
|
|
../scripts/dark-variant.sh tempts
|
2021-06-29 23:23:05 +00:00
|
|
|
npx esbuild --bundle base.css --outfile=out/bundle.css --external:remixicon.css --minify
|
2023-06-12 17:49:42 +00:00
|
|
|
npx esbuild --target=es6 --bundle ts/main.ts --sourcemap --outfile=out/main.js --minify
|
2022-12-29 21:15:07 +00:00
|
|
|
npx tailwindcss -c tailwind.config.js -i out/bundle.css -o out/bundle.css
|
2021-06-29 23:23:05 +00:00
|
|
|
cp ../static/* out/
|
|
|
|
|
|
|
|
monitor:
|
|
|
|
npx live-server --watch=out --open=out/index.html &
|
|
|
|
npx nodemon -e html,css,ts -i out --exec "make debug"
|