chore(build): copy bundles so they can be used with e2e tests
This commit is contained in:
parent
4d9de666c8
commit
6117a7037b
16
gulpfile.js
16
gulpfile.js
|
@ -1260,6 +1260,21 @@ gulp.task('!bundle.web_worker.js.dev.deps', ['!bundle.web_worker.js.dev'], funct
|
|||
addDevDependencies("web_worker/worker.dev.js")));
|
||||
});
|
||||
|
||||
// We need to duplicate the deps of bundles.js so that this task runs after
|
||||
// all the bundle files are created.
|
||||
gulp.task('!bundle.copy', [
|
||||
'!bundle.js.prod.deps',
|
||||
'!bundle.js.dev.deps',
|
||||
'!bundle.js.min.deps',
|
||||
'!bundle.web_worker.js.dev.deps',
|
||||
'!bundle.js.sfx.dev.deps',
|
||||
'!router.bundle.js.dev'
|
||||
], function () {
|
||||
return merge2(
|
||||
gulp.src('dist/js/bundle/*').pipe(gulp.dest('dist/js/prod/es5/bundle')),
|
||||
gulp.src('dist/js/bundle/*').pipe(gulp.dest('dist/js/dev/es5/bundle')));
|
||||
});
|
||||
|
||||
gulp.task('bundles.js', [
|
||||
'!bundle.js.prod.deps',
|
||||
'!bundle.js.dev.deps',
|
||||
|
@ -1267,6 +1282,7 @@ gulp.task('bundles.js', [
|
|||
'!bundle.web_worker.js.dev.deps',
|
||||
'!bundle.js.sfx.dev.deps',
|
||||
'!router.bundle.js.dev',
|
||||
'!bundle.copy',
|
||||
'!test.bundle.js.dev']);
|
||||
|
||||
gulp.task('build.js', ['build.js.dev', 'build.js.prod', 'build.js.cjs', 'bundles.js', 'benchpress.bundle']);
|
||||
|
|
|
@ -165,7 +165,8 @@ module.exports = function makeBrowserTree(options, destinationPath) {
|
|||
return funnels;
|
||||
}
|
||||
|
||||
var htmlTree = new Funnel(modulesTree, {include: ['*/src/**/*.html'], destDir: '/'});
|
||||
var htmlTree = new Funnel(modulesTree,
|
||||
{include: ['*/src/**/*.html', '**/examples/**/*.html'], destDir: '/'});
|
||||
htmlTree = replace(htmlTree, {
|
||||
files: ['examples*/**/*.html'],
|
||||
patterns: [
|
||||
|
|
|
@ -15,6 +15,7 @@ import replace from '../broccoli-replace';
|
|||
|
||||
var global_excludes = [
|
||||
'angular2/http*',
|
||||
'angular2/examples/*/ts/**/*',
|
||||
'angular2/src/http/**/*',
|
||||
'angular2/test/http/**/*',
|
||||
'examples/src/http/**/*',
|
||||
|
|
|
@ -26,7 +26,8 @@ module.exports = function makeNodeTree(destinationPath) {
|
|||
'angular2/test/core/compiler/xhr_impl_spec.ts',
|
||||
'angular2/test/core/forms/**',
|
||||
'angular2/test/tools/tools_spec.ts',
|
||||
'angular1_router/**'
|
||||
'angular1_router/**',
|
||||
'angular2/examples/**/!(*_spec.ts)',
|
||||
]
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue