chore(build): migrate build.js.cjs to broccoli.

This doesn't do the typescript part of the build yet. Also there is a bit
of hackiness left to resolve in a follow-up change.
This commit is contained in:
Alex Eagle
2015-04-09 15:56:54 -07:00
parent 7e2c04e805
commit 564477b8a0
6 changed files with 91 additions and 12 deletions

View File

@ -773,9 +773,13 @@ gulp.task('build.js.prod', function(done) {
);
});
gulp.task('broccoli.js.cjs', function() {
return broccoliBuild(require('./Brocfile-js_cjs.js'), path.join('js', 'cjs'));
});
gulp.task('build.js.cjs', function(done) {
runSequence(
['build/transpile.js.cjs', 'build/copy.js.cjs', 'build/multicopy.js.cjs'],
'broccoli.js.cjs',
//['build/transpile.js.cjs', 'build/copy.js.cjs', 'build/multicopy.js.cjs'],
// Overwrite the .js.cjs transpilation with typescript outputs
// We still need traceur outputs everywhere else, for now.
'build/transpile.ts.cjs',