chore: include fonts in built

This commit is contained in:
Tine 2024-02-08 13:44:18 +01:00
parent 2f1bf8867e
commit ae16bddea8
Signed by: mentos1386
SSH key fingerprint: SHA256:MNtTsLbihYaWF8j1fkOHfkKNlnN1JQfxEU/rBU8nCGw
13 changed files with 13 additions and 2 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View file

@ -72,6 +72,16 @@ function js(done) {
], handleError(done));
}
function fonts(done) {
pump([
src([
'assets/fonts/*'
]),
dest('assets/built/'),
livereload()
], handleError(done));
}
function zipper(done) {
const filename = require('./package.json').name + '.zip';
@ -92,8 +102,9 @@ function zipper(done) {
const cssWatcher = () => watch('assets/css/**', css);
const jsWatcher = () => watch('assets/js/**', js);
const hbsWatcher = () => watch(['*.hbs', 'partials/**/*.hbs'], hbs);
const watcher = parallel(cssWatcher, jsWatcher, hbsWatcher);
const build = series(css, js);
const fontsWatcher = () => watch('assets/fonts/**', fonts);
const watcher = parallel(cssWatcher, jsWatcher, hbsWatcher, fontsWatcher);
const build = series(css, js, fonts);
exports.build = build;
exports.zip = series(build, zipper);