We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6e8e8cc commit 6af14e6Copy full SHA for 6af14e6
scripts.sh
@@ -4,7 +4,7 @@ build() {
4
root=$(pwd)
5
rm -r ./build
6
echo "building frontend"
7
- cd ./frontend && npm i && npm run build && cp -R ./build/ $root/build/frontend || exit 1
+ cd ./frontend && npm i && npm run build || exit 1
8
cd $root || exit 1
9
echo "building backend"
10
cp .env build/
@@ -16,7 +16,9 @@ gen() {
16
}
17
18
test_go() {
19
- gen
+ gen || exit 1
20
+ # make some files for embed
21
+ mkdir -p ./frontend/build && touch ./frontend/build/index.html || exit 1
22
go test ./...
23
24
0 commit comments