chore(gulpfile): cleanup

This commit is contained in:
Tim Lancina
2016-02-04 13:14:46 -06:00
parent f4d371cb35
commit a01356f653

View File

@ -63,10 +63,6 @@ var babelOptions = {
gulp.task('build', ['bundle.system', 'e2e.build', 'sass', 'fonts']);
gulp.task('clean.build', function(done) {
runSequence('clean', 'build', done);
});
gulp.task('watch', function(done) {
runSequence(
'copy.libs',
@ -100,18 +96,19 @@ gulp.task('watch', function(done) {
);
function deleteFile(file) {
var basePath = file.base.substring(0, file.base.lastIndexOf("ionic/"));
var relativePath = file.history[0].replace(file.base, '').replace('.ts', '.js');
var filePath = basePath + 'dist/' + relativePath;
var typingPath = filePath.replace('.js', '.d.ts');
delete cache.caches['no-typecheck'][file.history[0]];
remember.forget('no-typecheck', file.history[0]);
del([filePath, typingPath], function(){
gulp.start('bundle.system');
});
//TODO
// var basePath = file.base.substring(0, file.base.lastIndexOf("ionic/"));
// var relativePath = file.history[0].replace(file.base, '').replace('.ts', '.js');
//
// var filePath = basePath + 'dist/' + relativePath;
// var typingPath = filePath.replace('.js', '.d.ts');
//
// delete cache.caches['no-typecheck'][file.history[0]];
// remember.forget('no-typecheck', file.history[0]);
//
// del([filePath, typingPath], function(){
// gulp.start('bundle.system');
// });
}
});
@ -463,7 +460,6 @@ gulp.task('package', ['src.release'], function(done){
done();
});
gulp.task('prepare', function(){
var execSync = require('child_process').execSync;
var spawnSync = require('child_process').spawnSync;
@ -634,7 +630,7 @@ gulp.task('demos', ['bundle.demos'], function() {
return merge([demosStream, cssStream]);
});
gulp.task('watch:demos', function() {
gulp.task('watch.demos', function() {
watch('demos/**/*', function() {
gulp.start('demos');
});