Skip to content

Commit b9b95ef

Browse files
refactor: rename src/app to src/App and update all path references
1 parent a5d6a5c commit b9b95ef

74 files changed

Lines changed: 29 additions & 29 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/dependabot.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ updates:
3535
# npm dependencies - grouped
3636
- package-ecosystem: "npm"
3737
directories:
38-
- "/src/app"
39-
- "/src/app/server"
38+
- "/src/App"
39+
- "/src/App/server"
4040
schedule:
4141
interval: "monthly"
4242
target-branch: "dependabotchanges"

.github/workflows/docker-build.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ on:
88
- demo
99
paths:
1010
- 'src/backend/**'
11-
- 'src/app/**'
12-
- 'src/app/server/**'
11+
- 'src/App/**'
12+
- 'src/App/server/**'
1313
- '.github/workflows/docker-build.yml'
1414
pull_request:
1515
types:
@@ -23,8 +23,8 @@ on:
2323
- demo
2424
paths:
2525
- 'src/backend/**'
26-
- 'src/app/**'
27-
- 'src/app/server/**'
26+
- 'src/App/**'
27+
- 'src/App/server/**'
2828
- '.github/workflows/docker-build.yml'
2929
workflow_dispatch:
3030

@@ -83,8 +83,8 @@ jobs:
8383
- name: Build and Push Docker Image for Frontend Server
8484
uses: docker/build-push-action@v6
8585
with:
86-
context: ./src/app
87-
file: ./src/app/WebApp.Dockerfile
86+
context: ./src/App
87+
file: ./src/App/WebApp.Dockerfile
8888
push: ${{ github.ref_name == 'main' || github.ref_name == 'dev' || github.ref_name == 'demo' || github.ref_name == 'dependabotchanges' }}
8989
tags: |
9090
${{ secrets.ACR_LOGIN_SERVER || 'acrlogin.azurecr.io' }}/content-gen-app:${{ steps.determine_tag.outputs.tagname }}

.github/workflows/job-docker-build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ jobs:
6565
env:
6666
DOCKER_BUILD_SUMMARY: false
6767
with:
68-
context: ./src/app
69-
file: ./src/app/WebApp.Dockerfile
68+
context: ./src/App
69+
file: ./src/App/WebApp.Dockerfile
7070
push: true
7171
tags: |
7272
${{ secrets.ACR_TEST_LOGIN_SERVER }}/content-gen-app:${{ steps.generate_docker_tag.outputs.IMAGE_TAG }}

.gitignore

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,15 @@ eggs/
3636
*.swo
3737

3838
# Node
39-
/src/app/node_modules/
40-
/src/app/server/node_modules/
41-
/src/app/server/static/
42-
/src/app/server/*.zip
39+
/src/App/node_modules/
40+
/src/App/server/node_modules/
41+
/src/App/server/static/
42+
/src/App/server/*.zip
4343
node_modules/
4444

4545
# Build output
46-
/src/app/static/
47-
/src/app/dist/
46+
/src/App/static/
47+
/src/App/dist/
4848

4949
# Logs
5050
*.log

docs/AZD_DEPLOYMENT.md

Lines changed: 2 additions & 2 deletions

docs/TECHNICAL_GUIDE.md

Lines changed: 1 addition & 1 deletion

scripts/deploy.ps1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,15 +131,15 @@ if ($continue -eq "y" -or $continue -eq "Y") {
131131
Write-Host "Step 3: Building and deploying frontend..." -ForegroundColor Green
132132
Write-Host "==========================================" -ForegroundColor Green
133133

134-
Set-Location "$ProjectDir\src\app"
134+
Set-Location "$ProjectDir\src\App"
135135
npm install
136136
npm run build
137137

138138
# Copy built files to server directory
139-
New-Item -ItemType Directory -Force "$ProjectDir\src\app\server\static" | Out-Null
140-
Copy-Item -Path "$ProjectDir\src\app\static\*" -Destination "$ProjectDir\src\app\server\static\" -Recurse -Force
139+
New-Item -ItemType Directory -Force "$ProjectDir\src\App\server\static" | Out-Null
140+
Copy-Item -Path "$ProjectDir\src\App\static\*" -Destination "$ProjectDir\src\App\server\static\" -Recurse -Force
141141

142-
Set-Location "$ProjectDir\src\app\server"
142+
Set-Location "$ProjectDir\src\App\server"
143143

144144
# Create deployment package
145145
if (Test-Path "frontend-deploy.zip") {

scripts/deploy.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,15 +129,15 @@ if [[ $REPLY =~ ^[Yy]$ ]]; then
129129
echo "Step 3: Building and deploying frontend..."
130130
echo "=========================================="
131131

132-
cd "$PROJECT_DIR/src/app"
132+
cd "$PROJECT_DIR/src/App"
133133
npm install
134134
npm run build
135135

136136
# Copy built files to server directory
137-
mkdir -p "$PROJECT_DIR/src/app/server/static"
138-
cp -r "$PROJECT_DIR/src/app/static/"* "$PROJECT_DIR/src/app/server/static/"
137+
mkdir -p "$PROJECT_DIR/src/App/server/static"
138+
cp -r "$PROJECT_DIR/src/App/static/"* "$PROJECT_DIR/src/App/server/static/"
139139

140-
cd "$PROJECT_DIR/src/app/server"
140+
cd "$PROJECT_DIR/src/App/server"
141141

142142
# Create deployment package
143143
rm -f frontend-deploy.zip

scripts/local_dev.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ $ScriptDir = Split-Path -Parent $MyInvocation.MyCommand.Path
3131
$ProjectRoot = Split-Path -Parent $ScriptDir
3232
$SrcDir = Join-Path $ProjectRoot "src"
3333
$BackendDir = Join-Path $SrcDir "backend"
34-
$FrontendDir = Join-Path $SrcDir "app"
34+
$FrontendDir = Join-Path $SrcDir "App"
3535

3636
# Default ports
3737
$BackendPort = if ($env:BACKEND_PORT) { $env:BACKEND_PORT } else { "5000" }

scripts/local_dev.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
3434
PROJECT_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"
3535
SRC_DIR="$PROJECT_ROOT/src"
3636
BACKEND_DIR="$SRC_DIR/backend"
37-
FRONTEND_DIR="$SRC_DIR/app"
37+
FRONTEND_DIR="$SRC_DIR/App"
3838

3939
# Default ports
4040
BACKEND_PORT=${BACKEND_PORT:-5000}

0 commit comments

Comments
 (0)