From c9100ff56fdd5cf12bbd9eb4b4d2be35066cde94 Mon Sep 17 00:00:00 2001 From: rushil Date: Fri, 13 Dec 2024 16:30:03 +0530 Subject: [PATCH] fix: update default view engine from jade to pug --- bin/express-cli.js | 2 +- test/cmd.js | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/bin/express-cli.js b/bin/express-cli.js index 380a447d..9b890f9c 100755 --- a/bin/express-cli.js +++ b/bin/express-cli.js @@ -467,7 +467,7 @@ function main (options, done) { if (options.view === true) { warning('the default view engine will not be jade in future releases\n' + "use `--view=jade' or `--help' for additional options") - options.view = 'jade' + options.view = 'pug' } // Generate application diff --git a/test/cmd.js b/test/cmd.js index 4a102a94..f2e9fb87 100644 --- a/test/cmd.js +++ b/test/cmd.js @@ -75,7 +75,9 @@ describe('express(1)', function () { ' "debug": "~2.6.9",\n' + ' "express": "~4.17.1",\n' + ' "http-errors": "~1.7.2",\n' + - ' "jade": "~1.11.0",\n' + + // replace default jade with pug + // ' "jade": "~1.11.0",\n' + + ' "pug": "~3.0.3",\n' + ' "morgan": "~1.10.0"\n' + ' }\n' + '}\n')