Created
August 15, 2013 18:57
-
-
Save soundstep/6243683 to your computer and use it in GitHub Desktop.
Auto install (preinstall) grunt-cli from package.json
This file contains 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
{ | |
"name": "Project name", | |
"version": "0.0.0", | |
"author": "Author name", | |
"scripts": { | |
"preinstall": "which -s grunt && grunt --version | grep grunt-cli > /dev/null 2>&1; if [[ \"$?\" != 0 ]]; then npm install grunt-cli -g; exit 0; fi" | |
}, | |
"devDependencies": { | |
"grunt": "~0.4.1" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment