stylus-deps is a node module for generation dependency trees of Stylus files. Used mostly for grunt-contrib-watch.
This plugin requires Grunt
If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:
npm install grunt-stylus-deps --save-dev
In your project's Gruntfile, add a section named
stylusdeps to the data object passed into
After this, at the end of your Gruntfile.js you should place this code:
var gruntStylusDeps = ;gruntStylusDeps;
['stylus', 'development', 'files'] is just a path to files of your stylus task. Currenly this module supports only dynamic grunt files objects in stylus task, like this:
expand: true cwd: 'srcCSS/' src: '**/*.styl' dest: 'destCSS/' ext: '.css'
25.06.2013: 0.1.0 - Initial version