Skip to content

Commit

Permalink
refactor: move legacyAppLoader files and configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
Noggling committed Oct 14, 2024
1 parent 3eb5cd4 commit b28ec81
Show file tree
Hide file tree
Showing 42 changed files with 13 additions and 3 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"type": "module",
"main": "src/index.ts",
"scripts": {
"prebuild": "rm -f ../client/packages/portal-client/src/assets/appLegacyLoader.js",
"build:appLoader": "fusion-framework-cli app build && mv ./dist/app-bundle.js ../client/packages/portal-client/src/assets/appLegacyLoader.js",
"prebuild": "rm -f ../../packages/portal-client/src/assets/appLegacyLoader.js",
"build:appLoader": "fusion-framework-cli app build && mv ./dist/app-bundle.js ../../packages/portal-client/src/assets/appLegacyLoader.js",
"build:resources": "tsc && vite build",
"dev:appLoader": "fusion-framework-cli app dev -c vite.config.js",
"docker": "cd .. && sh docker-script.sh app-react",
Expand Down Expand Up @@ -45,4 +45,4 @@
"@types/react-router-dom": "^5.3.3",
"vite-plugin-static-copy": "^0.17.0"
}
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"start": "npx lerna run serve",
"build": "npx lerna run build",
"build:apps": "npx lerna run build:apps",
"build:appLoader": "npx lerna run build:appLoader",
"test:all": "test:coverage && build:coverage",
"test": "lerna run test",
"test:coverage": "lerna run test:coverage",
Expand Down
9 changes: 9 additions & 0 deletions clientBackend.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,22 @@ WORKDIR /app-client

COPY ["/client", "."]

WORKDIR /app-client/apps/legacyAppLoader

RUN yarn install --frozen-lockfile
RUN yarn run build:appLoader

WORKDIR /app-client

RUN yarn install --frozen-lockfile

# Build the leagasy app laoder
RUN cd apps/fusion-app-loader && yarn install --frozen-lockfile && yarn build:appLoader

RUN npx yarn run build



# 2: Build & run web server
# ----------------------------------------------------

Expand Down

0 comments on commit b28ec81

Please sign in to comment.