compile setup.ts in Makefile/Goreleaser

surprised there hasn't been issues for this, the setup page would've
been broken for a while.
pull/61/head
Harvey Tindall 4 years ago
parent 8af1c13d7e
commit 23ae18d732
No known key found for this signature in database
GPG Key ID: BBC65952848FB1A2

@ -22,6 +22,7 @@ before:
- python3 version.py {{.Version}} version.go
- npx esbuild --bundle ts/admin.ts --outfile=./data/web/js/admin.js --minify
- npx esbuild --bundle ts/form.ts --outfile=./data/web/js/form.js --minify
- npx esbuild --bundle ts/setup.ts --outfile=./data/web/js/setup.js --minify
- go get -u github.com/swaggo/swag/cmd/swag
- swag init -g main.go
builds:

@ -18,12 +18,14 @@ typescript:
-mkdir -p build/data/web/js
-npx esbuild --bundle ts/admin.ts --outfile=./build/data/web/js/admin.js --minify
-npx esbuild --bundle ts/form.ts --outfile=./build/data/web/js/form.js --minify
-npx esbuild --bundle ts/setup.ts --outfile=./build/data/web/js/setup.js --minify
ts-debug:
$(info compiling typescript w/ sourcemaps)
-mkdir -p build/data/web/js
-npx esbuild --bundle ts/admin.ts --sourcemap --outfile=./build/data/web/js/admin.js
-npx esbuild --bundle ts/form.ts --sourcemap --outfile=./build/data/web/js/form.js
-npx esbuild --bundle ts/setup.ts --sourcemap --outfile=./build/data/web/js/setup.js
-rm -r build/data/web/js/ts
$(info copying typescript)
cp -r ts build/data/web/js

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save