generated from pahud/awscdk-jsii-template
-
-
Notifications
You must be signed in to change notification settings - Fork 11
/
.projenrc.js
66 lines (61 loc) · 1.85 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
66
const { awscdk } = require('projen');
const PROJECT_NAME = 'cdk-gitlab-runner';
const PROJECT_DESCRIPTION = 'Use AWS CDK to create a gitlab runner, and use gitlab runner to help you execute your Gitlab pipeline job.';
const project = new awscdk.AwsCdkConstructLibrary({
name: PROJECT_NAME,
description: PROJECT_DESCRIPTION,
repository: 'https://github.com/neilkuan/cdk-gitlab-runner.git',
authorName: 'Neil Kuan',
authorEmail: 'guan840912@gmail.com',
keywords: ['aws', 'gitlab', 'runner'],
defaultReleaseBranch: 'master',
catalog: {
twitter: 'neil_kuan',
announce: false,
},
compat: true,
stability: 'experimental',
cdkVersion: '2.126.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 },
},
autoDetectBin: false,
depsUpgradeOptions: {
ignoreProjen: false,
workflowOptions: {
labels: ['auto-approve', 'auto-merge'],
},
},
autoApproveOptions: {
secret: 'GITHUB_TOKEN',
allowedUsernames: ['neilkuan'],
},
publishToPypi: {
distName: 'cdk-gitlab-runner',
module: 'cdk_gitlab_runner',
},
workflowNodeVersion: '^16.16.0',
typescriptVersion: '^4.9',
jsiiVersion: '~5.0.7',
deps: [
'compare-versions',
],
bundledDeps: ['compare-versions'],
minNodeVersion: '20.10.0',
workflowNodeVersion: '20.10.0',
typescriptVersion: '^5',
jsiiVersion: '5.3.x',
});
const common_exclude = ['cdk.out', 'cdk.context.json', 'yarn-error.log', 'coverage', 'venv'];
project.gitignore.exclude(...common_exclude);
project.npmignore.exclude(...common_exclude, 'image');
project.package.addDevDeps(...['jest@^29', '@types/jest@^29', 'ts-jest@^29', 'jsii-rosetta@5.0.x']);
project.synth();