Skip to content

Commit

Permalink
updated build and debgugging
Browse files Browse the repository at this point in the history
  • Loading branch information
user1m committed Oct 25, 2017
1 parent ff64c70 commit 45196b1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,11 @@
"type": "node",
"request": "launch",
"name": "Launch Program - app",
"program": "${workspaceRoot}/release/server",
"program": "${workspaceRoot}/src/server.ts",
"cwd": "${workspaceFolder}",
"outFiles": ["${workspaceRoot}/release/**"],
"sourceMaps": true
//note: run `npm run watch` when you launch debugger
},
{
"type": "node",
Expand Down
3 changes: 2 additions & 1 deletion build/gulp-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ var srcRoot = './src';
var outputRoot = './release';
var testRoot = './release/test';
var typescriptDefinitions = './node_modules/@types/**/index.d.ts';
var tsconfig = './tsconfig.json';
var tsconfig = path.resolve('tsconfig.json');
// var tsconfig = './tsconfig.json';

module.exports = {
packageJSON: path.resolve('package.json'),
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
// "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */
/* Source Map Options */
// "sourceRoot": "./", /* Specify the location where debugger should locate TypeScript files instead of source locations. */
"mapRoot": "{workspaceRoot}/release/**/*.js.map",
// "mapRoot": "./",
/* Specify the location where debugger should locate map files instead of generated locations. */
// "inlineSourceMap": true, /* Emit a single file with source maps instead of having a separate file. */
// "inlineSources": true, /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */
Expand Down

0 comments on commit 45196b1

Please sign in to comment.