Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(vendors): concat the files properly #163

Merged
merged 1 commit into from
Jan 31, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
17 changes: 16 additions & 1 deletion lib/broccoli/angular2-app.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,21 @@ Angular2App.prototype.toTree = function() {
files: vendorNpmFiles,
destDir: 'vendor'
});

var vendorNpmJs = new Concat(vendorNpmTree, {
inputFiles: [ //TODO: figure out how to make it a glob that maintains the order of the files
'**/angular2-polyfills.js',
'**/system.src.js',
'**/system-polyfills.js',
'**/es6-shim.js',
'**/angular2.dev.js',
'**/http.dev.js',
'**/router.dev.js',
'**/upgrade.dev.js',
'**/Rx.js'
],
outputFile: '/thirdparty/vendor.js'
});

var thirdPartyJsTree = new Funnel('node_modules', {
include: ['ng2*/bundles/*.js'],
Expand All @@ -80,7 +95,7 @@ Angular2App.prototype.toTree = function() {
tsTree,
jsTree,
this.index(),
vendorNpmTree,
vendorNpmJs,
thirdPartyJs
], { overwrite: true });
};
Expand Down