Created
April 6, 2017 01:54
-
-
Save yannduran/28be031a30966f6e4a115452a5410510 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//cleans cache file (db.json) and generated files (public_dir) | |
gulp.task('site:clean', (cb) => { | |
const command = 'clean'; | |
const args = {}; | |
return hexo.init().then(() => { | |
return hexo.call(command, args); | |
}).then(() => { | |
return cb() | |
}).catch((err) => { | |
hexo.error(err); | |
return cb(err); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment