-
Notifications
You must be signed in to change notification settings - Fork 18
/
.projenrc.js
128 lines (114 loc) · 3.9 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
const pullRequestTeamplateString = `<!--
Thanks for contributing to MongoDB Atlas AWS CDK Resources!
Before you submit your pull request, please review our contribution guidelines:
https://github.com/mongodb/awscdk-resources-mongodbatlas/blob/master/CONTRIBUTING.md
Please fill out the information below to help speed up the review process
and getting you pull request merged!
-->
## Proposed changes
<!--
Describe the big picture of your changes here and communicate why we should accept this pull request.
If it fixes a bug or resolves a feature request, be sure to link to that issue.
-->
_Jira ticket:_ CLOUDP-#
Please include a summary of the fix/feature/change, including any relevant motivation and context.
Link to any related issue(s):
<!--
Check the boxes that apply. If you're unsure about any of them, don't hesitate to ask!
We're here to help! This is simply a reminder of what we are going to look for before merging your code.
-->
## Type of change:
- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as
expected)
- [ ] This change requires a documentation update
## Required Checklist:
- [ ] I have signed the [MongoDB CLA](https://www.mongodb.com/legal/contributor-agreement)
- [ ] I have added tests that prove my fix is effective or that my feature works
- [ ] I have added any necessary documentation (if appropriate)
- [ ] I have run \`make fmt\` and formatted my code
- [ ] I have tested the CDK constructor in a CFN stack. See [TESTING.md](../TESTING.md)
- [ ] If changes include removal or addition of 3rd party GitHub actions, I updated our internal document. Reach out to the APIx Integration slack channel to get access to the internal document.
## Further comments
`;
const { awscdk, javascript, JsonFile } = require("projen");
const { ReleaseTrigger } = require("projen/lib/release");
const project = new awscdk.AwsCdkConstructLibrary({
author: "MongoDB",
authorAddress: "https://www.mongodb.com/",
description:
"MongoDB Atlas CDK Construct Library for AWS CloudFormation Resources",
cdkVersion: "2.103.0",
defaultReleaseBranch: "main",
name: "awscdk-resources-mongodbatlas",
repositoryUrl: "https://github.com/mongodb/awscdk-resources-mongodbatlas.git",
keywords: [
"cdk",
"aws-cdk",
"awscdk",
"cloudformation",
"cfn",
"extensions",
"constructs",
"cfn-resources",
"cloudformation-registry",
"l1",
"l2",
"l3",
"mongodb",
"atlas",
],
npmAccess: javascript.NpmAccess.PUBLIC,
prettier: true,
docgen: true,
releaseToNpm: true,
publishToNuget: {
dotNetNamespace: "MongoDB.AWSCDKResourcesMongoDBAtlas",
packageId: "MongoDB.AWSCDKResourcesMongoDBAtlas",
},
publishToMaven: {
javaPackage: "org.mongodb.awscdk.resources.mongodbatlas",
mavenArtifactId: "awscdk-resources-mongodbatlas",
mavenGroupId: "org.mongodb",
},
publishToPypi: {
distName: "awscdk_resources_mongodbatlas",
module: "awscdk_resources_mongodbatlas",
homepage: "https://github.com/mongodb/awscdk-resources-mongodbatlas",
},
publishToGo: {
moduleName: "github.com/mongodb/awscdk-resources-mongodbatlas-go",
packageName: "awscdkresourcesmongodbatlas",
},
sampleCode: false,
peerDeps: [],
devDeps: [],
pullRequestTemplateContents: [pullRequestTeamplateString],
githubOptions: { workflows: false },
});
new JsonFile(project, "cdk.json", {
obj: {
app: "npx ts-node --prefer-ts-exts src/integ.default.ts",
},
});
const common_exclude = [
"cdk.out",
"cdk.context.json",
"yarn-error.log",
"*.DS_Store",
"examples-bin",
];
project.gitignore.exclude(...common_exclude);
project.npmignore.exclude(
...common_exclude,
"/src/",
"CONTRIBUTING.md",
"TESTING.md",
"CODE_OF_CONDUCT.md",
"SECURITY.md",
"cdk.json",
"/scripts/",
"/examples/"
);
project.synth();