{"action":"created","issue":{"url":"https://api.github.com/repos/aurelia/cli/issues/203","repository_url":"https://api.github.com/repos/aurelia/cli","labels_url":"https://api.github.com/repos/aurelia/cli/issues/203/labels{/name}","comments_url":"https://api.github.com/repos/aurelia/cli/issues/203/comments","events_url":"https://api.github.com/repos/aurelia/cli/issues/203/events","html_url":"https://github.com/aurelia/cli/issues/203","id":162826380,"number":203,"title":"Creating multiple bundle","user":{"login":"dpinart","id":4228069,"avatar_url":"https://avatars.githubusercontent.com/u/4228069?v=3","gravatar_id":"","url":"https://api.github.com/users/dpinart","html_url":"https://github.com/dpinart","followers_url":"https://api.github.com/users/dpinart/followers","following_url":"https://api.github.com/users/dpinart/following{/other_user}","gists_url":"https://api.github.com/users/dpinart/gists{/gist_id}","starred_url":"https://api.github.com/users/dpinart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dpinart/subscriptions","organizations_url":"https://api.github.com/users/dpinart/orgs","repos_url":"https://api.github.com/users/dpinart/repos","events_url":"https://api.github.com/users/dpinart/events{/privacy}","received_events_url":"https://api.github.com/users/dpinart/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/aurelia/cli/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-06-29T02:10:52Z","updated_at":"2016-07-15T02:34:29Z","closed_at":null,"body":"Hi\r\nI have an aurèlia application organized in modules, the folder structure looks like\r\nsrc/\r\n     module1/\r\n         services/\r\n         views/\r\n     module2/\r\n         services/\r\n         views/\r\n     app.html\r\n     app.ts\r\n     main.ts\r\n     environment.ts\r\nI'm trying to create 4 sepaate bundles, vendor-bundle, app-bundle, module1-bundle and module2-bundle. I configured bundle section in aurèlia.json as follows:\r\n```\r\n\"bundles\": [\r\n      {\r\n        \"name\": \"app-bundle.js\",\r\n        \"source\": [\r\n          \"[*.js]\",\r\n          \"*.{css,html}\"\r\n        ]\r\n      },\r\n      {\r\n        \"name\": \"module1-bundle.js\",\r\n        \"source\": [\r\n          \"[module1/**/*.js]\",\r\n          \"module1/**/*.{css,html}\"\r\n        ]\r\n      },\r\n      {\r\n        \"name\": \"module2-bundle.js\",\r\n        \"source\": [\r\n          \"[module2/**/*.js]\",\r\n          \"module2/**/*.{css,html}\"\r\n        ]\r\n      },\r\n\r\n      {\r\n        \"name\": \"vendor-bundle.js\",\r\n        \"prepend\": [\r\n          \"node_modules/bluebird/js/browser/bluebird.core.js\",\r\n          \"scripts/require.js\"\r\n        ],\r\n        \"dependencies\": [\r\n          \"aurelia-binding\",\r\n          \"aurelia-bootstrapper\",\r\n          \"aurelia-dependency-injection\",\r\n          \"aurelia-event-aggregator\",\r\n          \"aurelia-fetch-client\",\r\n          \"aurelia-framework\",\r\n          \"aurelia-history\",\r\n          \"aurelia-history-browser\",\r\n          \"aurelia-loader\",\r\n          \"aurelia-loader-default\",\r\n          \"aurelia-logging\",\r\n          \"aurelia-logging-console\",\r\n          \"aurelia-metadata\",\r\n          \"aurelia-pal\",\r\n          \"aurelia-pal-browser\",\r\n          \"aurelia-path\",\r\n          \"aurelia-polyfills\",\r\n          \"aurelia-polymer\",\r\n          \"aurelia-route-recognizer\",\r\n          \"aurelia-router\",\r\n          \"aurelia-task-queue\",\r\n          \"aurelia-templating\",\r\n          \"aurelia-html-import-template-loader\",\r\n          \"aurelia-templating-binding\",\r\n          {\r\n            \"name\": \"text\",\r\n            \"path\": \"../scripts/text\"\r\n          },\r\n          {\r\n            \"name\": \"aurelia-templating-resources\",\r\n            \"path\": \"../node_modules/aurelia-templating-resources/dist/amd\",\r\n            \"main\": \"aurelia-templating-resources\"\r\n          },\r\n          {\r\n            \"name\": \"aurelia-templating-router\",\r\n            \"path\": \"../node_modules/aurelia-templating-router/dist/amd\",\r\n            \"main\": \"aurelia-templating-router\"\r\n          },\r\n          {\r\n            \"name\": \"aurelia-testing\",\r\n            \"path\": \"../node_modules/aurelia-testing/dist/amd\",\r\n            \"main\": \"aurelia-testing\",\r\n            \"env\": \"dev\"\r\n          }\r\n        ]\r\n      }\r\n    ]\r\n\r\n```\r\nso, for app-bundle I expect it only contains app.ts, app.html, main.ts and environment.ts\r\nfor module1-bundle I expect it contains all files in module1 folder and subfolders, same for module2, but after runnin au build command all, app-bundle.js, module1-bundle.js and module2-bundle.js are empty"},"comment":{"url":"https://api.github.com/repos/aurelia/cli/issues/comments/232845622","html_url":"https://github.com/aurelia/cli/issues/203#issuecomment-232845622","issue_url":"https://api.github.com/repos/aurelia/cli/issues/203","id":232845622,"user":{"login":"TylerJPresley","id":601281,"avatar_url":"https://avatars.githubusercontent.com/u/601281?v=3","gravatar_id":"","url":"https://api.github.com/users/TylerJPresley","html_url":"https://github.com/TylerJPresley","followers_url":"https://api.github.com/users/TylerJPresley/followers","following_url":"https://api.github.com/users/TylerJPresley/following{/other_user}","gists_url":"https://api.github.com/users/TylerJPresley/gists{/gist_id}","starred_url":"https://api.github.com/users/TylerJPresley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TylerJPresley/subscriptions","organizations_url":"https://api.github.com/users/TylerJPresley/orgs","repos_url":"https://api.github.com/users/TylerJPresley/repos","events_url":"https://api.github.com/users/TylerJPresley/events{/privacy}","received_events_url":"https://api.github.com/users/TylerJPresley/received_events","type":"User","site_admin":false},"created_at":"2016-07-15T02:34:29Z","updated_at":"2016-07-15T02:34:29Z","body":"This is the only way I could get it to fill in the files. I still get errors where things can't find each other.\r\n\r\n```\r\n    \"bundles\": [\r\n      {\r\n        \"name\": \"app.js\",\r\n        \"source\": [\r\n          \"[*.js]\",\r\n          \"*.html\",\r\n          \"[**/account/**/*.js]\",\r\n          \"**/account/**/*.html\",\r\n          \"[**/dashboard/**/*.js]\",\r\n          \"**/dashboard/**/*.html\",\r\n          \"[**/resources/**/*.js]\",\r\n          \"**/resources/**/*.html\"\r\n        ],\r\n        \"dependencies\": [\r\n          \"jquery\",\r\n          \"toastr\",\r\n          \"moment\",\r\n          \"nprogress\",\r\n          \"clone\",\r\n          \"numeral\",\r\n          \"store\",\r\n          \"bootstrap-datepicker\",\r\n          {\r\n            \"name\": \"chart.js\",\r\n            \"path\": \"../node_modules/chart.js/dist/\",\r\n            \"main\": \"Chart.bundle\"\r\n          },\r\n          {\r\n            \"name\": \"bootstrap\",\r\n            \"path\": \"../node_modules/bootstrap/dist/js\",\r\n            \"main\": \"bootstrap\"\r\n          }\r\n        ]\r\n      },\r\n      {\r\n        \"name\": \"login.js\",\r\n        \"source\": [\r\n          \"[**/login/**/*.js]\",\r\n          \"**/login/**/*.html\"\r\n        ]\r\n      }\r\n"}}
{"actor":{"display_login":"TylerJPresley"}}