chore(): remove the concatenating of vendor files.

This commit is contained in:
Hans Larsen 2016-02-19 15:58:13 -08:00
parent e2e4f563f4
commit 59ca775429
3 changed files with 12 additions and 12 deletions

View File

@ -22,7 +22,16 @@
<body>
<<%= htmlComponentName %>-app>Loading...</<%= htmlComponentName %>-app>
<script src="thirdparty/vendor.js"></script>
<script src="vendor/es6-shim/es6-shim.js"></script>
<script src="vendor/systemjs/dist/system-polyfills.js"></script>
<script src="vendor/angular2/bundles/angular2-polyfills.js"></script>
<script src="vendor/systemjs/dist/system.src.js"></script>
<script src="vendor/rxjs/bundles/Rx.js"></script>
<script src="vendor/angular2/bundles/angular2.dev.js"></script>
<script src="vendor/angular2/bundles/http.dev.js"></script>
<script src="vendor/angular2/bundles/router.dev.js"></script>
<script src="thirdparty/libs.js"></script>
<script>
System.config({

View File

@ -63,15 +63,6 @@ Angular2App.prototype.toTree = function() {
destDir: 'vendor'
});
var vendorNpmInputFiles = vendorNpmFiles.map(function(file) {
return '**/' + file.substr(file.lastIndexOf('/') + 1);
});
var vendorNpmJs = new Concat(vendorNpmTree, {
inputFiles: vendorNpmInputFiles,
outputFile: '/thirdparty/vendor.js'
});
var thirdPartyJsTree = new Funnel('node_modules', {
include: ['ng2*/bundles/*.js'],
exclude: ['ng2*/bundles/*.min.js', 'ng2*/bundles/*.standalone.js'],
@ -89,7 +80,7 @@ Angular2App.prototype.toTree = function() {
tsTree,
jsTree,
this.index(),
vendorNpmJs,
vendorNpmTree,
thirdPartyJs
], { overwrite: true });

View File

@ -78,7 +78,7 @@ describe('Basic end-to-end Workflow', function () {
// Check that a few critical files have been detected.
expect(lines).to.include('/index.html');
expect(lines).to.include('/thirdparty/vendor.js');
expect(lines).to.include('/thirdparty/libs.js');
});
it('Perform `ng test` after initial build', function() {