Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/uetchy/decomposer
Decomposer is a @Gulpjs plugin that provides sassy-import path resolver for @Bower.
https://github.com/uetchy/decomposer
bower gulp gulp-plugin
Last synced: 4 months ago
JSON representation
Decomposer is a @Gulpjs plugin that provides sassy-import path resolver for @Bower.
- Host: GitHub
- URL: https://github.com/uetchy/decomposer
- Owner: uetchy
- License: mit
- Created: 2015-02-22T07:47:58.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2019-06-20T07:18:25.000Z (over 5 years ago)
- Last Synced: 2024-10-14T05:02:44.540Z (4 months ago)
- Topics: bower, gulp, gulp-plugin
- Language: JavaScript
- Homepage:
- Size: 24.4 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Decomposer
[![Build Status](https://travis-ci.com/uetchy/decomposer.svg?branch=master)](https://travis-ci.com/uetchy/decomposer)
Decomposer is a [__Gulp__](http://gulpjs.com/) plugin that provides __@import__ path resolver for [__Bower__](http://bower.io/).
Here is example:
__gulpfile.js__
```node
var gulp = require('gulp');
var sass = require('gulp-sass');
var decomposer = require('decomposer');gulp.task('styles', function() {
gulp.src('src/styles/**/*.sass')
.pipe(decomposer({indentedSyntax: true}))
.pipe(sass())
.pipe(gulp.dest('dist/css'));
});
```and __src/styles/index.sass__,
```sass
@import normalize.sassbody
...
```> `normalize.sass` is actually located at __bower_components__.
After processing through Decomposer, all of @import paths in __dist/css/index.css__ will be resolved like this:
```sass
@import ../bower_components/normalize.sass/normalize.sassbody
...
```## Installation
```console
$ npm install --save-dev decomposer
```## Testing
```console
$ npm install
$ npm test
```## Contributing
1. Fork it ( https://github.com/uetchy/decomposer/fork )
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request