Skip to content

Commit

Permalink
fix(generators/app): add missing command line options
Browse files Browse the repository at this point in the history
  • Loading branch information
cueedee committed Oct 10, 2017
1 parent d08eb44 commit cefe325
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion generators/app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
, {
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit cefe325

Please sign in to comment.