Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jansanchez/gulp-recursive-concat

A Gulp recursive concatenation
https://github.com/jansanchez/gulp-recursive-concat

Last synced: 27 days ago
JSON representation

A Gulp recursive concatenation

Awesome Lists containing this project

README

        

# Gulp Recursive Concatenation [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url]

> A gulp plugin for Recursive Concatenation

## Getting Started

#### Install:

```
npm install --save-dev gulp-recursive-concat
```

#### How to use:

```javascript
var recursiveConcat = require('gulp-recursive-concat');

gulp.task('concatenation', function(){
return gulp.src('source/**/*.js')
.pipe(recursiveConcat({extname: ".js"}))
.pipe(gulp.dest('dist/'));
});
```

**from**
```
├── source
| └── modules
| | └── 1.js
| | └── 2.js
```

**to**
```
├── dist
| └── modules
| | └── modules.js
```

#### With outside options:

```javascript
var recursiveConcat = require('gulp-recursive-concat');

gulp.task('concatenation', function(){
return gulp.src('source/**/*.js')
.pipe(recursiveConcat({extname: ".js", outside: true}))
.pipe(gulp.dest('dist/'));
});
```

**from**
```
├── source
| └── modules
| | └── 1.js
| | └── 2.js
```

**to**
```
├── dist
| └── modules.js
```

[npm-url]: https://www.npmjs.org/package/gulp-recursive-concat
[npm-image]: http://img.shields.io/npm/v/gulp-recursive-concat.svg

[travis-url]: https://travis-ci.org/jansanchez/gulp-recursive-concat
[travis-image]: http://img.shields.io/travis/jansanchez/gulp-recursive-concat.svg