forked from aws-samples/aws-lambda-layer-awscli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.projenrc.js
47 lines (42 loc) · 1.11 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, DependenciesUpgradeMechanism } = require('projen');
const AUTOMATION_TOKEN = 'PROJEN_GITHUB_TOKEN';
const project = new AwsCdkTypeScriptApp({
cdkVersion: '1.77.0',
name: 'aws-lambda-layer-awscli',
authorName: 'Pahud Hsieh',
authorEmail: '[email protected]',
repository: 'https://github.com/aws-samples/aws-lambda-layer-awscli.git',
depsUpgrade: DependenciesUpgradeMechanism.githubWorkflow({
workflowOptions: {
labels: ['auto-approve', 'auto-merge'],
secret: AUTOMATION_TOKEN,
},
}),
autoApproveOptions: {
secret: 'GITHUB_TOKEN',
allowedUsernames: ['pahud'],
},
antitamper: false,
cdkDependencies: [
'@aws-cdk/core',
'@aws-cdk/aws-lambda',
'@aws-cdk/aws-sam',
],
defaultReleaseBranch: 'main',
});
const common_exclude = [
'cdk.out',
'cdk.context.json',
'LICENSE',
'images',
'yarn-error.log',
'sam-layer-packaged.yaml',
'sam-sar-packaged.yaml',
'packaged.yaml',
'layer.zip',
'coverage',
'AWSCLI_VERSION*',
];
project.npmignore.exclude(...common_exclude);
project.gitignore.exclude(...common_exclude);
project.synth();