Copy (and keep watching) some contents to another directory for certain purpose.
npm install duplicatesh
npm install duplicate --save-dev
`
Usage
`javascript
var duplicate = require('duplicate');
duplicate({
src: [
'scripts/*/.js',
'css/*/.css',
'images/*/',
'merges/*/',
'*.html'
],
dest: '../app-cordova'
});
`
API Definitions
`typescript
interface IOptions {
/* refer to https://github.com/es128/anymatch /
src: any;
dest: string;
/**
* default to /(?:^|[\/\\])(?:\.(?![\/\\]|$)|node_modules(?=[\/\\]|$))/,
* make sure path '.' will not be ignored.
*/
ignored?: RegExp | (path: string) => boolean;
}
declare function duplicate(options: IOptions): void;
declare module duplicate { }
``