grd

gulp-route-dest

Pipe file to different path in gulp in routes

Showing:

Popularity

Downloads/wk

1

GitHub Stars

0

Maintenance

Last Commit

5yrs ago

Contributors

1

Package

Dependencies

3

Size (min+gzip)

21.7KB

License

ISC

Type Definitions

Tree-Shakeable

No?

Categories

Readme

NPM

#How to use npm install gulp-route-dest

Use routes to pipe files into different directory

var dest = require('gulp-route-dest');

//dump list.html file to test/list
gulp.task('test', function (params) {
    gulp.src(['*.html',])
        .pipe(dest({
            dest:'test',
            routes:{
                'list.html':'list/',
                'alter.html':['list','temp'],
                '*':['dist'] //or 'dist'
            }
        }));
})

'*' in routes means the default directory otherwise define the file dest path.

Or you can use it the same as gulp.dest

//dump all files to test directory
gulp.task('test', function (params) {
    gulp.src(['*.html',])
        .pipe(dest('test'));
})

##options

###options.dest the base direcotry of dest

###options.routes the routes for divide stream to different path

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100