Skip to content

Commit

Permalink
Refining build to install deps
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Baker <[email protected]>
  • Loading branch information
PeterBaker0 committed Aug 2, 2024
1 parent a099b0d commit f6b2c98
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
8 changes: 2 additions & 6 deletions infrastructure/aws-cdk/lib/components/front-end.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,8 @@ export class FaimsFrontEnd extends Construct {
"-c",
`
cd /asset-input
npm i
"npm i && npm run github-build-app",
cd ${appPath}
./${buildScript}
cp -R ${outputPath}/* /asset-output
`,
],
Expand All @@ -202,9 +201,8 @@ export class FaimsFrontEnd extends Construct {
//export environment variables - not included by default
envs,
`cd ${buildPath}`,
"npm i",
"npm i && npm run github-build-app",
`cd ${appPath}`,
`./${buildScript}`,
`cp -R ${outputPath}/* ${outputDir}`,
];
console.log(commands);
Expand Down Expand Up @@ -306,7 +304,6 @@ export class FaimsFrontEnd extends Construct {
"-c",
`
cd /asset-input
npm i
cd ${appPath}
./${buildScript}
cp -R ${outputPath}/* /asset-output
Expand All @@ -322,7 +319,6 @@ export class FaimsFrontEnd extends Construct {
const exec = require("child_process").execSync;
const commands = [
`cd ${buildPath}`,
"npm i",
`cd ${appPath}`,
`./${buildScript}`,
`cp -R ${outputPath}/* ${outputDir}`,
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"scripts": {
"build-app": "npm run build --workspace=app",
"build-api": "npm run build --workspace=api",
"github-build-app": "npm run build --workspace=library/data-model --workspace=app",
"docker-build-api": "npm run build --workspace=library/data-model --workspace=api",
"build-aws": "npm run build --workspace=infrastructure/aws-cdk",
"package-aws": "npm run package --workspace=infrastructure/aws-cdk",
Expand Down

0 comments on commit f6b2c98

Please sign in to comment.