mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
remove temp.hack task
This commit is contained in:
27
gulpfile.js
27
gulpfile.js
@ -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))
|
||||
|
Reference in New Issue
Block a user