|
|
@ -56,7 +56,7 @@ ifeq ($(DEBUG), on)
|
|
|
|
# jank
|
|
|
|
# jank
|
|
|
|
COPYTS := rm -r $(DATA)/web/js/ts; cp -r tempts $(DATA)/web/js/ts
|
|
|
|
COPYTS := rm -r $(DATA)/web/js/ts; cp -r tempts $(DATA)/web/js/ts
|
|
|
|
UNCSS := cp $(DATA)/web/css/bundle.css $(DATA)/bundle.css
|
|
|
|
UNCSS := cp $(DATA)/web/css/bundle.css $(DATA)/bundle.css
|
|
|
|
TAILWIND := --content ""
|
|
|
|
# TAILWIND := --content ""
|
|
|
|
else
|
|
|
|
else
|
|
|
|
LDFLAGS := -s -w $(LDFLAGS)
|
|
|
|
LDFLAGS := -s -w $(LDFLAGS)
|
|
|
|
SOURCEMAP :=
|
|
|
|
SOURCEMAP :=
|
|
|
@ -103,11 +103,11 @@ typescript:
|
|
|
|
scripts/dark-variant.sh tempts/modules
|
|
|
|
scripts/dark-variant.sh tempts/modules
|
|
|
|
$(info compiling typescript)
|
|
|
|
$(info compiling typescript)
|
|
|
|
mkdir -p $(DATA)/web/js
|
|
|
|
mkdir -p $(DATA)/web/js
|
|
|
|
$(ESBUILD) --bundle tempts/admin.ts $(SOURCEMAP) --outfile=./$(DATA)/web/js/admin.js --minify
|
|
|
|
$(ESBUILD) --target=es6 --bundle tempts/admin.ts $(SOURCEMAP) --outfile=./$(DATA)/web/js/admin.js --minify
|
|
|
|
$(ESBUILD) --bundle tempts/pwr.ts $(SOURCEMAP) --outfile=./$(DATA)/web/js/pwr.js --minify
|
|
|
|
$(ESBUILD) --target=es6 --bundle tempts/pwr.ts $(SOURCEMAP) --outfile=./$(DATA)/web/js/pwr.js --minify
|
|
|
|
$(ESBUILD) --bundle tempts/form.ts $(SOURCEMAP) --outfile=./$(DATA)/web/js/form.js --minify
|
|
|
|
$(ESBUILD) --target=es6 --bundle tempts/form.ts $(SOURCEMAP) --outfile=./$(DATA)/web/js/form.js --minify
|
|
|
|
$(ESBUILD) --bundle tempts/setup.ts $(SOURCEMAP) --outfile=./$(DATA)/web/js/setup.js --minify
|
|
|
|
$(ESBUILD) --target=es6 --bundle tempts/setup.ts $(SOURCEMAP) --outfile=./$(DATA)/web/js/setup.js --minify
|
|
|
|
$(ESBUILD) --bundle tempts/crash.ts --outfile=./$(DATA)/crash.js --minify
|
|
|
|
$(ESBUILD) --target=es6 --bundle tempts/crash.ts --outfile=./$(DATA)/crash.js --minify
|
|
|
|
$(COPYTS)
|
|
|
|
$(COPYTS)
|
|
|
|
|
|
|
|
|
|
|
|
swagger:
|
|
|
|
swagger:
|
|
|
@ -126,6 +126,8 @@ compress:
|
|
|
|
|
|
|
|
|
|
|
|
bundle-css:
|
|
|
|
bundle-css:
|
|
|
|
mkdir -p $(DATA)/web/css
|
|
|
|
mkdir -p $(DATA)/web/css
|
|
|
|
|
|
|
|
$(info copying fonts)
|
|
|
|
|
|
|
|
cp -r node_modules/remixicon/fonts/remixicon.css node_modules/remixicon/fonts/remixicon.woff2 $(DATA)/web/css/
|
|
|
|
$(info bundling css)
|
|
|
|
$(info bundling css)
|
|
|
|
$(ESBUILD) --bundle css/base.css --outfile=$(DATA)/web/css/bundle.css --external:remixicon.css --minify
|
|
|
|
$(ESBUILD) --bundle css/base.css --outfile=$(DATA)/web/css/bundle.css --external:remixicon.css --minify
|
|
|
|
npx tailwindcss -i $(DATA)/web/css/bundle.css -o $(DATA)/web/css/bundle.css $(TAILWIND)
|
|
|
|
npx tailwindcss -i $(DATA)/web/css/bundle.css -o $(DATA)/web/css/bundle.css $(TAILWIND)
|
|
|
@ -144,8 +146,6 @@ variants-html:
|
|
|
|
node scripts/missing-colors.js html $(DATA)/html
|
|
|
|
node scripts/missing-colors.js html $(DATA)/html
|
|
|
|
|
|
|
|
|
|
|
|
copy:
|
|
|
|
copy:
|
|
|
|
$(info copying fonts)
|
|
|
|
|
|
|
|
cp -r node_modules/remixicon/fonts/remixicon.css node_modules/remixicon/fonts/remixicon.woff2 $(DATA)/web/css/
|
|
|
|
|
|
|
|
$(info copying crash page)
|
|
|
|
$(info copying crash page)
|
|
|
|
mv $(DATA)/crash.html $(DATA)/html/
|
|
|
|
mv $(DATA)/crash.html $(DATA)/html/
|
|
|
|
$(info copying static data)
|
|
|
|
$(info copying static data)
|
|
|
|