snappymail/tasks/vendors.js

18 lines
600 B
JavaScript
Raw Permalink Normal View History

2022-09-01 02:15:45 +08:00
/* RainLoop Webmail (c) RainLoop Team | Licensed under MIT */
2019-07-05 03:09:27 +08:00
const gulp = require('gulp');
2019-06-29 22:16:09 +08:00
2019-07-05 03:09:27 +08:00
const { config } = require('./config');
const { del } = require('./common');
2019-06-29 22:16:09 +08:00
// fontastic
const fontasticFontsClear = () => del('snappymail/v/' + config.devVersion + '/static/css/fonts/snappymail.*');
2019-06-29 22:16:09 +08:00
const fontasticFontsCopy = () =>
2019-07-05 03:09:27 +08:00
gulp
.src('vendors/fontastic/fonts/snappymail.*', { encoding: false })
.pipe(gulp.dest('snappymail/v/' + config.devVersion + '/static/css/fonts'));
2019-06-29 22:16:09 +08:00
const fontastic = gulp.series(fontasticFontsClear, fontasticFontsCopy);
2021-03-25 20:35:15 +08:00
exports.vendors = gulp.parallel(fontastic);