-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a278feb
commit 70eb7c0
Showing
49 changed files
with
20,076 additions
and
1,064 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"extends": [ | ||
"@commitlint/config-conventional" | ||
], | ||
"rules": { | ||
"footer-max-line-length": [ | ||
2, | ||
"always", | ||
200 | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"path": "./node_modules/cz-conventional-changelog" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
# Editor configuration, see http://editorconfig.org | ||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
indent_size = 4 | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
indent_style = space | ||
indent_size = 2 | ||
end_of_line = lf | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
|
||
[Makefile] | ||
indent_style = tab | ||
|
||
[*.{yml,yaml,js,ts}] | ||
indent_size = 2 | ||
[*.md] | ||
max_line_length = off | ||
trim_trailing_whitespace = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
dist | ||
node_modules | ||
.eslintrc.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
module.exports = { | ||
parser: '@typescript-eslint/parser', | ||
parserOptions: { | ||
project: 'tsconfig.json', | ||
sourceType: 'module', | ||
}, | ||
plugins: [ | ||
'@typescript-eslint/eslint-plugin', | ||
'prettier', | ||
'jest', | ||
'typescript-sort-keys', | ||
], | ||
extends: [ | ||
'eslint:recommended', | ||
'plugin:@typescript-eslint/eslint-recommended', | ||
'plugin:@typescript-eslint/recommended', | ||
'plugin:@typescript-eslint/recommended-requiring-type-checking', | ||
'plugin:jest/recommended', | ||
'plugin:typescript-sort-keys/recommended', | ||
'prettier', | ||
], | ||
root: true, | ||
env: { | ||
node: true, | ||
jest: true, | ||
}, | ||
ignorePatterns: ['.eslintrc.js'], | ||
rules: { | ||
'@typescript-eslint/interface-name-prefix': 'off', | ||
'@typescript-eslint/explicit-function-return-type': 'off', | ||
'@typescript-eslint/explicit-module-boundary-types': 'off', | ||
'@typescript-eslint/no-explicit-any': 'off', | ||
'@typescript-eslint/no-floating-promises': 'error', | ||
'@typescript-eslint/promise-function-async': 'error', | ||
'@typescript-eslint/unbound-method': 'off', | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
--- | ||
name: "\U0001F41B Bug Report" | ||
about: "If something isn't working as expected \U0001F914." | ||
title: '' | ||
labels: 'type: potential issue :broken_heart:,needs triage' | ||
assignees: '' | ||
--- | ||
|
||
## Bug Report | ||
|
||
## Current behavior | ||
|
||
<!-- Describe how the issue manifests. --> | ||
|
||
## Input Code | ||
|
||
<!-- REPL or Repo link if applicable: --> | ||
|
||
```ts | ||
const your = (code) => here; | ||
``` | ||
|
||
## Expected behavior | ||
|
||
<!-- A clear and concise description of what you expected to happen (or code). --> | ||
|
||
## Possible Solution | ||
|
||
<!--- Only if you have suggestions on a fix for the bug --> | ||
|
||
## Environment | ||
|
||
<pre><code> | ||
Nest version: X.Y.Z | ||
<!-- Check whether this is still an issue in the most recent Nest version --> | ||
|
||
For Tooling issues: | ||
- Node version: XX <!-- run `node --version` --> | ||
- Platform: <!-- Mac, Linux, Windows --> | ||
|
||
Others: | ||
<!-- Anything else relevant? Operating system version, IDE, package manager, ... --> | ||
</code></pre> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--- | ||
name: "\U0001F680 Feature Request" | ||
about: "I have a suggestion \U0001F63B!" | ||
title: '' | ||
labels: 'type: enhancement :wolf:,needs triage' | ||
assignees: '' | ||
--- | ||
|
||
## Feature Request | ||
|
||
## Is your feature request related to a problem? Please describe | ||
|
||
<!-- A clear and concise description of what the problem is. Ex. I have an issue when [...] --> | ||
|
||
## Describe the solution you'd like | ||
|
||
<!-- A clear and concise description of what you want to happen. Add any considered drawbacks. --> | ||
|
||
## Teachability, Documentation, Adoption, Migration Strategy | ||
|
||
<!-- If you can, explain how users will be able to use this and possibly write out a version the docs. Maybe a screenshot or design? --> | ||
|
||
## What is the motivation / use case for changing the behavior? | ||
|
||
<!-- Describe the motivation or the concrete use case. --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
--- | ||
name: "\U0001F4A5 Regression" | ||
about: Report an unexpected while upgrading your Nest application! | ||
title: '' | ||
labels: 'type: bug :sob:,needs triage' | ||
assignees: '' | ||
--- | ||
|
||
## Regression | ||
|
||
<!-- First check out: https://docs.nestjs.com/migration-guide --> | ||
|
||
## Potential Commit/PR that introduced the regression\*\* | ||
|
||
<!-- If you have time to investigate, what PR/date introduced this issue. --> | ||
|
||
## Describe the regression | ||
|
||
<!-- A clear and concise description of what the regression is. --> | ||
|
||
## Input Code | ||
|
||
<!--- If you have link to our REPL or a standalone repo please link that! --> | ||
|
||
```ts | ||
const your = (code) => here; | ||
``` | ||
|
||
## Expected behavior/code | ||
|
||
<!-- A clear and concise description of what you expected to happen (or code). --> | ||
|
||
## Environment | ||
|
||
<pre><code> | ||
Nest version: A.B.C -> X.Y.Z | ||
|
||
For Tooling issues: | ||
- Node version: XX <!-- run `node --version` --> | ||
- Platform: <!-- Mac, Linux, Windows --> | ||
|
||
Others: | ||
<!-- Anything else relevant? Operating system version, IDE, package manager, ... --> | ||
</code></pre> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
name: "\U0001F917 Support Question" | ||
about: "If you have a question \U0001F4AC, please check out our Discord or StackOverflow!" | ||
title: '' | ||
labels: 'type: question 🙌,needs triage' | ||
assignees: '' | ||
--- | ||
|
||
<!-- We primarily use GitHub as an issue tracker; for usage and support questions, please check out these resources below. Thanks! 😁. --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
## PR Checklist | ||
|
||
Please check if your PR fulfills the following requirements: | ||
|
||
- [ ] The commit message follows our guidelines: <https://www.conventionalcommits.org/en/v1.0.0/> | ||
- [ ] Tests for the changes have been added (for bug fixes / features) | ||
- [ ] Docs have been added / updated (for bug fixes / features) | ||
|
||
## PR Type | ||
|
||
What kind of change does this PR introduce? | ||
|
||
<!-- Please check the one that applies to this PR using "x". --> | ||
|
||
- [ ] Bugfix | ||
- [ ] Feature | ||
- [ ] Code style update (formatting, local variables) | ||
- [ ] Refactoring (no functional changes, no api changes) | ||
- [ ] Build related changes | ||
- [ ] CI related changes | ||
- [ ] Other... Please describe: | ||
|
||
## What is the current behavior? | ||
|
||
<!-- Please describe the current behavior that you are modifying, or link to a relevant issue. --> | ||
|
||
Issue Number: N/A | ||
|
||
## What is the new behavior? | ||
|
||
## Does this PR introduce a breaking change? | ||
|
||
- [ ] Yes | ||
- [ ] No | ||
|
||
<!-- If this PR contains a breaking change, please describe the impact and migration path for existing applications below. --> | ||
|
||
## Other information |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,13 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: docker | ||
directory: "/" | ||
schedule: | ||
interval: daily | ||
time: "08:00" | ||
open-pull-requests-limit: 10 | ||
- package-ecosystem: npm | ||
directory: "/" | ||
schedule: | ||
interval: daily | ||
time: "08:00" | ||
open-pull-requests-limit: 10 | ||
- package-ecosystem: pip | ||
directory: "/" | ||
schedule: | ||
interval: daily | ||
time: "08:00" | ||
open-pull-requests-limit: 10 | ||
- package-ecosystem: 'npm' | ||
directory: '/' | ||
schedule: | ||
interval: daily | ||
time: '08:00' | ||
open-pull-requests-limit: 10 | ||
- package-ecosystem: github-actions | ||
directory: '/' | ||
schedule: | ||
interval: daily | ||
open-pull-requests-limit: 10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node | ||
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions | ||
|
||
name: CI | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
paths-ignore: | ||
- '**.md' | ||
pull_request: | ||
branches: [main] | ||
paths-ignore: | ||
- '**.md' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: 14 | ||
|
||
- name: Cache node modules | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.npm | ||
key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }} | ||
restore-keys: | | ||
${{ runner.OS }}-node- | ||
${{ runner.OS }}- | ||
- name: Install dependencies | ||
run: npm ci | ||
|
||
- name: Build | ||
run: npm run build | ||
|
||
- name: Test | ||
run: npm run test | ||
env: | ||
CI: true | ||
|
||
release: | ||
needs: build | ||
if: github.ref == 'refs/heads/main' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: 14 | ||
|
||
- run: npm ci | ||
- run: npm run semantic-release | ||
env: | ||
GH_TOKEN: ${{ secrets.GH_TOKEN }} |
Oops, something went wrong.