vsc-material-theme/.gulp/tasks/icons.js

22 lines
513 B
JavaScript
Raw Normal View History

2017-02-04 12:31:33 +01:00
'use strict';
/*
* > Build Icons
*/
import Gulp from 'gulp';
import Colorize from 'gulp-colorize-svgs';
2017-02-04 13:01:19 +01:00
import colors from 'colors';
2017-02-04 12:31:33 +01:00
import Paths from '../paths';
2017-02-04 13:01:19 +01:00
import del from 'del';
import iconsColors from '../../icons/colors.js';
2017-02-04 12:31:33 +01:00
Gulp.task('process:icons', () => {
2017-02-04 13:01:19 +01:00
del([`${Paths.icons}/svg/*.svg`]).then(paths => {
console.log('[ ⚙️ Deleting all icons]\n'.bold.red);
});
2017-02-04 12:31:33 +01:00
Gulp.src(`${Paths.src}/icons/*.svg`)
2017-02-04 13:01:19 +01:00
.pipe(Colorize(iconsColors))
.pipe(Gulp.dest(`${Paths.icons}/svg`));
2017-02-04 12:31:33 +01:00
});