1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-15 07:43:35 +00:00

update gulp to 4.0.0

This commit is contained in:
Kyle Spearrin
2018-11-27 12:47:06 -05:00
parent 2f27decaa1
commit 0c3fbeb0b7
4 changed files with 1313 additions and 542 deletions

View File

@@ -24,12 +24,13 @@ function webfonts() {
.pipe(gulp.dest(paths.cssDir));
};
function version() {
function version(cb) {
fs.writeFileSync(paths.build + 'version.json', '{"version":"' + package.version + '"}');
cb();
}
gulp.task('clean', clean);
gulp.task('webfonts', ['clean'], webfonts);
gulp.task('prebuild', ['webfonts']);
gulp.task('version', version);
gulp.task('postdist', ['version']);
exports.clean = clean;
exports.webfonts = gulp.series(clean, webfonts);
exports.prebuild = gulp.series(clean, webfonts);
exports.version = version;
exports.postdist = version;