mirror of
https://github.com/hrfee/jfa-go.git
synced 2024-12-22 17:10:10 +00:00
fix goreleaser builds
wrapped tsc in a a shell script to ignore duplicate function errors.
This commit is contained in:
parent
e104bd8362
commit
9fec714da7
1
.gitignore
vendored
1
.gitignore
vendored
@ -13,6 +13,7 @@ data/config-base.json
|
|||||||
data/config-default.ini
|
data/config-default.ini
|
||||||
data/*.html
|
data/*.html
|
||||||
data/*.txt
|
data/*.txt
|
||||||
|
data/docs/
|
||||||
dist/*
|
dist/*
|
||||||
jfa-go
|
jfa-go
|
||||||
build/
|
build/
|
||||||
|
@ -8,7 +8,6 @@ release:
|
|||||||
name_template: "v{{.Version}}"
|
name_template: "v{{.Version}}"
|
||||||
before:
|
before:
|
||||||
hooks:
|
hooks:
|
||||||
# You may remove this if you don't use go modules.
|
|
||||||
- go mod download
|
- go mod download
|
||||||
- python3 config/fixconfig.py -i config/config-base.json -o data/config-base.json
|
- python3 config/fixconfig.py -i config/config-base.json -o data/config-base.json
|
||||||
- python3 config/generate_ini.py -i config/config-base.json -o data/config-default.ini --version {{.Version}}
|
- python3 config/generate_ini.py -i config/config-base.json -o data/config-default.ini --version {{.Version}}
|
||||||
@ -17,6 +16,8 @@ before:
|
|||||||
- python3 scss/compile.py -y
|
- python3 scss/compile.py -y
|
||||||
- python3 mail/generate.py -y
|
- python3 mail/generate.py -y
|
||||||
- python3 version.py {{.Version}} version.go
|
- python3 version.py {{.Version}} version.go
|
||||||
|
- ./tsc-silent.sh
|
||||||
|
- swag init -g main.go
|
||||||
builds:
|
builds:
|
||||||
- dir: ./
|
- dir: ./
|
||||||
env:
|
env:
|
||||||
|
1
Makefile
1
Makefile
@ -56,7 +56,6 @@ compress:
|
|||||||
copy:
|
copy:
|
||||||
$(info Copying data)
|
$(info Copying data)
|
||||||
cp -r data build/
|
cp -r data build/
|
||||||
cp docs/swagger.json build/data/static/
|
|
||||||
|
|
||||||
install:
|
install:
|
||||||
cp -r build $(DESTDIR)/jfa-go
|
cp -r build $(DESTDIR)/jfa-go
|
||||||
|
4
tsc-silent.sh
Executable file
4
tsc-silent.sh
Executable file
@ -0,0 +1,4 @@
|
|||||||
|
#!/usr/bin/bash
|
||||||
|
set +e
|
||||||
|
npx tsc -p ts/
|
||||||
|
set -e
|
Loading…
Reference in New Issue
Block a user