-
Notifications
You must be signed in to change notification settings - Fork 1
/
.projenrc.js
47 lines (42 loc) · 1.22 KB
/
.projenrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
const { AwsCdkTypeScriptApp } = require('projen');
const deps = [
'@mobileposse/auto-delete-bucket',
'openapi-types-aws',
'aws-cdk-staging-pipeline',
// 'aws-cdk-build-badge',
];
const project = new AwsCdkTypeScriptApp({
authorAddress: '[email protected]',
authorName: 'martin.mueller',
cdkVersion: '1.83.0',
cdkVersionPinning: true,
name: 'aws-api-gw-petstore-example',
cdkDependencies: [
'@aws-cdk/core',
'@aws-cdk/aws-apigateway',
// '@aws-cdk/aws-iam',
'@aws-cdk/aws-lambda-nodejs',
'@aws-cdk/aws-s3-deployment',
'@aws-cdk/aws-s3',
],
deps: deps,
devDeps: deps,
context: {
'@aws-cdk/core:enableStackNameDuplicates': true,
'aws-cdk:enableDiffNoFail': true,
'@aws-cdk/core:stackRelativeExports': true,
'@aws-cdk/core:newStyleStackSynthesis': true,
},
keywords: [
'cdk',
'aws',
'openapi',
'apigateway',
],
});
project.setScript('cdkDeploy', 'cdk deploy');
project.setScript('cdkDestroy', 'cdk destroy');
const common_exclude = ['cdk.out', 'src/site-contents/openapi.json', 'src/site-contents/openapi-dev', 'src/site-contents/openapi-prod'];
project.npmignore.exclude(...common_exclude);
project.gitignore.exclude(...common_exclude);
project.synth();