forked from cdklabs/cdk-nag
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.projenrc.js
73 lines (73 loc) · 2.02 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
67
68
69
70
71
72
73
/*
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
*/
const { awscdk } = require('projen');
const project = new awscdk.AwsCdkConstructLibrary({
author: 'Arun Donti',
authorAddress: '[email protected]',
cdkVersion: '2.45.0',
defaultReleaseBranch: 'main',
majorVersion: 2,
npmDistTag: 'latest',
name: 'cdk-nag',
description:
'Check CDK v2 applications for best practices using a combination on available rule packs.',
repositoryUrl: 'https://github.com/cdklabs/cdk-nag.git',
devDeps: ['@aws-cdk/assert@^2.18'],
publishToPypi: {
distName: 'cdk-nag',
module: 'cdk_nag',
},
publishToNuget: {
packageId: 'Cdklabs.CdkNag',
dotNetNamespace: 'Cdklabs.CdkNag',
},
publishToMaven: {
mavenGroupId: 'io.github.cdklabs',
javaPackage: 'io.github.cdklabs.cdknag',
mavenArtifactId: 'cdknag',
mavenEndpoint: 'https://s01.oss.sonatype.org',
},
publishToGo: {
moduleName: 'github.com/cdklabs/cdk-nag-go',
gitUserName: 'cdklabs-automation',
gitUserEmail: '[email protected]',
},
projenUpgradeSecret: 'PROJEN_GITHUB_TOKEN',
autoApproveOptions: {
allowedUsernames: ['cdklabs-automation', 'dontirun'],
secret: 'GITHUB_TOKEN',
},
autoApproveUpgrades: true,
depsUpgradeOptions: {
ignoreProjen: false,
workflowOptions: {
labels: ['auto-approve'],
secret: 'PROJEN_GITHUB_TOKEN',
container: {
image: 'jsii/superchain:1-buster-slim-node14',
},
},
},
workflowContainerImage: 'jsii/superchain:1-buster-slim-node14',
eslintOptions: { prettier: true },
buildWorkflow: true,
release: true,
gitignore: ['.vscode', '**/.DS_Store'],
});
project.package.addField('prettier', {
singleQuote: true,
semi: true,
trailingComma: 'es5',
});
project.eslint.addRules({
'prettier/prettier': [
'error',
{ singleQuote: true, semi: true, trailingComma: 'es5' },
],
});
eslint = project.tasks
.tryFind('eslint')
.prependExec('npx prettier --write RULES.md');
project.synth();