foldersync

1.2.0 • Public • Published

folderSync

Allows for the synchronization of files. Particularly useful when used in conjunction with a build script within web development environments.

Installation

npm install --save-dev foldersync

Usage


  Usage: foldersync <src> <ignore> <dest> [options]

     <src>     Source folder, i.e 'src'.
     <dest>    Destination folder, i.e 'dist'.
     <ignore>  File globs to ignore, i.e 'ignore/1/** ignore/2/**'.
		
     <src> will be duplicated as <dest> if it does not exist.
     <src> files will overwrite <dest> files if <src> files are newer.
     Extraneous <dest> files are removed if they do not exist in <src>.
	
	 OPTIONS:
	    
		--watch   Watches for file changes
		

Example

$ foldersync src sass/** **/js/** **/css/** dist

This will copy 'src' to 'dist', ignoring the specified folders. If dist does not exist, it will be created, otherwise it will be updated. This is useful for use before running scripts relating to sass / minification, etc.

Readme

Keywords

none

Package Sidebar

Install

npm i foldersync

Weekly Downloads

1

Version

1.2.0

License

ISC

Last publish

Collaborators

  • alltuna