-
-
Notifications
You must be signed in to change notification settings - Fork 7.8k
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
Showing
567 changed files
with
9,469 additions
and
303 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,46 @@ | ||
<!-- | ||
PLEASE HELP US PROCESS GITHUB ISSUES FASTER BY PROVIDING THE FOLLOWING INFORMATION. | ||
ISSUES MISSING IMPORTANT INFORMATION MAY BE CLOSED WITHOUT INVESTIGATION. | ||
--> | ||
|
||
## I'm submitting a... | ||
<!-- | ||
Please search GitHub for a similar issue or PR before submitting. | ||
Check one of the following options with "x" --> | ||
<pre><code> | ||
[ ] Regression <!--(a behavior that used to work and stopped working in a new release)--> | ||
[ ] Bug report | ||
[ ] Feature request | ||
[ ] Documentation issue or request | ||
[ ] Support request => Please do not submit support request here, instead post your question on Stack Overflow. | ||
</code></pre> | ||
|
||
## Current behavior | ||
<!-- Describe how the issue manifests. --> | ||
|
||
|
||
## Expected behavior | ||
<!-- Describe what the desired behavior would be. --> | ||
|
||
|
||
## Minimal reproduction of the problem with instructions | ||
<!-- Please share a repo, a gist, or step-by-step instructions. --> | ||
|
||
## What is the motivation / use case for changing the behavior? | ||
<!-- Describe the motivation or the concrete use case. --> | ||
|
||
|
||
## 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 |
---|---|---|
|
@@ -24,6 +24,3 @@ npm-debug.log | |
/test | ||
/coverage | ||
/.nyc_output | ||
|
||
# build | ||
/lib |
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
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
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
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
2 changes: 1 addition & 1 deletion
2
examples/01-cats-app/src/modules/common/exceptions/forbidden.exception.ts
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
2 changes: 1 addition & 1 deletion
2
examples/01-cats-app/src/modules/common/filters/http-exception.filter.ts
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
2 changes: 1 addition & 1 deletion
2
examples/01-cats-app/src/modules/common/interceptors/exception.interceptor.ts
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
2 changes: 1 addition & 1 deletion
2
examples/01-cats-app/src/modules/common/pipes/parse-int.pipe.ts
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
2 changes: 1 addition & 1 deletion
2
examples/01-cats-app/src/modules/common/pipes/validation.pipe.ts
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
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
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
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
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
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
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
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
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
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,35 +1,59 @@ | ||
const gulp = require('gulp'); | ||
const ts = require('gulp-typescript'); | ||
const gulpSequence = require('gulp-sequence') | ||
const gulpSequence = require('gulp-sequence'); | ||
|
||
const packages = { | ||
common: ts.createProject('src/common/tsconfig.json'), | ||
core: ts.createProject('src/core/tsconfig.json'), | ||
microservices: ts.createProject('src/microservices/tsconfig.json'), | ||
websockets: ts.createProject('src/websockets/tsconfig.json'), | ||
testing: ts.createProject('src/testing/tsconfig.json') | ||
common: ts.createProject('src/common/tsconfig.json'), | ||
core: ts.createProject('src/core/tsconfig.json'), | ||
microservices: ts.createProject('src/microservices/tsconfig.json'), | ||
websockets: ts.createProject('src/websockets/tsconfig.json'), | ||
testing: ts.createProject('src/testing/tsconfig.json'), | ||
}; | ||
const modules = Object.keys(packages); | ||
const source = 'src'; | ||
const distId = process.argv.indexOf('--dist'); | ||
const dist = distId < 0 ? 'node_modules/@nestjs' : process.argv[distId + 1]; | ||
|
||
gulp.task('default', function () { | ||
modules.forEach((module) => { | ||
gulp.watch([`${source}/${module}/**/*.ts`, `${source}/${module}/*.ts`], [module]); | ||
}); | ||
gulp.task('default', function() { | ||
modules.forEach(module => { | ||
gulp.watch( | ||
[`${source}/${module}/**/*.ts`, `${source}/${module}/*.ts`], | ||
[module] | ||
); | ||
}); | ||
}); | ||
|
||
modules.forEach((module) => { | ||
gulp.task(module, () => { | ||
return packages[module].src() | ||
.pipe(packages[module]()) | ||
.pipe(gulp.dest(`${dist}/${module}`)); | ||
}); | ||
modules.forEach(module => { | ||
gulp.task(module, () => { | ||
return packages[module] | ||
.src() | ||
.pipe(packages[module]()) | ||
.pipe(gulp.dest(`${dist}/${module}`)); | ||
}); | ||
}); | ||
|
||
gulp.task('build', function (cb) { | ||
gulpSequence(modules, cb); | ||
gulp.task('build', function(cb) { | ||
gulpSequence(modules, cb); | ||
}); | ||
|
||
|
||
gulp.task('move', function() { | ||
gulp.src(['node_modules/@nestjs/**/*']).pipe( | ||
gulp.dest('examples/01-cats-app/node_modules/@nestjs') | ||
).pipe( | ||
gulp.dest('examples/02-gateways/node_modules/@nestjs') | ||
).pipe( | ||
gulp.dest('examples/03-microservices/node_modules/@nestjs') | ||
).pipe( | ||
gulp.dest('examples/04-injector/node_modules/@nestjs') | ||
).pipe( | ||
gulp.dest('examples/05-sql-typeorm/node_modules/@nestjs') | ||
).pipe( | ||
gulp.dest('examples/06-mongoose/node_modules/@nestjs') | ||
).pipe( | ||
gulp.dest('examples/07-sequelize/node_modules/@nestjs') | ||
).pipe( | ||
gulp.dest('examples/08-passport/node_modules/@nestjs') | ||
).pipe( | ||
gulp.dest('examples/09-babel-example/node_modules/@nestjs') | ||
); | ||
}); |
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 |
---|---|---|
|
@@ -3,5 +3,5 @@ | |
"packages": [ | ||
"lib/*" | ||
], | ||
"version": "4.2.2" | ||
"version": "4.4.1" | ||
} |
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,22 @@ | ||
(The MIT License) | ||
|
||
Copyright (c) 2017 Kamil Myśliwiec <http://kamilmysliwiec.com> | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining | ||
a copy of this software and associated documentation files (the | ||
'Software'), to deal in the Software without restriction, including | ||
without limitation the rights to use, copy, modify, merge, publish, | ||
distribute, sublicense, and/or sell copies of the Software, and to | ||
permit persons to whom the Software is furnished to do so, subject to | ||
the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be | ||
included in all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, | ||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. | ||
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY | ||
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, | ||
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE | ||
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
Oops, something went wrong.