forked from balderdashy/sails
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request balderdashy#2192 from leedm777/fix-grunt-launching
Fix grunt launching when it's a peer dep
- Loading branch information
Showing
2 changed files
with
11 additions
and
1 deletion.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/** | ||
* A hack to exec grunt without knowing exactly where it is. | ||
* | ||
* grunt-cli could be installed as a peer to sails, so we don't know | ||
* where its bin script might be. But require can find it. We have this thin | ||
* wrapper to be a script we can exec, and it will execute the grunt-cli, | ||
* wherever it may be installed. | ||
*/ | ||
|
||
require('grunt-cli/bin/grunt'); |
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