This extension mirror file changes to other folder.
Copy changed files from source to destination folder. Included files must match to filter (array of globs, minimatch expressions). At the start this extension can copy all newer files. It can copy them from both sides (source => destination and even destination => source). This's handy for project's shared component which can be placed in other git repository.
This extension contributes the following settings:
copyWatcher.sections
: Array of copy and watch definition (source and destination)
Copy watch definition properties:
source
: Source folder (relative to workspace root folder)destination
: Destination folder (relative to workspace root folder)destinationRequired
: This copy definition will be active only if destination folder exists (default true)includes
: Array of minimatch filtersexcludes
: Array of minimatch filters which are applied in negative wayinitialCopy
: Copy all newer files when extension started (default false)initialCopyReverse
: Same as initialCopy but files are copied in opposite direction (default false)deleteEnabled
: Delete of source file will be applied to destination file (default false)
Example:
"copyWatcher.sections": [
{
"source": "Components/Component",
"destination": "../../ComponentRepository/Component",
"destinationRequired": true,
"includes": [
"**/*.js",
"**/*.ts"
],
"excludes": [
"node_modules/**/*",
"out/**/*"
],
"initialCopy": true,
"initialCopyReverse": true,
"deleteEnabled": true
}
]
Fork the repository and submit pull requests.
Initial release