-
Notifications
You must be signed in to change notification settings - Fork 7
/
.projenrc.js
51 lines (47 loc) · 1.36 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
48
49
50
51
const { AwsCdkConstructLibrary, DependenciesUpgradeMechanism } = require('projen');
const AUTOMATION_TOKEN = 'PROJEN_GITHUB_TOKEN';
const project = new AwsCdkConstructLibrary({
author: 'Pahud Hsieh',
authorAddress: '[email protected]',
cdkVersion: '1.95.2',
defaultReleaseBranch: 'main',
name: 'cdk-fargate-patterns',
description: 'CDK patterns for serverless container with AWS Fargate',
repositoryUrl: 'https://github.com/pahud/cdk-fargate-patterns.git',
cdkDependencies: [
'@aws-cdk/core',
'@aws-cdk/aws-ec2',
'@aws-cdk/aws-ecs',
'@aws-cdk/aws-route53',
'@aws-cdk/aws-route53-targets',
'@aws-cdk/aws-elasticloadbalancingv2',
],
depsUpgrade: DependenciesUpgradeMechanism.githubWorkflow({
workflowOptions: {
labels: ['auto-approve', 'auto-merge'],
secret: AUTOMATION_TOKEN,
},
}),
autoApproveOptions: {
secret: 'GITHUB_TOKEN',
allowedUsernames: ['pahud'],
},
publishToPypi: {
distName: 'cdk-fargate-patterns',
module: 'cdk_fargate_patterns',
},
catalog: {
announce: false,
twitter: 'pahudnet',
},
keywords: [
'cdk',
'fargate',
'serverless',
'aws',
],
});
const common_exclude = ['cdk.out', 'cdk.context.json', 'yarn-error.log', 'dependabot.yml'];
project.npmignore.exclude(...common_exclude, 'images');
project.gitignore.exclude(...common_exclude);
project.synth();