chore(build): allow to run examples and benchmarks without bundles

The bundles will only be used if the flag `--useBundles` is passed to `gulp build.js`.
This commit is contained in:
Tobias Bosch
2015-12-29 17:01:10 -08:00
parent 0b6e75a85e
commit a08f50badd
6 changed files with 113 additions and 48 deletions

View File

@ -15,6 +15,7 @@ type Options = {
projects: ProjectMap;
noTypeChecks: boolean;
generateEs6: boolean;
useBundles: boolean;
}
;
@ -73,7 +74,8 @@ export class AngularBuilder {
sourceMaps: true,
projects: opts.projects,
noTypeChecks: opts.noTypeChecks,
generateEs6: opts.generateEs6
generateEs6: opts.generateEs6,
useBundles: opts.useBundles
},
path.join(this.outputPath, 'js', 'dev'));
return new broccoli.Builder(tree);
@ -88,7 +90,8 @@ export class AngularBuilder {
sourceMaps: false,
projects: opts.projects,
noTypeChecks: opts.noTypeChecks,
generateEs6: opts.generateEs6
generateEs6: opts.generateEs6,
useBundles: opts.useBundles
},
path.join(this.outputPath, 'js', 'prod'));
return new broccoli.Builder(tree);