@robsun/create-keystone-app 0.4.1 → 0.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/template/scripts/dev.bat
CHANGED
|
@@ -61,6 +61,16 @@ if not exist "apps\\server\\config.yaml" (
|
|
|
61
61
|
)
|
|
62
62
|
)
|
|
63
63
|
|
|
64
|
+
REM Ensure frontend is built (for Go embed)
|
|
65
|
+
if not exist "apps\server\internal\frontend\dist\assets" (
|
|
66
|
+
echo Building frontend for first time...
|
|
67
|
+
cd apps\web
|
|
68
|
+
call pnpm build
|
|
69
|
+
cd ..\..
|
|
70
|
+
echo Frontend built.
|
|
71
|
+
echo.
|
|
72
|
+
)
|
|
73
|
+
|
|
64
74
|
echo Starting development servers...
|
|
65
75
|
echo.
|
|
66
76
|
echo Frontend: http://localhost:3000
|
package/template/scripts/dev.sh
CHANGED
|
@@ -53,6 +53,16 @@ if [ ! -f "apps/server/config.yaml" ] && [ -f "apps/server/config.example.yaml"
|
|
|
53
53
|
echo -e "${GREEN}[INFO]${NC} Created apps/server/config.yaml from template"
|
|
54
54
|
fi
|
|
55
55
|
|
|
56
|
+
# Ensure frontend is built (for Go embed)
|
|
57
|
+
if [ ! -d "apps/server/internal/frontend/dist/assets" ]; then
|
|
58
|
+
echo "Building frontend for first time..."
|
|
59
|
+
cd apps/web
|
|
60
|
+
pnpm build
|
|
61
|
+
cd ../..
|
|
62
|
+
echo "Frontend built."
|
|
63
|
+
echo ""
|
|
64
|
+
fi
|
|
65
|
+
|
|
56
66
|
echo "Starting development servers..."
|
|
57
67
|
echo ""
|
|
58
68
|
echo "Frontend: http://localhost:3000"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|