Update to Nest@2.0.0

This commit is contained in:
kamil.mysliwiec 2017-05-14 22:58:46 +02:00
parent 4703a5df65
commit 098e27639c
9 changed files with 76 additions and 7 deletions

30
.vscode/launch.json vendored Normal file
View File

@ -0,0 +1,30 @@
{
// Use IntelliSense to learn about possible Node.js debug attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node2",
"request": "launch",
"name": "Launch Program",
"program": "${workspaceRoot}\\src\\server.ts",
"outFiles": ["${workspaceRoot}\\dist\\*.js"],
"runtimeArgs": [
"--nolazy"
],
"runtimeExecutable": null,
"sourceMaps": true,
"stopOnEntry": false
},
{
"type": "node",
"request": "attach",
"name": "Attach to Port",
"address": "localhost",
"port": 5858,
"outFiles": []
}
]
}

18
dist/modules/app.module.js vendored Normal file
View File

@ -0,0 +1,18 @@
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
Object.defineProperty(exports, "__esModule", { value: true });
const nest_js_1 = require("nest.js");
let ApplicationModule = class ApplicationModule {
};
ApplicationModule = __decorate([
nest_js_1.Module({
modules: []
})
], ApplicationModule);
exports.ApplicationModule = ApplicationModule;
//# sourceMappingURL=app.module.js.map

1
dist/modules/app.module.js.map vendored Normal file
View File

@ -0,0 +1 @@
{"version":3,"file":"app.module.js","sourceRoot":"","sources":["../../src/modules/app.module.ts"],"names":[],"mappings":";;;;;;;;AAAA,qCAAiC;AAKjC,IAAa,iBAAiB,GAA9B;CAAiC,CAAA;AAApB,iBAAiB;IAH7B,gBAAM,CAAC;QACJ,OAAO,EAAE,EAAE;KACd,CAAC;GACW,iBAAiB,CAAG;AAApB,8CAAiB"}

7
dist/server.js vendored Normal file
View File

@ -0,0 +1,7 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const nest_js_1 = require("nest.js");
const app_module_1 = require("./modules/app.module");
const app = nest_js_1.NestFactory.create(app_module_1.ApplicationModule);
app.listen(3000, () => console.log('Application is listening on port 3000.'));
//# sourceMappingURL=server.js.map

1
dist/server.js.map vendored Normal file
View File

@ -0,0 +1 @@
{"version":3,"file":"server.js","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":";;AAAA,qCAAsC;AACtC,qDAAyD;AAEzD,MAAM,GAAG,GAAG,qBAAW,CAAC,MAAM,CAAC,8BAAiB,CAAC,CAAC;AAClD,GAAG,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,OAAO,CAAC,GAAG,CAAC,wCAAwC,CAAC,CAAC,CAAC"}

View File

@ -2,12 +2,19 @@
"name": "nest-typescript-starter",
"version": "1.0.0",
"description": "Nest TypeScript starter repository",
"license": "ISC",
"license": "MIT",
"scripts": {
"start": "node index.js"
},
"dependencies": {
"nest.js": "*",
"@nestjs/common": "*",
"@nestjs/core": "*",
"@nestjs/microservices": "*",
"@nestjs/testing": "*",
"@nestjs/websockets": "*",
"redis": "^2.7.1",
"reflect-metadata": "^0.1.10",
"rxjs": "^5.4.0",
"typescript": "^2.2.1"
},
"devDependencies": {

View File

@ -1,6 +1,6 @@
import { Module } from 'nest.js';
import { Module } from '@nestjs/common';
@Module({
modules: []
modules: [],
})
export class ApplicationModule {}

View File

@ -1,4 +1,4 @@
import { NestFactory } from 'nest.js';
import { NestFactory } from '@nestjs/core';
import { ApplicationModule } from './modules/app.module';
const app = NestFactory.create(ApplicationModule);

View File

@ -9,9 +9,14 @@
"experimentalDecorators": true,
"target": "es6",
"sourceMap": true,
"allowJs": true
"allowJs": true,
"outDir": "./dist"
},
"include": [
"src/**/*"
],
"exclude": [
"node_modules"
"node_modules",
"**/*.spec.ts"
]
}