-
Notifications
You must be signed in to change notification settings - Fork 17
/
.projenrc.js
62 lines (51 loc) · 1.65 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
const { awscdk, github, TextFile, javascript } = require('projen');
const nodejsVersion = '16.20.0';
const project = new awscdk.AwsCdkConstructLibrary({
// Metadata
stability: 'experimental',
authorName: 'Ari Palo',
authorOrganization: false,
authorAddress: 'opensource@aripalo.com',
name: 'aws-cdk-github-oidc',
description: 'CDK constructs to use OpenID Connect for authenticating your Github Action workflow with AWS IAM',
repositoryUrl: 'https://github.com/aripalo/aws-cdk-github-oidc.git',
keywords: ['cdk', 'aws-cdk', 'awscdk', 'aws', 'iam', 'github', 'github-actions', 'oidc', 'openid-connect'],
// Publish configuration
defaultReleaseBranch: 'main',
majorVersion: 2, // we default release the main branch(cdkv2) with major version 2.
packageManager: javascript.NodePackageManager.NPM,
npmAccess: javascript.NpmAccess.PUBLIC,
publishToPypi: {
distName: 'aws-cdk-github-oidc',
module: 'aws_cdk_github_oidc',
},
publishToGo: {
moduleName: 'github.com/aripalo/aws-cdk-github-oidc-go',
},
// Dependencies
minNodeVersion: nodejsVersion,
cdkVersion: '2.89.0',
constructsVersion: '10.0.0',
peerDeps: ['constructs', 'aws-cdk-lib'],
devDeps: ['@types/github-username-regex', 'constructs'],
bundledDeps: [],
// Gitignore
gitignore: [
'.DS_Store',
'/examples/**/cdk.context.json',
'/examples/**/node_modules',
'/examples/**/cdk.out',
'/examples/**/.git',
'**/*.drawio.bkp',
],
tsconfig: {
compilerOptions: {
esModuleInterop: true, // required for github-username-regex
},
},
codeCov: true,
});
new TextFile(project, '.nvmrc', {
lines: [nodejsVersion],
});
project.synth();