<commit_before># rollup-plugin-gulp [![Dependency Status][david-image]][david-url]
This allows [gulp] plugins to be used as [Rollup] transforms. It supports
sourcemaps.

## Installation
```bash
npm install --save-dev Permutatrix/rollup-plugin-gulp
```
This will install the module from GitHub, since it hasn't been published to
NPM yet. I still need to write tests. I _hate_ writing tests.

## Usage
```js
// rollup.config.js
import gulpPlugin from 'rollup-plugin-gulp';
import typescript from 'gulp-typescript'; // just as an example

export default {
  entry: 'main.ts',

  plugins: [
    gulpPlugin(typescript({noImplicitAny: true}))
  ]
}
```

A chain of gulp plugins can be piped together and used with this syntax:
```js
// rollup.config.js
import gulpPlugin from 'rollup-plugin-gulp';
import preprocess from 'gulp-preprocess';
import typescript from 'gulp-typescript';

export default {
  entry: 'main.ts',

  plugins: [
    gulpPlugin(
      input => input
        .pipe(preprocess({context: {DEBUG: true}}))
        .pipe(typescript({noImplicitAny: true}))
    )
  ]
}
```


## API
### gulpPlugin(stream[, options])
Returns `stream` wrapped in a Rollup plugin.

#### options.include
A [minimatch] pattern or array of minimatch patterns describing which files
should be run through the plugin. Files not matching this pattern will not be
affected. If this option is omitted or of zero length, all files will be
included by default.

#### options.exclude
A minimatch pattern or array of minimatch patterns describing which files
should not be run through the plugin.

#### options.sourceMap
If this is false, sourcemaps will not be generated. Sourcemaps are generated
by default.
<commit_msg>Made commas in README.md more consistent<commit_after># rollup-plugin-gulp [![Dependency Status][david-image]][david-url]
This allows [gulp] plugins to be used as [Rollup] transforms. It supports
sourcemaps.

## Installation
```bash
npm install --save-dev Permutatrix/rollup-plugin-gulp
```
This will install the module from GitHub, since it hasn't been published to
NPM yet. I still need to write tests. I _hate_ writing tests.

## Usage
```js
// rollup.config.js
import gulpPlugin from 'rollup-plugin-gulp';
import typescript from 'gulp-typescript'; // just as an example

export default {
  entry: 'main.ts',

  plugins: [
    gulpPlugin(typescript({noImplicitAny: true}))
  ]
};
```

A chain of gulp plugins can be piped together and used with this syntax:
```js
// rollup.config.js
import gulpPlugin from 'rollup-plugin-gulp';
import preprocess from 'gulp-preprocess';
import typescript from 'gulp-typescript';

export default {
  entry: 'main.ts',

  plugins: [
    gulpPlugin(
      input => input
        .pipe(preprocess({context: {DEBUG: true}}))
        .pipe(typescript({noImplicitAny: true}))
    )
  ]
};
```


## API
### gulpPlugin(stream[, options])
Returns `stream` wrapped in a Rollup plugin.

#### options.include
A [minimatch] pattern or array of minimatch patterns describing which files
should be run through the plugin. Files not matching this pattern will not be
affected. If this option is omitted or of zero length, all files will be
included by default.

#### options.exclude
A minimatch pattern or array of minimatch patterns describing which files
should not be run through the plugin.

#### options.sourceMap
If this is false, sourcemaps will not be generated. Sourcemaps are generated
by default.

{'fraction_non_alphanumeric': 0.10417274584184417, 'fraction_numerical': 0.0, 'mean_word_length': 4.21765601217656, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6086125', 'n_tokens_mistral': 1041, 'n_tokens_neox': 997, 'n_words': 401}