Transitional type plugin dependencies?

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.

+4
source share
1 answer

https://npmjs.org/package/grunt-compass

This package states that it is deprecated for grunt 0.4 and its build of travisci does not work.

In the installation instructions, he also says

  • Install this grunt plugin next to your grunt.js gruntfile project with: npm install grunt-compass .

So maybe you just need to start the npm installation.

You should try grunt-contrib-compass

It builds succeeds, and is intended for use with 0.4

+1
source

All Articles