# gulp-intermediate

> Write gulp files to a temporary directory, perform a custom transform on the file system, and load back into the gulp pipe

#### In progress

**TODO:**
- [ ] Should this be a gulp plugin or a node plugin to use for building gulp plugins?
- [ ] Refine and example what we should do in the transform callback
- [ ] Automate reading from the filesystem back into the gulp stream
- [ ] Name vars better
- [ ] Remove cwd path from gulp files?
- [ ] Test

## Install

```sh
$ npm install --save-dev gulp-intermediate
```

## Usage

```js
var gulp = require('gulp');
var jekyll = require('gulp-intermediate');

gulp.task('default', function () {
	// return gulp.src('src/app.scss')
	//	.pipe(intermediate(function(tempDir, tempCWD) {
  //    console.log('Heyo!');
  //  }))
	//	.pipe(gulp.dest('dist'));
});
```

## API

### intermediate(callback)

#### callback(tempDir, tempCWD)

## License

MIT © [Rob Wierzbowski](http://robwierzbowski.com)

# gulp-intermediate

> Write gulp files to a temporary directory, perform a custom transform on the file system, and load back into the gulp pipe

#### In progress

**TODO:**
- [ ] Should this be a gulp plugin or a node plugin to use for building gulp plugins?
- [ ] Refine and example what we should do in the transform callback
- [ ] Automate reading from the filesystem back into the gulp stream
- [ ] Name vars better
- [ ] Remove cwd path from gulp files?
- [ ] Test

**General idea**

1. take a gulp stream
1. write to disk in tmp dir
1. user provides custom transform
1. user provides directory to read (based on custom transform)
1. gobbles it back up and passes back to pipe/through

## Install

```sh
$ npm install --save-dev gulp-intermediate
```

## Usage

```js
var gulp = require('gulp');
var jekyll = require('gulp-intermediate');

gulp.task('default', function () {
	// return gulp.src('src/app.scss')
	//	.pipe(intermediate(function(tempDir, tempCWD) {
  //    console.log('Heyo!');
  //  }))
	//	.pipe(gulp.dest('dist'));
});
```

## API

### intermediate(callback)

#### callback(tempDir, tempCWD)

## License

MIT © [Rob Wierzbowski](http://robwierzbowski.com)

Add general roadmap / plugin workflow
Add general roadmap / plugin workflow
