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
|
2020-10-15 22:21:52 +08:00
|
|
|
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
|
2024-08-13 02:42:03 +08:00
|
|
|
.src('vendors/fontastic/fonts/snappymail.*', { encoding: false })
|
2020-10-15 22:21:52 +08:00
|
|
|
.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);
|