I have a grunt plugin called snorky which depends on the grunt-compass task. When someone types npm install git://path/to/snorky , I want the grunt-compass task to be installed automatically.
package.json
{ "name": "snorky", // ... "dependencies": { "bower": "~0.7.0", "grunt-compass": "~0.3.8" } }
tasks.snorky.js
module.exports = function(grunt) { grunt.loadNpmTasks('grunt-compass');
However, when I npm install snorky from another project, try running grunt snorky , I get an error:
user.name:~/other/proj [git: my-branch] $ grunt snorky >> Local Npm module "grunt-compass" not found. Is it installed?
What is the right way to do this? I am skeptical that the project should use npm install grunt-compass use snorky.
source share