This repository has been archived by the owner on Oct 6, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 26
/
.projenrc.js
65 lines (57 loc) · 1.7 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
const { AwsCdkConstructLibrary } = require('projen');
const { Automation } = require('projen-automate-it');
const AWS_CDK_LATEST_RELEASE = '1.78.0';
const PROJECT_NAME = 'cdk-fargate-fastautoscaler';
const PROJECT_DESCRIPTION = 'A JSII construct lib to build AWS Fargate Fast Autoscaler';
const PROJECT_REPOSITORY = 'https://github.com/aws-samples/aws-fargate-fast-autoscaler.git';
const AUTOMATION_TOKEN = 'PROJEN_GITHUB_TOKEN';
const project = new AwsCdkConstructLibrary({
authorName: 'Pahud Hsieh',
authorEmail: 'pahudnet@gmail.com',
name: PROJECT_NAME,
description: PROJECT_DESCRIPTION,
repository: PROJECT_REPOSITORY,
dependabot: false,
defaultReleaseBranch: 'master',
keywords: [
'aws',
'fargate',
'autoscaler',
],
deps: [
'projen-automate-it',
],
bundledDeps: [
'projen-automate-it',
],
catalog: {
twitter: 'pahudnet',
announce: false,
},
cdkVersion: AWS_CDK_LATEST_RELEASE,
cdkDependencies: [
'@aws-cdk/core',
'@aws-cdk/aws-ec2',
'@aws-cdk/aws-ecs',
'@aws-cdk/aws-elasticloadbalancingv2',
'@aws-cdk/aws-iam',
'@aws-cdk/aws-lambda',
'@aws-cdk/aws-sns',
'@aws-cdk/aws-stepfunctions',
'@aws-cdk/aws-stepfunctions-tasks',
],
python: {
distName: 'cdk-fargate-fastautoscaler',
module: 'cdk_fargate_fastautoscaler',
},
});
const automation = new Automation(project, {
automationToken: AUTOMATION_TOKEN,
});
automation.autoApprove();
automation.autoMerge();
automation.projenYarnUpgrade();
const common_exclude = ['cdk.out', 'cdk.context.json', 'docker-compose.yml', 'images', 'yarn-error.log'];
project.npmignore.exclude(...common_exclude, '/codebase');
project.gitignore.exclude(...common_exclude);
project.synth();