From b34a4641c2d4187719758c13c042a154a322aae7 Mon Sep 17 00:00:00 2001 From: brandon Date: Thu, 26 Oct 2017 19:49:05 -0400 Subject: [PATCH 1/2] add debugger to scripts --- bin/express-cli.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/express-cli.js b/bin/express-cli.js index 7ac69a66..0c8f3b0e 100755 --- a/bin/express-cli.js +++ b/bin/express-cli.js @@ -271,7 +271,9 @@ function createApplication (name, path) { version: '0.0.0', private: true, scripts: { - start: 'node ./bin/www' + start: 'node ./bin/www', + dev: "nodemon app.js", + debugger: "DEBUG=*:* npm run dev", }, dependencies: { 'body-parser': '~1.18.2', From e3dc11d0324e0225456e9b034fa9e25cc5b304b1 Mon Sep 17 00:00:00 2001 From: brandon Date: Fri, 27 Oct 2017 00:21:01 -0400 Subject: [PATCH 2/2] switch dev script from running app.js to ./bin/www --- bin/express-cli.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/express-cli.js b/bin/express-cli.js index 0c8f3b0e..6add3548 100755 --- a/bin/express-cli.js +++ b/bin/express-cli.js @@ -272,7 +272,7 @@ function createApplication (name, path) { private: true, scripts: { start: 'node ./bin/www', - dev: "nodemon app.js", + dev: "nodemon ./bin/www", debugger: "DEBUG=*:* npm run dev", }, dependencies: {