Skip to content

Commit 307fe92

Browse files
committed
first commit
0 parents  commit 307fe92

30 files changed

+7012
-0
lines changed

.circleci/config.yml

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
version: 2
2+
3+
aliases:
4+
- &restore-cache
5+
restore_cache:
6+
key: dependency-cache-{{ checksum "package.json" }}
7+
- &install-deps
8+
run:
9+
name: Install dependencies
10+
command: npm ci
11+
- &build-packages
12+
run:
13+
name: Build
14+
command: npm run build
15+
16+
jobs:
17+
build:
18+
working_directory: ~/nest
19+
docker:
20+
- image: circleci/node:12
21+
steps:
22+
- checkout
23+
- run:
24+
name: Update NPM version
25+
command: 'sudo npm install -g npm@latest'
26+
- restore_cache:
27+
key: dependency-cache-{{ checksum "package.json" }}
28+
- run:
29+
name: Install dependencies
30+
command: npm ci
31+
- save_cache:
32+
key: dependency-cache-{{ checksum "package.json" }}
33+
paths:
34+
- ./node_modules
35+
- run:
36+
name: Build
37+
command: npm run build
38+
39+
workflows:
40+
version: 2
41+
build-and-test:
42+
jobs:
43+
- build
44+

.commitlintrc.json

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"extends": ["@commitlint/config-angular"],
3+
"rules": {
4+
"subject-case": [
5+
2,
6+
"always",
7+
["sentence-case", "start-case", "pascal-case", "upper-case", "lower-case"]
8+
],
9+
"type-enum": [
10+
2,
11+
"always",
12+
[
13+
"build",
14+
"chore",
15+
"ci",
16+
"docs",
17+
"feat",
18+
"fix",
19+
"perf",
20+
"refactor",
21+
"revert",
22+
"style",
23+
"test",
24+
"sample"
25+
]
26+
]
27+
}
28+
}

.eslintrc.js

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
module.exports = {
2+
parser: '@typescript-eslint/parser',
3+
parserOptions: {
4+
project: 'tsconfig.json',
5+
sourceType: 'module',
6+
},
7+
plugins: ['@typescript-eslint/eslint-plugin'],
8+
extends: [
9+
'plugin:@typescript-eslint/eslint-recommended',
10+
'plugin:@typescript-eslint/recommended',
11+
'prettier',
12+
'prettier/@typescript-eslint',
13+
],
14+
root: true,
15+
env: {
16+
node: true,
17+
jest: true,
18+
},
19+
rules: {
20+
'@typescript-eslint/interface-name-prefix': 'off',
21+
'@typescript-eslint/explicit-function-return-type': 'off',
22+
'@typescript-eslint/no-explicit-any': 'off',
23+
'@typescript-eslint/no-use-before-define': 'off',
24+
},
25+
};

.github/ISSUE_TEMPLATE.md

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
<!--
2+
PLEASE HELP US PROCESS GITHUB ISSUES FASTER BY PROVIDING THE FOLLOWING INFORMATION.
3+
4+
ISSUES MISSING IMPORTANT INFORMATION MAY BE CLOSED WITHOUT INVESTIGATION.
5+
-->
6+
7+
## I'm submitting a...
8+
<!--
9+
Please search GitHub for a similar issue or PR before submitting.
10+
Check one of the following options with "x" -->
11+
<pre><code>
12+
[ ] Regression <!--(a behavior that used to work and stopped working in a new release)-->
13+
[ ] Bug report
14+
[ ] Feature request
15+
[ ] Documentation issue or request
16+
[ ] Support request => Please do not submit support request here, instead post your question on Stack Overflow.
17+
</code></pre>
18+
19+
## Current behavior
20+
<!-- Describe how the issue manifests. -->
21+
22+
23+
## Expected behavior
24+
<!-- Describe what the desired behavior would be. -->
25+
26+
27+
## Minimal reproduction of the problem with instructions
28+
<!-- Please share a repo, a gist, or step-by-step instructions. -->
29+
30+
## What is the motivation / use case for changing the behavior?
31+
<!-- Describe the motivation or the concrete use case. -->
32+
33+
34+
## Environment
35+
36+
<pre><code>
37+
Nest version: X.Y.Z
38+
<!-- Check whether this is still an issue in the most recent Nest version -->
39+
40+
For Tooling issues:
41+
- Node version: XX <!-- run `node --version` -->
42+
- Platform: <!-- Mac, Linux, Windows -->
43+
44+
Others:
45+
<!-- Anything else relevant? Operating system version, IDE, package manager, ... -->
46+
</code></pre>

.github/PULL_REQUEST_TEMPLATE.md

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
## PR Checklist
2+
Please check if your PR fulfills the following requirements:
3+
4+
- [ ] The commit message follows our guidelines: https://github.com/nestjs/nest/blob/master/CONTRIBUTING.md
5+
- [ ] Tests for the changes have been added (for bug fixes / features)
6+
- [ ] Docs have been added / updated (for bug fixes / features)
7+
8+
9+
## PR Type
10+
What kind of change does this PR introduce?
11+
12+
<!-- Please check the one that applies to this PR using "x". -->
13+
```
14+
[ ] Bugfix
15+
[ ] Feature
16+
[ ] Code style update (formatting, local variables)
17+
[ ] Refactoring (no functional changes, no api changes)
18+
[ ] Build related changes
19+
[ ] CI related changes
20+
[ ] Other... Please describe:
21+
```
22+
23+
## What is the current behavior?
24+
<!-- Please describe the current behavior that you are modifying, or link to a relevant issue. -->
25+
26+
Issue Number: N/A
27+
28+
29+
## What is the new behavior?
30+
31+
32+
## Does this PR introduce a breaking change?
33+
```
34+
[ ] Yes
35+
[ ] No
36+
```
37+
38+
<!-- If this PR contains a breaking change, please describe the impact and migration path for existing applications below. -->
39+
40+
41+
## Other information

.gitignore

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# dependencies
2+
/node_modules
3+
4+
# IDE
5+
/.idea
6+
/.awcache
7+
/.vscode
8+
9+
# misc
10+
npm-debug.log
11+
.DS_Store
12+
13+
# tests
14+
/test
15+
/coverage
16+
/.nyc_output
17+
18+
# dist
19+
dist

.npmignore

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# source
2+
lib
3+
index.ts
4+
package-lock.json
5+
.eslintrc.js
6+
tsconfig.json
7+
.prettierrc
8+
.commitlintrc.json

.prettierrc

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"trailingComma": "all",
3+
"singleQuote": true
4+
}

.release-it.json

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"git": {
3+
"commitMessage": "chore(): release v${version}"
4+
},
5+
"github": {
6+
"release": true
7+
}
8+
}

0 commit comments

Comments
 (0)