2018-08-08 18:47:54 +02:00
|
|
|
const gulp = require('gulp');
|
|
|
|
const googleWebFonts = require('gulp-google-webfonts');
|
|
|
|
const del = require('del');
|
|
|
|
|
|
|
|
const paths = {
|
|
|
|
cssDir: './src/css/',
|
2019-02-13 16:06:58 +01:00
|
|
|
node_modules: './node_modules/',
|
2019-09-28 02:59:10 +02:00
|
|
|
dist: './dist/',
|
|
|
|
resources: './resources/',
|
2018-08-08 18:47:54 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
function clean() {
|
|
|
|
return del([paths.cssDir]);
|
|
|
|
}
|
|
|
|
|
|
|
|
function webfonts() {
|
|
|
|
return gulp.src('./webfonts.list')
|
|
|
|
.pipe(googleWebFonts({
|
|
|
|
fontsDir: 'webfonts',
|
|
|
|
cssFilename: 'webfonts.css',
|
|
|
|
format: 'woff',
|
|
|
|
}))
|
|
|
|
.pipe(gulp.dest(paths.cssDir));
|
2018-09-12 19:12:44 +02:00
|
|
|
}
|
|
|
|
|
2018-11-27 18:22:18 +01:00
|
|
|
exports.clean = clean;
|
|
|
|
exports.webfonts = gulp.series(clean, webfonts);
|
2021-04-23 10:45:30 +02:00
|
|
|
exports['prebuild:renderer'] = webfonts;
|