From cefe3254ac7b78ac42f41cade66b0eb8a458fdc1 Mon Sep 17 00:00:00 2001 From: cueedee Date: Tue, 10 Oct 2017 15:21:33 +0200 Subject: [PATCH] fix(generators/app): add missing command line options --- generators/app/index.js | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/generators/app/index.js b/generators/app/index.js index af29fb91..b8e477fb 100644 --- a/generators/app/index.js +++ b/generators/app/index.js @@ -113,6 +113,22 @@ var AppGenerator = generators.Base.extend( } ); + this.option( + 'jqueryCdn' + , { + type: Boolean + , desc: 'Whether this app should load jQuery from a CDN (googleapis.com) instead of bundling it.' + } + ); + + this.option( + 'jqueryExpose' + , { + type: Boolean + , desc: 'Whether this app should still expose jQuery on the global scope (relevant only when jQuery is bundled).' + } + ); + this.option( 'ie8' , { @@ -316,7 +332,7 @@ var AppGenerator = generators.Base.extend( data.i18nLocaleDefaultRegion = tags( data.i18nLocaleDefault ).region().format(); } - if ( data.jqueryExpose == null ) + if ( data.jqueryCdn ) { data.jqueryExpose = false; }