chores: use Nuxt3's .output/ directory instead of Nuxt2's dist/ directory
This commit is contained in:
parent
f52d134f42
commit
7f4786a44d
4
Makefile
4
Makefile
@ -20,6 +20,8 @@ setup:
|
|||||||
( cd client && yarn install )
|
( cd client && yarn install )
|
||||||
@echo "I installing server dependencies"
|
@echo "I installing server dependencies"
|
||||||
( cd server/src/ && go mod tidy )
|
( cd server/src/ && go mod tidy )
|
||||||
|
@echo "I create client output directory"
|
||||||
|
mkdir -p client/.output/public/
|
||||||
|
|
||||||
run-all:
|
run-all:
|
||||||
pexec -R -c -e TARGET \
|
pexec -R -c -e TARGET \
|
||||||
@ -55,6 +57,6 @@ run-standalone:
|
|||||||
$(MAKE) -C server run-standalone
|
$(MAKE) -C server run-standalone
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -rf client/dist/
|
rm -rf client/.output/
|
||||||
rm -rf client/.nuxt/
|
rm -rf client/.nuxt/
|
||||||
$(MAKE) -C server clean
|
$(MAKE) -C server clean
|
||||||
|
@ -31,6 +31,6 @@ clean:
|
|||||||
|
|
||||||
generate: src/resources/dist-generated.go
|
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
|
src/resources/dist-generated.go: src/resources/dist-build.go
|
||||||
go generate src/resources/dist-build.go
|
go generate src/resources/dist-build.go
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
package Resources
|
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/...
|
||||||
|
Loading…
Reference in New Issue
Block a user