gulp-stylus-tree
v1.0.6
Published
Builds dependency tree, based on ".styl" files in your project
Maintainers
Readme
#gulp-stylus-tree
Serves your ".styl" files, watches them and compiles related styles once they change.
Usage
Install
$ npm install --save-dev gulp-stylus-treeSplit your styles into:
- "Singles" - styles for particular HTML pages
- "Components" - styles being reused by "Singles"
Try to modify your "Components". "Singles" will react on change of any related component.
Example
var gulp = require('gulp'),
stylTree = require('gulp-stylus-tree');
gulp.task('style-tree', function () {
// Baseline setup
return stylTree({
// Establish the root folder of a project
projectPath: __dirname,
// Set path of style components
componentsPath: 'components',
// Tell where is your single styles
dependentFilesPath: 'singles',
// Options, passed to gulp-stylus (optional)
stylusOpts: {}
});
});
gulp.task('default', ['style-tree']);
