Last active
September 21, 2017 10:00
-
-
Save jpsc/b04323e689e8051c5b8640278f8ce95f to your computer and use it in GitHub Desktop.
An example on how to run grunticon without grunt dependency
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
scripts { | |
"generate:icons": "npm-run-all icons:*", | |
"install-icon-generator": "npm i grunticon-cli phantomjs rimraf svgo", | |
"icons:optimize-svg": "svgo -f ./Views/Shared/Icons/RawIcons -o ./tmp ", | |
"icons:grunticon": "grunticon ./tmp ./Views/Shared/Icons/Assets --config=./Scripts/generate-icons/config.js", | |
"icons:clean": "rimraf ./tmp" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Nice!!
Could you also share the
generate-icons/config.js
?And few small things:
scripts
->"scripts":
"icons:clean": "rimraf ./tmp"
->"posticons:grunticon": "rimraf ./tmp"
"generate:icons": "npm-run-all icons:*"
->"icons": "npm run icons:optimize && icons:grunticon"
? Is there a better name than "grunticon"?install-icon-generator
to separatedevDependencies
?phantomjs
needed directly? shouldn't one of the other modules just install that as its dependency?