# Decomposer

Decomposer is a [__Gulp__](http://gulpjs.com/) plugin that provides __@import__ path resolver for [__Bower__](http://bower.io/).

Here is example:

__gulpfile.coffee__

```node
gulp = require 'gulp'
sass = require 'gulp-sass'
decomposer = require 'decomposer'

gulp.task 'styles', ->
  gulp.src 'src/styles/**/*.sass'
    .pipe decomposer()
    .pipe sass(indentedSyntax: true)
    .pipe gulp.dest 'dist/css'
```

and __src/styles/index.sass__,

```sass
@import normalize.sass

body
  ...
```

> `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.sass

body
  ...
```

## Installation

```console
$ npm install --save-dev decomposer
```

## Testing

```console
$ npm install
$ npm test
```

# Decomposer

[![Build Status](https://travis-ci.org/uetchy/decomposer.svg?branch=master)](https://travis-ci.org/uetchy/decomposer)

Decomposer is a [__Gulp__](http://gulpjs.com/) plugin that provides __@import__ path resolver for [__Bower__](http://bower.io/).

Here is example:

__gulpfile.coffee__

```node
gulp = require 'gulp'
sass = require 'gulp-sass'
decomposer = require 'decomposer'

gulp.task 'styles', ->
  gulp.src 'src/styles/**/*.sass'
    .pipe decomposer()
    .pipe sass(indentedSyntax: true)
    .pipe gulp.dest 'dist/css'
```

and __src/styles/index.sass__,

```sass
@import normalize.sass

body
  ...
```

> `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.sass

body
  ...
```

## Installation

```console
$ npm install --save-dev decomposer
```

## Testing

```console
$ npm install
$ npm test
```

Add travis build status badge
Add travis build status badge
