yeoman/generator-backbone

Subtemplates not using requirejs

Closed this issue · 3 comments

For some reason includeRequireJS flag is not being set when create package with --requirejs in .yo-rc.json file.

I tried to find where to set it without success, can someone help me with that?

When I add this flag in my yo-rc.json file everything went ok:

$ cat .yo-rc.json
{
  "generator-backbone": {
    "appPath": "app",
    "appName": "CollectiveBehaviorFeaturedimage",
    "testFramework": "mocha",
    "templateFramework": "lodash",
    "sassBootstrap": true,
    "includeRequireJS": true,
    "coffee": false
  },
  "generator-mocha": {}
}

But the default generator is not respecting the --requirejs flag.

I'm fairly sure this line

includeRequireJS: this.includeRequireJS
should instead be this.options.requirejs