Skip to content

Commit 6af14e6

Browse files
committed
fix: scripts
1 parent 6e8e8cc commit 6af14e6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

scripts.sh

+4-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build() {
44
root=$(pwd)
55
rm -r ./build
66
echo "building frontend"
7-
cd ./frontend && npm i && npm run build && cp -R ./build/ $root/build/frontend || exit 1
7+
cd ./frontend && npm i && npm run build || exit 1
88
cd $root || exit 1
99
echo "building backend"
1010
cp .env build/
@@ -16,7 +16,9 @@ gen() {
1616
}
1717

1818
test_go() {
19-
gen
19+
gen || exit 1
20+
# make some files for embed
21+
mkdir -p ./frontend/build && touch ./frontend/build/index.html || exit 1
2022
go test ./...
2123
}
2224

0 commit comments

Comments
 (0)