chores: use Nuxt3's .output/ directory instead of Nuxt2's dist/ directory

This commit is contained in:
Settel 2022-09-01 19:18:13 +02:00
parent f52d134f42
commit 7f4786a44d
3 changed files with 5 additions and 3 deletions

View File

@ -20,6 +20,8 @@ setup:
( cd client && yarn install )
@echo "I installing server dependencies"
( cd server/src/ && go mod tidy )
@echo "I create client output directory"
mkdir -p client/.output/public/
run-all:
pexec -R -c -e TARGET \
@ -55,6 +57,6 @@ run-standalone:
$(MAKE) -C server run-standalone
clean:
rm -rf client/dist/
rm -rf client/.output/
rm -rf client/.nuxt/
$(MAKE) -C server clean

View File

@ -31,6 +31,6 @@ clean:
generate: src/resources/dist-generated.go
src/resources/dist-generated.go: $(shell find ../client/dist -type f)
src/resources/dist-generated.go: $(shell find ../client/.output/public/ -type f)
src/resources/dist-generated.go: src/resources/dist-build.go
go generate src/resources/dist-build.go

View File

@ -1,3 +1,3 @@
package Resources
//go:generate go-bindata -pkg Resources -o dist-generated.go --prefix ../../../client/dist/ ../../../client/dist/ ../../../client/dist/_nuxt/ ../../../client/dist/play/ ../../../client/dist/gamemaster/ ../../../client/dist/admin/ ../../../client/dist/fonts/dosis ../../../client/dist/fonts/wendy-one
//go:generate go-bindata -pkg Resources -o dist-generated.go --prefix ../../../client/.output/public/ ../../../client/.output/public/...