Skip to content

Commit

Permalink
Asset bundling add npm i steps
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 7fba043 commit a099b0d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions infrastructure/aws-cdk/lib/components/front-end.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ export class FaimsFrontEnd extends Construct {
"-c",
`
cd /asset-input
npm i
cd ${appPath}
./${buildScript}
cp -R ${outputPath}/* /asset-output
Expand All @@ -201,6 +202,7 @@ export class FaimsFrontEnd extends Construct {
//export environment variables - not included by default
envs,
`cd ${buildPath}`,
"npm i",
`cd ${appPath}`,
`./${buildScript}`,
`cp -R ${outputPath}/* ${outputDir}`,
Expand Down Expand Up @@ -304,6 +306,7 @@ export class FaimsFrontEnd extends Construct {
"-c",
`
cd /asset-input
npm i
cd ${appPath}
./${buildScript}
cp -R ${outputPath}/* /asset-output
Expand All @@ -319,6 +322,7 @@ 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
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a099b0d

Please sign in to comment.