remove temp.hack task

This commit is contained in:
Tim Lancina
2015-12-14 13:02:13 -06:00
parent 41fac64256
commit 3454b1efe7

View File

@ -194,33 +194,6 @@ function bundle(args) {
})
}
gulp.task('temp.hack', function(){
var fs = require('fs');
var file = 'node_modules/angular2/bundles/angular2.dev.js';
var myHackedFileThatYouLove = fs.readFileSync(file, 'utf8');
myHackedFileThatYouLove = "System.config({ 'paths': { '@reactivex/*': '@reactivex/*.js' }});\n" + myHackedFileThatYouLove;
// don't judge me
var find = 'function moveNodesAfterSibling(sibling, nodes) {';
var replaceWith =
'function moveNodesAfterSibling(sibling, nodes) {\n' +
' // https://github.com/angular/angular/issues/5077\n' +
' var cs = sibling;\n' +
' if (nodes.length > 0 && lang_1.isPresent(dom_adapter_1.DOM.parentElement(sibling))) {\n' +
' for (var i = 0; i < nodes.length; i++) {\n' +
' dom_adapter_1.DOM.insertAfter(cs, nodes[i]);\n' +
' cs = nodes[i];\n' +
' }\n' +
' }\n' +
' }\n' +
' function moveNodesAfterSibling_IF_YOU_WANT_DAT_FLICKER(sibling, nodes) {';
myHackedFileThatYouLove = myHackedFileThatYouLove.replace(find, replaceWith);
fs.writeFileSync(file, myHackedFileThatYouLove, 'utf8');
});
gulp.task('tests', function() {
return gulp.src('ionic/**/test/**/*.spec.ts')
.pipe(tsc(tscOptions, undefined, tscReporter))