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

Moved new build process out of gulp folder

This commit is contained in:
Jocelyn Badgley (Twipped)
2020-02-28 10:33:39 -08:00
parent e80428ec2b
commit 56d5f33453
25 changed files with 4 additions and 6 deletions

16
build/svg.js Normal file
View File

@@ -0,0 +1,16 @@
const glob = require('./lib/glob');
const { ROOT } = require('./resolve');
const actions = require('./actions');
module.exports = exports = async function svgIcons () {
const files = await glob('svg/**/*.svg', { cwd: ROOT });
const tasks = files.map((f) => ({
input: f,
output: 'images/' + f,
action: actions.copy,
nocache: true,
}));
return tasks;
};