1
0
mirror of https://github.com/GenderDysphoria/GenderDysphoria.fyi.git synced 2025-11-25 20:42:40 +00:00

Add watch tasks for smaller bits, so we’re not building the entire site for css changes

This commit is contained in:
Jocelyn Badgley (Twipped)
2020-03-05 19:42:14 -08:00
parent 65e500799b
commit cc9519a6b7
2 changed files with 45 additions and 2 deletions

View File

@@ -8,6 +8,11 @@ var build = require('../build');
const devBuildTask = build.everything();
const prodBuildTask = build.everything(true);
const scss = exports.scss = build.task('scss');
const favicon = exports.favicon = build.task('favicon');
const svg = exports.svg = build.task('svg');
const scripts = exports.scripts = build.task('scripts');
var cleanTask = require('./clean');
exports.clean = cleanTask;
@@ -39,10 +44,24 @@ function watcher () {
'public/**/*',
'posts/**/*',
'templates/*.{md,hbs,html}',
'scss/*.scss',
'js/*.js',
], devBuildTask);
watch([
'scss/*.scss',
], scss);
watch([
'js/*.js',
], scripts);
watch([
'svg/**/*.svg',
], svg);
watch([
'favicon.png',
], favicon);
server();
}