Merge pull request #151 from nestjs/feat/cli-scripts

feat() use nest cli scripts
This commit is contained in:
Kamil Mysliwiec 2019-09-27 21:22:58 +02:00 committed by GitHub
commit 8d35db9834
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 2915 additions and 20 deletions

4
nest-cli.json Normal file
View File

@ -0,0 +1,4 @@
{
"collection": "@nestjs/schematics",
"sourceRoot": "src"
}

2888
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -5,12 +5,13 @@
"description": "Nest TypeScript starter repository",
"license": "MIT",
"scripts": {
"build": "rimraf dist && tsc -p tsconfig.build.json",
"prebuild": "rimraf dist",
"build": "nest build",
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
"start": "ts-node -r tsconfig-paths/register src/main.ts",
"start:dev": "tsc-watch -p tsconfig.build.json --onSuccess \"node dist/main.js\"",
"start:debug": "tsc-watch -p tsconfig.build.json --onSuccess \"node --inspect-brk dist/main.js\"",
"start:prod": "node dist/main.js",
"start": "nest start",
"start:dev": "nest start --watch",
"start:debug": "nest start --debug --watch",
"start:prod": "node dist/main",
"lint": "tslint -p tsconfig.json -c tslint.json",
"test": "jest",
"test:watch": "jest --watch",
@ -19,30 +20,32 @@
"test:e2e": "jest --config ./test/jest-e2e.json"
},
"dependencies": {
"@nestjs/common": "^6.5.3",
"@nestjs/core": "^6.5.3",
"@nestjs/microservices": "^6.5.3",
"@nestjs/platform-express": "^6.5.3",
"@nestjs/websockets": "^6.5.3",
"@nestjs/common": "^6.7.1",
"@nestjs/core": "^6.7.1",
"@nestjs/microservices": "^6.7.1",
"@nestjs/platform-express": "^6.7.1",
"@nestjs/websockets": "^6.7.1",
"reflect-metadata": "0.1.13",
"rimraf": "3.0.0",
"rxjs": "6.5.2"
"rxjs": "6.5.3"
},
"devDependencies": {
"@nestjs/testing": "6.5.3",
"@nestjs/cli": "6.8.1",
"@nestjs/schematics": "6.6.6",
"@nestjs/testing": "6.7.1",
"@types/express": "4.17.1",
"@types/jest": "24.0.17",
"@types/node": "12.7.2",
"@types/jest": "24.0.18",
"@types/node": "12.7.5",
"@types/supertest": "2.0.8",
"jest": "24.9.0",
"prettier": "1.18.2",
"supertest": "4.0.2",
"ts-jest": "24.0.2",
"ts-node": "8.3.0",
"tsc-watch": "2.4.0",
"tsconfig-paths": "3.8.0",
"tslint": "5.18.0",
"typescript": "3.5.3"
"ts-jest": "24.1.0",
"ts-loader": "6.1.1",
"ts-node": "8.4.1",
"tsconfig-paths": "3.9.0",
"tslint": "5.20.0",
"typescript": "3.6.3"
},
"jest": {
"moduleFileExtensions": [