Skip to content
This repository was archived by the owner on Dec 6, 2024. It is now read-only.

Commit e22acc7

Browse files
mabreuortegaMiguel Abreu
andauthored
feat: reduce examples package size and streamline deployment packages overall (#847)
Co-authored-by: Miguel Abreu <miabreu@amazon.com>
1 parent f0767a5 commit e22acc7

File tree

8 files changed

+760
-741
lines changed

8 files changed

+760
-741
lines changed

backend/package-lock.json

Lines changed: 11 additions & 338 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

backend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"typescript": "^3.9.5"
2929
},
3030
"dependencies": {
31-
"aws-sdk": "^2.814.0",
31+
"aws-sdk": "^2.1055.0",
3232
"aws-serverless-express": "^3.3.8",
3333
"aws-xray-sdk": "^3.1.0",
3434
"cors": "^2.8.5",

buildspec.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ phases:
1616
commands:
1717
- ./test.sh
1818

19+
pre_deploy:
20+
commands:
21+
- ./install.sh --production
22+
1923
build:
2024
commands:
2125
# Deploy

cdk/package-lock.json

Lines changed: 717 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cdk/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"@aws-cdk/core": "1.144.0",
4545
"@aws-cdk/custom-resources": "1.144.0",
4646
"@cloudcomponents/cdk-lambda-at-edge-pattern": "1.39.0",
47-
"aws-sdk": "^2.814.0",
47+
"aws-sdk": "^2.1055.0",
4848
"source-map-support": "^0.5.16"
4949
}
5050
}

examples/package-lock.json

Lines changed: 16 additions & 384 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"@types/prompt": "^1.1.1",
2424
"@types/prompts": "^2.0.14",
2525
"@types/uuid": "^8.3.1",
26+
"aws-sdk": "^2.1055.0",
2627
"jest": "^27.3.1",
2728
"prettier": "^2.4.1",
2829
"ts-jest": "^27.0.7",
@@ -31,7 +32,6 @@
3132
"typescript": "^3.9.5"
3233
},
3334
"dependencies": {
34-
"aws-sdk": "^2.1021.0",
3535
"envalid": "^7.2.2",
3636
"fs-extra": "^10.0.0",
3737
"performance-dashboard-backend": "file:../backend",

install.sh

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,29 +3,29 @@
33
#
44
cd backend
55
echo "npm install on backend"
6-
npm ci
6+
npm ci $@
77
cd ..
88

99
#
1010
# Frontend
1111
#
1212
cd frontend
1313
echo "npm install on frontend"
14-
npm ci
14+
npm ci $@
1515
cd ..
1616

1717
#
18-
# CDK
18+
# Examples
1919
#
20-
echo "npm install on cdk"
21-
cd cdk
22-
npm ci
20+
echo "npm install on examples"
21+
cd examples
22+
npm ci $@
2323
cd ..
2424

2525
#
26-
# Examples
26+
# CDK
2727
#
28-
echo "npm install on examples"
29-
cd examples
28+
echo "npm install on cdk"
29+
cd cdk
3030
npm ci
3131
cd ..

0 commit comments

Comments
 (0)