-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.projenrc.ts
70 lines (65 loc) · 2.42 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
65
66
67
68
69
70
import { awscdk, javascript } from 'projen';
import { ArrowParens, TrailingComma } from 'projen/lib/javascript';
const project = new awscdk.AwsCdkConstructLibrary({
majorVersion: 1,
author: 'rehanvdm',
authorAddress: '[email protected]',
cdkVersion: '2.133.0',
defaultReleaseBranch: 'main',
// https://github.com/projen/projen/pull/3459/files Not yet in the latest projen template started
jsiiVersion: '~5.3.0',
typescriptVersion: '~5.3.0',
name: 'cdk-express-pipeline',
description: 'CDK pipelines provides constructs for Waves, Stages using only native CDK stack dependencies',
packageManager: javascript.NodePackageManager.NPM,
projenrcTs: true,
repositoryUrl: 'https://github.com/rehanvdm/cdk-express-pipeline.git',
prettierOptions: {
settings: {
printWidth: 120,
useTabs: false,
tabWidth: 2,
semi: true,
singleQuote: true,
bracketSpacing: true,
trailingComma: TrailingComma.ES5,
arrowParens: ArrowParens.ALWAYS,
},
},
pullRequestTemplate: false,
githubOptions: {
pullRequestLintOptions: {
semanticTitleOptions: {
types: ['feat', 'fix', 'docs', 'ci', 'chore'],
},
},
},
workflowNodeVersion: '20',
// Publishing disabled as no secrets are set yet.
publishToPypi: {
distName: 'cdk_express_pipeline',
module: 'cdk_express_pipeline',
},
// deps: [ ],
// bundledDeps: [ ],
/* Build dependencies for this module. */
devDeps: ['husky'],
jestOptions: {
jestConfig: {
moduleFileExtensions: ['ts', 'tsx', 'js', 'mjs', 'cjs', 'jsx', 'json', 'node'], // https://jestjs.io/docs/configuration#modulefileextensions-arraystring
},
},
});
project.package.addEngine('node', '~20.*');
project.package.addEngine('npm', '~10.*');
// Need to clear before compiling and packaging. Have to remove these because they are not cleared for some reason,
// only new files are added and it causes issues especially because when changing the folder structure the whole time.
const clear = project.addTask('clear-lib-and-dist');
clear.exec('rm -rf lib/ dist/');
// Only run husky if not in CI, in the post install script
project.package.setScript('prepare', 'if [ "$CI" = "true" ]; then echo "CI detected, not running husky"; else husky; fi');
project.gitignore.addPatterns('.idea');
project.gitignore.addPatterns('*.js');
project.gitignore.addPatterns('*.d.ts');
project.gitignore.addPatterns('*.DS_Store');
project.synth();