diff --git a/.gitignore b/.gitignore index a5430e3..b5e5f97 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,7 @@ # IDE /.idea /.awcache +/.vscode # misc npm-debug.log @@ -14,4 +15,7 @@ npm-debug.log # tests /test /coverage -/.nyc_output \ No newline at end of file +/.nyc_output + +# dist +/dist \ No newline at end of file diff --git a/.vscode/launch.json b/.vscode/launch.json deleted file mode 100644 index 02b2eec..0000000 --- a/.vscode/launch.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - // 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": [] - } - ] -} \ No newline at end of file diff --git a/dist/modules/app.module.js b/dist/modules/app.module.js deleted file mode 100644 index 97d18a3..0000000 --- a/dist/modules/app.module.js +++ /dev/null @@ -1,18 +0,0 @@ -"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 \ No newline at end of file diff --git a/dist/modules/app.module.js.map b/dist/modules/app.module.js.map deleted file mode 100644 index 1587bcb..0000000 --- a/dist/modules/app.module.js.map +++ /dev/null @@ -1 +0,0 @@ -{"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"} \ No newline at end of file diff --git a/dist/server.js b/dist/server.js deleted file mode 100644 index 66b3a2a..0000000 --- a/dist/server.js +++ /dev/null @@ -1,7 +0,0 @@ -"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 \ No newline at end of file diff --git a/dist/server.js.map b/dist/server.js.map deleted file mode 100644 index e3e575b..0000000 --- a/dist/server.js.map +++ /dev/null @@ -1 +0,0 @@ -{"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"} \ No newline at end of file diff --git a/package.json b/package.json index 79e8dbe..6f845c1 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,9 @@ "description": "Nest TypeScript starter repository", "license": "MIT", "scripts": { - "start": "node index.js" + "start": "node index.js", + "prestart:prod": "tsc", + "start:prod": "node dist/server.js" }, "dependencies": { "@nestjs/common": "*",