build(broccoli): add source-maps to our broccoli tools
This commit is contained in:
parent
7740fc071c
commit
42e7fc5252
18
gulpfile.js
18
gulpfile.js
|
@ -8,6 +8,7 @@ var shell = require('gulp-shell');
|
|||
var runSequence = require('run-sequence');
|
||||
var madge = require('madge');
|
||||
var merge = require('merge');
|
||||
var merge2 = require('merge2');
|
||||
var path = require('path');
|
||||
var Q = require('q');
|
||||
|
||||
|
@ -623,16 +624,23 @@ gulp.task('build.dart', function(done) {
|
|||
|
||||
gulp.task('build.broccoli.tools', function() {
|
||||
var tsResult = gulp.src('tools/broccoli/**/*.ts')
|
||||
.pipe(sourcemaps.init())
|
||||
.pipe(tsc({target: 'ES5', module: 'commonjs'}))
|
||||
.on('error', function() {
|
||||
console.log("ERROR: Broccoli tools failed to build.");
|
||||
process.exit(1);
|
||||
});
|
||||
return tsResult.js.pipe(gulp.dest('dist/broccoli'))
|
||||
.on('end', function() {
|
||||
var BroccoliBuilder = require('./dist/broccoli/broccoli_builder').BroccoliBuilder;
|
||||
getBroccoli = function() { return BroccoliBuilder; };
|
||||
});
|
||||
|
||||
var destDir = gulp.dest('dist/broccoli');
|
||||
|
||||
return merge2([
|
||||
tsResult.js.pipe(sourcemaps.write('.')).pipe(destDir),
|
||||
tsResult.js.pipe(destDir)
|
||||
]).on('end', function() {
|
||||
var BroccoliBuilder = require('./dist/broccoli/broccoli_builder').BroccoliBuilder;
|
||||
getBroccoli = function() { return BroccoliBuilder; };
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
gulp.task('broccoli.js.dev', ['build.broccoli.tools'], function() {
|
||||
|
|
|
@ -7938,6 +7938,9 @@
|
|||
"merge": {
|
||||
"version": "1.2.0"
|
||||
},
|
||||
"merge2": {
|
||||
"version": "0.3.5"
|
||||
},
|
||||
"minijasminenode2": {
|
||||
"version": "1.0.0",
|
||||
"dependencies": {
|
||||
|
|
|
@ -12244,6 +12244,11 @@
|
|||
"from": "https://registry.npmjs.org/merge/-/merge-1.2.0.tgz",
|
||||
"resolved": "https://registry.npmjs.org/merge/-/merge-1.2.0.tgz"
|
||||
},
|
||||
"merge2": {
|
||||
"version": "0.3.5",
|
||||
"from": "merge2@*",
|
||||
"resolved": "https://registry.npmjs.org/merge2/-/merge2-0.3.5.tgz"
|
||||
},
|
||||
"minijasminenode2": {
|
||||
"version": "1.0.0",
|
||||
"from": "minijasminenode2@>=1.0.0 <2.0.0",
|
||||
|
|
|
@ -83,6 +83,7 @@
|
|||
"lodash": "^2.4.1",
|
||||
"madge": "^0.5.0",
|
||||
"merge": "^1.2.0",
|
||||
"merge2": "^0.3.5",
|
||||
"minijasminenode2": "^1.0.0",
|
||||
"minimatch": "^2.0.1",
|
||||
"minimist": "1.1.x",
|
||||
|
|
Loading…
Reference in New Issue