# gulp-duo

> Gulp plugin to run duo

Latest version **0.3.0** (published 2015-07-12) · 0 weekly downloads

## Install

```sh
npm install gulp-duo
pnpm add gulp-duo
yarn add gulp-duo
bun add gulp-duo
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.3.0 |
| Published | 2015-07-12 |
| First published | 2014-10-22 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Sergey Todyshev |
| Maintainers | sergeyt |
| Keywords | gulp, gulpjs, plugin, duo, duojs |

## Links

- npm: https://www.npmjs.com/package/gulp-duo
- Repository: https://github.com/sergeyt/gulp-duo
- Homepage: http://github.com/sergeyt/gulp-duo
- Issues: https://github.com/sergeyt/gulp-duo/issues
- npm.io page: https://npm.io/package/gulp-duo

## Dependencies (2)

- [duo](https://npm.io/package/duo.md) ^0.8.5
- [map-stream](https://npm.io/package/map-stream.md) ^0.1.0

## Recent versions

- 0.3.0 (latest) — 2015-07-12
- 0.2.0 — 2014-10-23
- 0.1.0 — 2014-10-22

## README

# gulp-duo

[Gulp](https://github.com/gulpjs/gulp) plugin to easily run [duo](https://github.com/duojs/duo)

## Install

```
npm install gulp-duo
```

## Options

* `options` (object): options for duo can be passed under the `"options"` key. See the [duo api](https://github.com/duojs/duo/blob/master/docs/api.md) for all available options.
* `plugins` (array): plugins for duo to use can be passed under the `"plugins"` key. This should always be an array of [duojs plugin](https://github.com/duojs/duo/wiki/Third-Party-Libraries) functions. Pass options to the plugins like you normally would.

## Example

```javascript
var duo = require('gulp-duo');
var gulp = require('gulp');
var less = require('gulp-less');
var rename = require('gulp-rename');
// Require a duo plugin
var coffeeScript = require('duo-coffee-script');

function out() {
  return gulp.dest('./build/');
}

gulp.task('default', ['styles', 'scripts']);

gulp.task('styles', function() {
  return gulp.src('less/app.less')
    .pipe(less())
    .pipe(out());
});

gulp.task('scripts', function() {
  return gulp.src('src/app.coffee')
    // Pipe to duo
    .pipe(duo({
      plugins: [
        // Pass the duo plugin here
        coffeeScript({
          // Any options for the plugin go here
          })
      ],
      options: {
        // Any options for duo go here, for example:
        development: true
      }
    }))
    .pipe(rename('app.js'))
    .pipe(out());
});
```

---
_Source: https://npm.io/package/gulp-duo · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
