-
Notifications
You must be signed in to change notification settings - Fork 4
/
.projenrc.js
46 lines (41 loc) · 1.16 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
const { awscdk, Gitpod } = require('projen');
const AUTOMATION_TOKEN = 'PROJEN_GITHUB_TOKEN';
const project = new awscdk.AwsCdkConstructLibrary({
authorAddress: '[email protected]',
authorName: 'Clarence Lin',
cdkVersion: '1.71.0',
name: 'cdk-wordpress',
repository: 'https://github.com/clarencetw/cdk-wordpress.git',
keywords: ['aws', 'cdk', 'wordpress'],
defaultReleaseBranch: 'master',
autoApproveOptions: {
secret: 'GITHUB_TOKEN',
allowedUsernames: ['clarencetw'],
},
autoApproveUpgrades: true,
catalog: {
twitter: 'Clarence_Lin',
announce: false,
},
python: {
distName: 'cdk-wordpress',
module: 'cdk_wordpress',
},
cdkDependencies: [
'@aws-cdk/core',
'@aws-cdk/aws-ec2',
'@aws-cdk/aws-rds',
'@aws-cdk/aws-ecs',
'@aws-cdk/aws-ecs-patterns',
'@aws-cdk/aws-efs',
],
});
const gitpod = new Gitpod(project);
gitpod.addCustomTask({
init: 'yarn install && yarn run build',
command: 'npx projen upgrade',
});
const common_exclude = ['cdk.out', 'cdk.context.json', 'yarn-error.log'];
project.npmignore.exclude(...common_exclude);
project.gitignore.exclude(...common_exclude);
project.synth();