Skip to content

Commit fbb2d4d

Browse files
authored
Merge pull request #307 from open-edge-platform/update-branch
feat: Update Edge AI Demo Studio frontend build process to use setup scripts (#141) (#832)
2 parents ebd877e + ad7570a commit fbb2d4d

File tree

3 files changed

+2
-45
lines changed

3 files changed

+2
-45
lines changed

usecases/ai/edge-ai-demo-studio/docs/DEVELOPMENT.md

Lines changed: 0 additions & 41 deletions
This file was deleted.

usecases/ai/edge-ai-demo-studio/scripts/package.ps1

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,7 @@ function Invoke-FrontendBuild {
9494
Write-Host "Building frontend application..." -ForegroundColor Green
9595
Push-Location $FRONTEND_DIR
9696
try {
97-
npm install
98-
npm run build
97+
./setup.ps1
9998
# Create frontend directory structure
10099
New-Item -ItemType Directory -Path "$TEMP_DIR/frontend" -Force | Out-Null
101100
New-Item -ItemType Directory -Path "$TEMP_DIR/frontend/.next" -Force | Out-Null

usecases/ai/edge-ai-demo-studio/scripts/package.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,7 @@ setup_frontend_package() {
154154
if [ -d "$FRONTEND_DIR" ]; then
155155
echo "Building frontend application..."
156156
cd "$FRONTEND_DIR"
157-
npm install || { echo "Frontend dependencies installation failed."; exit 1; }
158-
npm run build || { echo "Frontend build failed."; exit 1; }
157+
./setup.sh || { echo "Frontend setup failed."; exit 1; }
159158
rsync -av .next/standalone/ "$TEMP_DIR/frontend/" || { echo "Failed to copy standalone frontend build files to temp directory."; exit 1; }
160159
rsync -av .next/static/ "$TEMP_DIR/frontend/.next/static/" || { echo "Failed to copy static frontend build files to temp directory."; exit 1; }
161160
cd -

0 commit comments

Comments
 (0)