Skip to content

hugsmidjan/gulp-copy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@hugsmidjan/gulp-images

npm install --save-dev @hugsmidjan/gulp-copy

Usage

const [copyFiles, copyWatch] = require('@hugsmidjan/gulp-copy')(opts);

API / Advanced usage

const copyTaskFactory = require('@hugsmidjan/gulp-copy');

const options = {
  // These are the defaults:
  name: 'copyFiles', // the display name of the generated tasks
  src: 'src/',
  dist: 'pub/',
  glob: [], // which files to glob up as entry points
  // glob: ['data/**/*.json', '!data/secret-stuff.json'] // <-- Example usage
};

// Create the gulp tasks based on the above options.
const copyTasks = copyTaskFactory(options);

// copyTasks is a two item array...
const [copyFiles, copyWatch] = copyTasks;
// ...but it also exposes the tasks as named properties.
const copyFiles = copyTasks.copy;
const copyWatch = copyTasks.watch;

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published