tm-cdk-constructs 0.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.jsii +4231 -0
- package/API.md +2844 -0
- package/CONTRIBUTING.md +205 -0
- package/LICENSE +674 -0
- package/README.md +74 -0
- package/lib/databases/index.d.ts +1 -0
- package/lib/databases/index.js +18 -0
- package/lib/databases/rds-aurora-mysql-serverless.d.ts +17 -0
- package/lib/databases/rds-aurora-mysql-serverless.js +80 -0
- package/lib/index.d.ts +3 -0
- package/lib/index.js +22 -0
- package/lib/network/index.d.ts +1 -0
- package/lib/network/index.js +18 -0
- package/lib/network/vpc-base.d.ts +31 -0
- package/lib/network/vpc-base.js +72 -0
- package/lib/pipeline/index.d.ts +41 -0
- package/lib/pipeline/index.js +39 -0
- package/lib/stacks/network/tm-vpc-base-stack.d.ts +11 -0
- package/lib/stacks/network/tm-vpc-base-stack.js +16 -0
- package/package.json +133 -0
package/CONTRIBUTING.md
ADDED
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
# Contributing to CDK Construct
|
|
2
|
+
|
|
3
|
+
We would love for you to contribute to CDK Construct Toumoro and help make it even better than it is
|
|
4
|
+
today! As a contributor, here are the guidelines we would like you to follow:
|
|
5
|
+
|
|
6
|
+
- [Question or Problem?](#question)
|
|
7
|
+
- [Issues and Bugs](#issue)
|
|
8
|
+
- [Feature Requests](#feature)
|
|
9
|
+
- [Submission Guidelines](#submit)
|
|
10
|
+
- [Coding Rules](#rules)
|
|
11
|
+
- [Commit Message Guidelines](#commit)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## <a name="issue"></a> Found a Bug?
|
|
15
|
+
If you find a bug in the source code, you can help us by
|
|
16
|
+
[submitting an issue](#submit-issue) to our [GitHub Repository][github]. Even better, you can
|
|
17
|
+
[submit a Pull Request](#submit-pr) with a fix.
|
|
18
|
+
|
|
19
|
+
## <a name="feature"></a> Missing a Feature?
|
|
20
|
+
You can *request* a new feature by [submitting an issue](#submit-issue) to our GitHub
|
|
21
|
+
Repository. If you would like to *implement* a new feature, please submit an issue with
|
|
22
|
+
a proposal for your work first, to be sure that we can use it.
|
|
23
|
+
Please consider what kind of change it is:
|
|
24
|
+
|
|
25
|
+
* For a **Major Feature**, first open an issue and outline your proposal so that it can be
|
|
26
|
+
discussed. This will also allow us to better coordinate our efforts, prevent duplication of work,
|
|
27
|
+
and help you to craft the change so that it is successfully accepted into the project.
|
|
28
|
+
* **Small Features** can be crafted and directly [submitted as a Pull Request](#submit-pr).
|
|
29
|
+
|
|
30
|
+
## <a name="submit"></a> Submission Guidelines
|
|
31
|
+
|
|
32
|
+
### <a name="submit-issue"></a> Submitting an Issue
|
|
33
|
+
|
|
34
|
+
Before you submit an issue, please search the issue tracker, maybe an issue for your problem already exists and the discussion might inform you of workarounds readily available.
|
|
35
|
+
|
|
36
|
+
We want to fix all the issues as soon as possible, but before fixing a bug we need to reproduce and confirm it. In order to reproduce bugs, we will systematically ask you to provide a minimal reproduction scenario using https://www.loom.com/. Having a live, reproducible scenario gives us a wealth of important information without going back & forth to you with additional questions like:
|
|
37
|
+
|
|
38
|
+
- version of CDK Construct Toumoro used
|
|
39
|
+
- version of CDK-lib used
|
|
40
|
+
- version of Constructs used
|
|
41
|
+
- and most importantly - a use-case that fails
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
We will be insisting on a minimal reproduce scenario in order to save maintainers time and ultimately be able to fix more bugs. Interestingly, from our experience users often find coding problems themselves while preparing a minimal plunk. We understand that sometimes it might be hard to extract essentials bits of code from a larger code-base but we really need to isolate the problem before we can fix it.
|
|
45
|
+
|
|
46
|
+
Unfortunately, we are not able to investigate / fix bugs without a minimal reproduction, so if we don't hear back from you we are going to close an issue that doesn't have enough info to be reproduced.
|
|
47
|
+
|
|
48
|
+
You can file new issues by filling out our [new issue form](https://github.com/CDK Construct Toumoro/CDK Construct Toumoro/issues/new).
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
### <a name="submit-pr"></a> Submitting a Pull Request (PR)
|
|
52
|
+
Before you submit your Pull Request (PR) consider the following guidelines:
|
|
53
|
+
|
|
54
|
+
1. Search [GitHub](https://github.com/CDK Construct Toumoro/CDK Construct Toumoro/pulls) for an open or closed PR
|
|
55
|
+
that relates to your submission. You don't want to duplicate effort.
|
|
56
|
+
1. Fork the CDK Construct Toumoro/CDK Construct Toumoro repo.
|
|
57
|
+
1. Make your changes in a new git branch:
|
|
58
|
+
|
|
59
|
+
```shell
|
|
60
|
+
git checkout -b my-fix-branch main
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
1. Create your patch, **including appropriate test cases**.
|
|
64
|
+
1. Follow our [Coding Rules](#rules).
|
|
65
|
+
1. Run the full CDK Construct Toumoro test suite, as described in the [developer documentation][dev-doc],
|
|
66
|
+
and ensure that all tests pass.
|
|
67
|
+
1. Commit your changes using a descriptive commit message that follows our
|
|
68
|
+
[commit message conventions](#commit). Adherence to these conventions
|
|
69
|
+
is necessary because release notes are automatically generated from these messages.
|
|
70
|
+
|
|
71
|
+
```shell
|
|
72
|
+
git commit -a
|
|
73
|
+
```
|
|
74
|
+
Note: the optional commit `-a` command line option will automatically "add" and "rm" edited files.
|
|
75
|
+
|
|
76
|
+
1. Push your branch to GitHub:
|
|
77
|
+
|
|
78
|
+
```shell
|
|
79
|
+
git push origin my-fix-branch
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
1. In GitHub, send a pull request to `CDK Construct Toumoro:main`.
|
|
83
|
+
* If we suggest changes then:
|
|
84
|
+
* Make the required updates.
|
|
85
|
+
* Re-run the CDK Construct Toumoro test suites to ensure tests are still passing.
|
|
86
|
+
* Rebase your branch and force push to your GitHub repository (this will update your Pull Request):
|
|
87
|
+
|
|
88
|
+
```shell
|
|
89
|
+
git rebase main -i
|
|
90
|
+
git push -f
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
That's it! Thank you for your contribution!
|
|
94
|
+
|
|
95
|
+
#### After your pull request is merged
|
|
96
|
+
|
|
97
|
+
After your pull request is merged, you can safely delete your branch and pull the changes
|
|
98
|
+
from the main (upstream) repository:
|
|
99
|
+
|
|
100
|
+
* Delete the remote branch on GitHub either through the GitHub web UI or your local shell as follows:
|
|
101
|
+
|
|
102
|
+
```shell
|
|
103
|
+
git push origin --delete my-fix-branch
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
* Check out the main branch:
|
|
107
|
+
|
|
108
|
+
```shell
|
|
109
|
+
git checkout main -f
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
* Delete the local branch:
|
|
113
|
+
|
|
114
|
+
```shell
|
|
115
|
+
git branch -D my-fix-branch
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
* Update your main with the latest upstream version:
|
|
119
|
+
|
|
120
|
+
```shell
|
|
121
|
+
git pull --ff upstream main
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
## <a name="rules"></a> Coding Rules
|
|
125
|
+
To ensure consistency throughout the source code, keep these rules in mind as you are working:
|
|
126
|
+
|
|
127
|
+
* All features or bug fixes **must be tested** by one or more specs (unit-tests).
|
|
128
|
+
* All public API methods **must be documented**. (Details TBC).
|
|
129
|
+
* We follow [Google's JavaScript Style Guide][js-style-guide], but wrap all code at
|
|
130
|
+
**100 characters**. An automated formatter is available, see
|
|
131
|
+
[DEVELOPER.md](docs/DEVELOPER.md#clang-format).
|
|
132
|
+
|
|
133
|
+
## <a name="commit"></a> Commit Message Guidelines
|
|
134
|
+
|
|
135
|
+
We have very precise rules over how our git commit messages can be formatted. This leads to **more
|
|
136
|
+
readable messages** that are easy to follow when looking through the **project history**. But also,
|
|
137
|
+
we use the git commit messages to **generate the CDK Construct Toumoro change log**.
|
|
138
|
+
|
|
139
|
+
### Commit Message Format
|
|
140
|
+
Each commit message consists of a **header**, a **body** and a **footer**. The header has a special
|
|
141
|
+
format that includes a **type**, a **scope** and a **subject**:
|
|
142
|
+
|
|
143
|
+
```
|
|
144
|
+
<type>(<scope>): <subject>
|
|
145
|
+
<BLANK LINE>
|
|
146
|
+
<body>
|
|
147
|
+
<BLANK LINE>
|
|
148
|
+
<footer>
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
The **header** is mandatory and the **scope** of the header is optional.
|
|
152
|
+
|
|
153
|
+
Any line of the commit message cannot be longer 100 characters! This allows the message to be easier
|
|
154
|
+
to read on GitHub as well as in various git tools.
|
|
155
|
+
|
|
156
|
+
The footer should contain a [closing reference to an issue](https://help.github.com/articles/closing-issues-via-commit-messages/) if any.
|
|
157
|
+
|
|
158
|
+
Samples: (even more [samples](https://github.com/CDK Construct Toumoro/CDK Construct Toumoro/commits/main))
|
|
159
|
+
|
|
160
|
+
```
|
|
161
|
+
docs(changelog): update changelog to beta.5
|
|
162
|
+
```
|
|
163
|
+
```
|
|
164
|
+
fix(release): need to depend on latest rxjs and zone.js
|
|
165
|
+
|
|
166
|
+
The version in our package.json gets copied to the one we publish, and users need the latest of these.
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
### Revert
|
|
170
|
+
If the commit reverts a previous commit, it should begin with `revert: `, followed by the header of the reverted commit. In the body it should say: `This reverts commit <hash>.`, where the hash is the SHA of the commit being reverted.
|
|
171
|
+
|
|
172
|
+
### Type
|
|
173
|
+
Must be one of the following:
|
|
174
|
+
|
|
175
|
+
* **build**: Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)
|
|
176
|
+
* **ci**: Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)
|
|
177
|
+
* **docs**: Documentation only changes
|
|
178
|
+
* **feat**: A new feature
|
|
179
|
+
* **fix**: A bug fix
|
|
180
|
+
* **perf**: A code change that improves performance
|
|
181
|
+
* **refactor**: A code change that neither fixes a bug nor adds a feature
|
|
182
|
+
* **style**: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)
|
|
183
|
+
* **test**: Adding missing tests or correcting existing tests
|
|
184
|
+
|
|
185
|
+
### Scope
|
|
186
|
+
The scope should be the name of construct affected (as perceived by the person reading the changelog generated from commit messages.
|
|
187
|
+
|
|
188
|
+
### Subject
|
|
189
|
+
The subject contains a succinct description of the change:
|
|
190
|
+
|
|
191
|
+
* use the imperative, present tense: "change" not "changed" nor "changes"
|
|
192
|
+
* don't capitalize the first letter
|
|
193
|
+
* no dot (.) at the end
|
|
194
|
+
|
|
195
|
+
### Body
|
|
196
|
+
Just as in the **subject**, use the imperative, present tense: "change" not "changed" nor "changes".
|
|
197
|
+
The body should include the motivation for the change and contrast this with previous behavior.
|
|
198
|
+
|
|
199
|
+
### Footer
|
|
200
|
+
The footer should contain any information about **Breaking Changes** and is also the place to
|
|
201
|
+
reference GitHub issues that this commit **Closes**.
|
|
202
|
+
|
|
203
|
+
**Breaking Changes** should start with the word `BREAKING CHANGE:` with a space or two newlines. The rest of the commit message is then used for this.
|
|
204
|
+
|
|
205
|
+
A detailed explanation can be found in this [document][commit-message-format].
|