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
This commit is contained in:
Alessio Occhipinti 2018-04-20 23:09:08 +02:00 committed by Mattia Astorino
parent ba13023005
commit 761f426200

View file

@ -29,9 +29,9 @@
}, },
"scripts": { "scripts": {
"build": "yarn build-icons && yarn build-themes && yarn build-icons-accents && yarn build-icons-variants", "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", "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", "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": "yarn remove-icons && yarn minimize-icons && yarn gulp build:icons && yarn minimize-json",
"build-icons-accents": "yarn gulp build:icons.accents", "build-icons-accents": "yarn gulp build:icons.accents",