chore: Update icons builder

This commit is contained in:
Mattia Astorino 2017-05-05 23:15:38 +02:00
parent 81e303ed51
commit 4277c7f09c
2 changed files with 14 additions and 1 deletions

View file

@ -41,7 +41,20 @@ gulp.task('build:icons', cb => {
const path = './themes/.material-theme-icons.tmp';
fs.writeFileSync(path, contents, 'utf-8');
gutil.log(
gutil.colors.magenta('\n--------------'),
gutil.colors.blue('---------------'),
gutil.colors.red('---------------'),
gutil.colors.yellow('---------------'
));
gutil.log('Generated', gutil.colors.green(path));
gutil.log(
'Build completed ✔',
gutil.colors.magenta('\n--------------'),
gutil.colors.blue('---------------'),
gutil.colors.red('---------------'),
gutil.colors.yellow('---------------'
));
cb();
});

View file

@ -22,7 +22,7 @@
"vscode": "^1.12.0"
},
"scripts": {
"build": "npm run icons && npm run build-themes",
"build": "npm run build-icons && npm run build-themes",
"minimize-icons": "svgo -f src/icons/svgs -o icons",
"minimize-json": "json-minify themes/.material-theme-icons.tmp > themes/Material-Theme-Icons.json && npm run remove-icons-tmp",
"remove-icons": "rimraf icons && rimraf themes/Material-Theme-Icons.json",