This repository has been archived by the owner on Sep 19, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
.projenrc.js
59 lines (55 loc) · 1.64 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
const { awscdk } = require('projen');
const PROJECT_NAME = 'cdk-s3bucket-ng';
const PROJECT_DESCRIPTION = 'cdk-s3bucket-ng is an AWS CDK construct library that provides a drop-in replacement for the Bucket construct with the capability to remove non-empty S3 buckets.';
const project = new awscdk.AwsCdkConstructLibrary({
name: PROJECT_NAME,
description: PROJECT_DESCRIPTION,
repository: 'https://github.com/neilkuan/cdk-s3bucket.git',
authorName: 'Neil Kuan',
authorEmail: '[email protected]',
keywords: ['aws', 'cdk', 's3'],
catalog: {
twitter: 'neil_kuan',
announce: false,
},
stability: 'experimental',
cdkVersion: '2.12.0',
/**
* we default release the main branch(cdkv2) with major version 2.
*/
majorVersion: 2,
defaultReleaseBranch: 'master',
/**
* we also release the cdkv1 branch with major version 1.
*/
releaseBranches: {
cdkv1: { npmDistTag: 'cdkv1', majorVersion: 1 },
},
compat: false,
autoDetectBin: false,
depsUpgradeOptions: {
ignoreProjen: false,
workflowOptions: {
labels: ['auto-approve'],
},
},
autoApproveOptions: {
secret: 'GITHUB_TOKEN',
allowedUsernames: ['neilkuan'],
},
publishToPypi: {
distName: 'cdk-s3bucket-ng',
module: 'cdk_s3bucket_ng',
},
rebuildBot: false,
workflowNodeVersion: '^14.17.0',
typescriptVersion: '3.9.10',
});
project.package.addField('resolutions', {
'trim-newlines': '3.0.1',
'got': '12.3.0',
});
const common_exclude = ['cdk.out', 'cdk.context.json', 'image', 'yarn-error.log', 'coverage'];
project.gitignore.exclude(...common_exclude);
project.npmignore.exclude(...common_exclude);
project.synth();