build(gulp): remove obsolete gulp transformer
This commit is contained in:
parent
6aea629cd3
commit
4c9b8ebb0c
|
@ -29,7 +29,6 @@ var karma = require('karma').server;
|
|||
var minimist = require('minimist');
|
||||
var runServerDartTests = require('./tools/build/run_server_dart_tests');
|
||||
var sourcemaps = require('gulp-sourcemaps');
|
||||
var transformCJSTests = require('./tools/build/transformCJSTests');
|
||||
var tsc = require('gulp-typescript');
|
||||
var util = require('./tools/build/util');
|
||||
var bundler = require('./tools/build/bundle');
|
||||
|
|
|
@ -1,16 +0,0 @@
|
|||
var through2 = require('through2');
|
||||
|
||||
module.exports = function() {
|
||||
return through2.obj(function(file, encoding, done) {
|
||||
if (file.relative.substring(file.relative.length - 8) == "_spec.js") {
|
||||
var content =
|
||||
"var parse5Adapter = require('angular2/src/dom/parse5_adapter');\r\n"
|
||||
+ "parse5Adapter.Parse5DomAdapter.makeCurrent();\r\n"
|
||||
+ String(file.contents)
|
||||
+ "\r\n main();";
|
||||
file.contents = new Buffer(content);
|
||||
}
|
||||
this.push(file);
|
||||
done();
|
||||
});
|
||||
}
|
Loading…
Reference in New Issue