From 761f42620014c9fbd6f8e30d3d06cf544a4bd37c Mon Sep 17 00:00:00 2001 From: Alessio Occhipinti Date: Fri, 20 Apr 2018 23:09:08 +0200 Subject: [PATCH] fix(build): first build icons folder (#161) * fix(build): first build icons folder Creating using mkdir (Windows should work) * chore(script): fixing script for deletion --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 922fd78..e56e22c 100644 --- a/package.json +++ b/package.json @@ -29,9 +29,9 @@ }, "scripts": { "build": "yarn build-icons && yarn build-themes && yarn build-icons-accents && yarn build-icons-variants", - "minimize-icons": "svgo -f src/icons/svgs -o icons/", + "minimize-icons": "mkdir icons && svgo -f src/icons/svgs -o icons/", "minimize-json": "json-minify themes/.material-theme-icons.tmp > themes/Material-Theme-Icons.json && yarn remove-icons-tmp", - "remove-icons": "rimraf icons/* && rimraf themes/Material-Theme-Icons.json", + "remove-icons": "rimraf icons && rimraf themes/Material-Theme-Icons.json", "remove-icons-tmp": "rimraf themes/.material-theme-icons.tmp", "build-icons": "yarn remove-icons && yarn minimize-icons && yarn gulp build:icons && yarn minimize-json", "build-icons-accents": "yarn gulp build:icons.accents",