diff --git a/README.md b/README.md index 140a9ca..4ae3033 100644 --- a/README.md +++ b/README.md @@ -6,9 +6,9 @@ [travis-url]: https://travis-ci.org/nestjs/nest [linux-image]: https://img.shields.io/travis/nestjs/nest/master.svg?label=linux [linux-url]: https://travis-ci.org/nestjs/nest - -

A progressive Node.js framework for building efficient and scalable web applications.

-

+ +

A progressive Node.js framework for building efficient and scalable server-side applications.

+

NPM Version Package License NPM Downloads diff --git a/index.js b/index.js index 81af91e..caba4e2 100644 --- a/index.js +++ b/index.js @@ -1,5 +1,5 @@ require('ts-node/register'); -require('./src/server'); +require('./src/main'); diff --git a/src/modules/app.controller.ts b/src/app.controller.ts similarity index 100% rename from src/modules/app.controller.ts rename to src/app.controller.ts diff --git a/src/modules/app.module.ts b/src/app.module.ts similarity index 92% rename from src/modules/app.module.ts rename to src/app.module.ts index e30a8a6..fcfd5b5 100644 --- a/src/modules/app.module.ts +++ b/src/app.module.ts @@ -2,7 +2,7 @@ import { Module } from '@nestjs/common'; import { AppController } from './app.controller'; @Module({ - modules: [], + imports: [], controllers: [AppController], components: [], }) diff --git a/src/server.ts b/src/main.ts similarity index 74% rename from src/server.ts rename to src/main.ts index 59e8ad1..b7eeb82 100644 --- a/src/server.ts +++ b/src/main.ts @@ -1,5 +1,5 @@ import { NestFactory } from '@nestjs/core'; -import { ApplicationModule } from './modules/app.module'; +import { ApplicationModule } from './app.module'; async function bootstrap() { const app = await NestFactory.create(ApplicationModule); diff --git a/tslint.json b/tslint.json index db3df4c..852257c 100644 --- a/tslint.json +++ b/tslint.json @@ -12,6 +12,7 @@ true, "single" ], + "indent": false, "member-access": [ false ],