0.1.6 • Published 9 years ago

duplicate v0.1.6

Weekly downloads
3
License
MIT
Repository
github
Last release
9 years ago

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 {
    /** 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 { }
0.1.6

9 years ago

0.1.5

9 years ago

0.1.4

9 years ago

0.1.3

9 years ago

0.1.2

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago

0.0.0

9 years ago