forked from cdklabs/cdk-pipelines-github
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.projenrc.ts
64 lines (58 loc) · 1.56 KB
/
.projenrc.ts
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
/** @format */
import { AwsCdkConstructLibrary } from 'projen/lib/awscdk';
import { NpmAccess } from 'projen/lib/javascript';
const project = new AwsCdkConstructLibrary({
projenrcTs: true,
name: '@nextdoor/cdk-pipelines-github',
description: 'GitHub Workflows support for CDK Pipelines',
author: 'Amazon Web Services',
authorAddress: '[email protected]',
cdkVersion: '2.9.0',
jsiiVersion: '^5.3.0',
constructsVersion: '10.0.46',
defaultReleaseBranch: 'nextdoor',
repositoryUrl: 'https://github.com/Nextdoor/cdk-pipelines-github.git',
bundledDeps: ['decamelize', 'yaml', 'fast-json-patch'],
devDeps: [
'cdklabs-projen-project-types',
'aws-cdk-lib',
'@aws-cdk/integ-runner@^2.60.0',
'@aws-cdk/integ-tests-alpha',
],
peerDeps: ['aws-cdk-lib'],
/**
* Automatic publishing of our packages to Github Packages as a private package.
*/
npmAccess: NpmAccess.RESTRICTED,
npmDistTag: 'latest',
npmRegistryUrl: 'https://npm.pkg.github.com',
npmTokenSecret: 'GITHUB_TOKEN',
/**
* Style
*/
eslintOptions: {
dirs: ['src'],
yaml: true,
},
prettier: true,
prettierOptions: {
yaml: true,
settings: {
insertPragma: true,
printWidth: 120,
singleQuote: true,
},
},
/**
* Pull Request Formatting
*/
githubOptions: {
// https://projen.io/api/API.html#projen-github-pullrequestlint
pullRequestLintOptions: {
semanticTitleOptions: {
types: ['build', 'chore', 'feat', 'ci', 'docs', 'style', 'refactor', 'perf', 'test', 'fix'],
},
},
},
});
project.synth();