From 730b5f3837644e53d6779e5e0729c36118f22bb5 Mon Sep 17 00:00:00 2001 From: "martin.mueller" Date: Sun, 10 Jan 2021 17:56:37 +0100 Subject: [PATCH] feat: update badge dep --- .projenrc.js | 3 +++ cdk.json | 2 +- package.json | 6 ++++-- test/integ.default.ts | 1 + yarn.lock | 8 ++++---- 5 files changed, 13 insertions(+), 7 deletions(-) diff --git a/.projenrc.js b/.projenrc.js index 959a448..5a9e25e 100644 --- a/.projenrc.js +++ b/.projenrc.js @@ -44,6 +44,9 @@ const project = new TypeScriptProject({ ], }); +project.setScript('deploy', 'cdk deploy'); +project.setScript('destroy', 'cdk destroy'); + const common_exclude = ['cdk.out']; project.npmignore.exclude(...common_exclude); project.gitignore.exclude(...common_exclude); diff --git a/cdk.json b/cdk.json index 27ecec5..50a193d 100644 --- a/cdk.json +++ b/cdk.json @@ -1,5 +1,5 @@ { - "app": "npx ts-node --project tsconfig.jest.json src/integ.default.ts", + "app": "npx ts-node --project tsconfig.jest.json test/integ.default.ts", "context": { "@aws-cdk/core:enableStackNameDuplicates": true, "aws-cdk:enableDiffNoFail": true, diff --git a/package.json b/package.json index 3c4ed1c..daa36cc 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,8 @@ "scripts": { "projen": "npx projen", "start": "npx projen start", + "deploy": "cdk deploy", + "destroy": "cdk destroy", "clobber": "npx projen clobber", "compile": "npx projen compile", "test:compile": "npx projen test:compile", @@ -34,7 +36,7 @@ "@types/node": "^10.17.0", "@typescript-eslint/eslint-plugin": "^4.3.0", "@typescript-eslint/parser": "^4.3.0", - "aws-cdk-build-badge": "^0.0.5", + "aws-cdk-build-badge": "^0.0.6", "eslint": "^7.16.0", "eslint-import-resolver-node": "^0.3.4", "eslint-import-resolver-typescript": "^2.3.0", @@ -56,7 +58,7 @@ "@aws-cdk/core": "1.83.0", "@aws-cdk/pipelines": "1.83.0", "@mobileposse/auto-delete-bucket": "^1.55.0", - "aws-cdk-build-badge": "^0.0.5" + "aws-cdk-build-badge": "^0.0.6" }, "bundledDependencies": [], "keywords": [ diff --git a/test/integ.default.ts b/test/integ.default.ts index 9ebcb91..e365d6e 100644 --- a/test/integ.default.ts +++ b/test/integ.default.ts @@ -26,6 +26,7 @@ export class IntegTesting { }], branch: 'master', repositoryName: 'aws-cdk-staging-pipeline', + badges: { synthBadge: true }, customStack: (scope, _) => { const customStack = new CustomStack(scope, 'TestCustomStack'); customStack.cfnOutputs.Blub = new core.CfnOutput(customStack, 'OutputBlub', { value: 'BlubValue ' }); diff --git a/yarn.lock b/yarn.lock index 2bec689..47f159d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1724,10 +1724,10 @@ atob@^2.1.2: resolved "https://registry.yarnpkg.com/atob/-/atob-2.1.2.tgz#6d9517eb9e030d2436666651e86bd9f6f13533c9" integrity sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg== -aws-cdk-build-badge@^0.0.5: - version "0.0.5" - resolved "https://registry.yarnpkg.com/aws-cdk-build-badge/-/aws-cdk-build-badge-0.0.5.tgz#cc11932930000633e1a0bfd328ffc55a4e6050cf" - integrity sha512-arF5Y35zrEpZTVmpMJobwx19wx/HzdDNRthj6qr+kI0WOpmL26QASNxoAQGxaHVPyqUMNnhJX61xgC8gp+5uZA== +aws-cdk-build-badge@^0.0.6: + version "0.0.6" + resolved "https://registry.yarnpkg.com/aws-cdk-build-badge/-/aws-cdk-build-badge-0.0.6.tgz#703a079c0f502cdb3b0599a301f0485a20337049" + integrity sha512-kKOZPQ0xCEmDxh6DhjNbGHDpl4R1sWFo6b1rTBwYGzzDH+rv2AvNMG25ebLWOvF/HzWiTvgKWEESRR88yeML2w== dependencies: "@aws-cdk/assert" "1.83.0" "@types/aws-lambda" "^8.10.70"