docs(bundles): document existing bundles and their usage

Closes #5777

Closes #5878
This commit is contained in:
Pawel Kozlowski
2015-12-14 15:28:57 +01:00
parent a79fe057f9
commit 1c779d8b9e
2 changed files with 83 additions and 1 deletions

View File

@ -1113,6 +1113,10 @@ gulp.task('!bundle.testing', ['build.js.dev'], function() {
{sourceMaps: true});
});
gulp.task('!bundles.js.docs', function() {
gulp.src('modules/angular2/docs/bundles/*').pipe(gulp.dest('dist/js/bundle'));
});
gulp.task('!bundles.js.umd', ['build.js.dev'], function() {
var q = require('q');
var webpack = q.denodeify(require('webpack'));
@ -1252,7 +1256,8 @@ gulp.task('bundles.js',
'!bundle.web_worker.js.dev.deps',
'bundles.js.umd.min',
'!bundle.testing',
'!bundle.ng.polyfills'
'!bundle.ng.polyfills',
'!bundles.js.docs'
],
function(done) { runSequence('!bundle.copy', '!bundles.js.checksize', done); });