Scripts update, unecessary directories remove

This commit is contained in:
kamil.mysliwiec 2017-05-21 14:15:00 +02:00
parent 098e27639c
commit f998f7292d
7 changed files with 8 additions and 59 deletions

6
.gitignore vendored
View File

@ -4,6 +4,7 @@
# IDE
/.idea
/.awcache
/.vscode
# misc
npm-debug.log
@ -14,4 +15,7 @@ npm-debug.log
# tests
/test
/coverage
/.nyc_output
/.nyc_output
# dist
/dist

30
.vscode/launch.json vendored
View File

@ -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": []
}
]
}

View File

@ -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

View File

@ -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"}

7
dist/server.js vendored
View File

@ -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

1
dist/server.js.map vendored
View File

@ -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"}

View File

@ -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": "*",