duplicate
0.1.6 • Public • Published Duplicate
This tool is for keeping specific files of two directories synchronized. You may use it in
Gulp
or Grunt.
It will copy all matching files to dest directory before watching.
Install
npm install duplicate --save-dev
Usage
var duplicate = require('duplicate');
duplicate({
src: [
'scripts/**/*.js',
'css/**/*.css',
'images/**/*',
'merges/**/*',
'*.html'
],
dest: '../app-cordova'
});
API Definitions
interface IOptions {
src: any;
dest: string;
ignored?: RegExp | (path: string) => boolean;
}
declare function duplicate(options: IOptions): void;
declare module duplicate { }
Package Sidebar
Install
Weekly Downloads