{"action":"opened","issue":{"url":"https://api.github.com/repos/Swiip/generator-gulp-angular/issues/737","labels_url":"https://api.github.com/repos/Swiip/generator-gulp-angular/issues/737/labels{/name}","comments_url":"https://api.github.com/repos/Swiip/generator-gulp-angular/issues/737/comments","events_url":"https://api.github.com/repos/Swiip/generator-gulp-angular/issues/737/events","html_url":"https://github.com/Swiip/generator-gulp-angular/issues/737","id":102927541,"number":737,"title":"Is it possible to have multiple modules within a single generated project?","user":{"login":"benjamincharity","id":270193,"avatar_url":"https://avatars.githubusercontent.com/u/270193?v=3","gravatar_id":"","url":"https://api.github.com/users/benjamincharity","html_url":"https://github.com/benjamincharity","followers_url":"https://api.github.com/users/benjamincharity/followers","following_url":"https://api.github.com/users/benjamincharity/following{/other_user}","gists_url":"https://api.github.com/users/benjamincharity/gists{/gist_id}","starred_url":"https://api.github.com/users/benjamincharity/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benjamincharity/subscriptions","organizations_url":"https://api.github.com/users/benjamincharity/orgs","repos_url":"https://api.github.com/users/benjamincharity/repos","events_url":"https://api.github.com/users/benjamincharity/events{/privacy}","received_events_url":"https://api.github.com/users/benjamincharity/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-25T01:22:26Z","updated_at":"2015-08-25T01:22:26Z","closed_at":null,"body":"It seems like this should be simple but I can't seem to get it working for the life of me.\r\n\r\nI want to create a parent module (`app`) that includes other modules as dependencies (`app.admin`, `app.reporting`, etc). However, it seems that only files which are included in the top level `index.module.js` are included in the served page.\r\n\r\nThe error I get is the standard `not available` angular error:\r\n```\r\nUncaught Error: [$injector:modulerr] Failed to instantiate module client due to:\r\nError: [$injector:modulerr] Failed to instantiate module test due to:\r\nError: [$injector:nomod] Module 'test' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.\r\n```\r\n\r\nLooking into the generated files it is clear that only the top level `index.module` and it's required files are being loaded.\r\n\r\nAny ideas on this? Been using this generator for a while now with pleasure. Hope I can keep with it!\r\n\r\n#### Info\r\n\r\nGenerator version: `0.12.1`\r\n\r\n`.yo-rc`: \r\n\r\n```\r\n{\r\n  \"generator-gulp-angular\": {\r\n    \"version\": \"0.12.1\",\r\n    \"props\": {\r\n      \"angularVersion\": \"~1.4.0\",\r\n      \"angularModules\": [\r\n        {\r\n          \"key\": \"animate\",\r\n          \"module\": \"ngAnimate\"\r\n        },\r\n        {\r\n          \"key\": \"touch\",\r\n          \"module\": \"ngTouch\"\r\n        },\r\n        {\r\n          \"key\": \"sanitize\",\r\n          \"module\": \"ngSanitize\"\r\n        }\r\n      ],\r\n      \"jQuery\": {\r\n        \"key\": \"none\"\r\n      },\r\n      \"resource\": {\r\n        \"key\": \"none\",\r\n        \"module\": null\r\n      },\r\n      \"router\": {\r\n        \"key\": \"ui-router\",\r\n        \"module\": \"ui.router\"\r\n      },\r\n      \"ui\": {\r\n        \"key\": \"none\",\r\n        \"module\": null\r\n      },\r\n      \"cssPreprocessor\": {\r\n        \"key\": \"node-sass\",\r\n        \"extension\": \"scss\"\r\n      },\r\n      \"jsPreprocessor\": {\r\n        \"key\": \"babel\",\r\n        \"extension\": \"js\",\r\n        \"srcExtension\": \"es6\"\r\n      },\r\n      \"htmlPreprocessor\": {\r\n        \"key\": \"none\",\r\n        \"extension\": \"html\"\r\n      },\r\n      \"bootstrapComponents\": {\r\n        \"name\": null,\r\n        \"version\": null,\r\n        \"key\": null,\r\n        \"module\": null\r\n      },\r\n      \"foundationComponents\": {\r\n        \"name\": null,\r\n        \"version\": null,\r\n        \"key\": null,\r\n        \"module\": null\r\n      },\r\n      \"paths\": {\r\n        \"src\": \"src\",\r\n        \"dist\": \"dist\",\r\n        \"e2e\": \"e2e\",\r\n        \"tmp\": \".tmp\"\r\n      }\r\n    }\r\n  }\r\n}\r\n```\r\n\r\n"}}