1
0
mirror of https://github.com/hrfee/jfa-go.git synced 2024-12-22 17:10:10 +00:00

compile setup.ts in Makefile/Goreleaser

surprised there hasn't been issues for this, the setup page would've
been broken for a while.
This commit is contained in:
Harvey Tindall 2021-01-26 00:37:32 +00:00
parent 8af1c13d7e
commit 23ae18d732
Signed by: hrfee
GPG Key ID: BBC65952848FB1A2
4 changed files with 2188 additions and 0 deletions

0
%1 Normal file
View File

View File

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

View File

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

2185
nohup.out Normal file

File diff suppressed because it is too large Load Diff