From 4c9b8ebb0cc3eabf845a49097d337e69956b69c9 Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Sun, 26 Apr 2015 01:17:15 -0700 Subject: [PATCH] build(gulp): remove obsolete gulp transformer --- gulpfile.js | 1 - tools/build/transformCJSTests.js | 16 ---------------- 2 files changed, 17 deletions(-) delete mode 100644 tools/build/transformCJSTests.js diff --git a/gulpfile.js b/gulpfile.js index 6214ad8e48..60a644bc97 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -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'); diff --git a/tools/build/transformCJSTests.js b/tools/build/transformCJSTests.js deleted file mode 100644 index 53b08c9c83..0000000000 --- a/tools/build/transformCJSTests.js +++ /dev/null @@ -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(); - }); -}