CLI tool for syncing between modules locally. Working on cross-modules feature is now easier than ever.
-
Syncli uses
watchman-make
and it requirespywatchman
(and thus requirespython
) as well aswatchman
. -
npm install syncli -g
/npx syncli
syncli to <target path> [options]
Can be:
- Absolute path
- Relative path
- Only module name. Will work if the module exists in up to 2 parent folders of the running folder. The path will be the absolute path of the founded module folder +
/node_modules/<running-dir-name>
.
-f
|--files
- File types that will be synced
- Split by ','
- Example:
ts,jsx,xml
- File types that will be synced
-s
|--sources
- Files/folders from the root folder that will be synced
- Split by ','
- Example:
src,strings,someFile.js
- Files/folders from the root folder that will be synced
-i
|--ignored-sources
- Files/folders from the root folder that will NOT be synced
- Split by ','.
- Example:
node_modules,someIgnoredFile.json
- Default
- Hidden files/folders
- Files includes config (case-insensitive)
- All files except
package.json
,index.t/js
,app.t/js/x
- Folders that includes demo (case-insensitive)
node_modules
,build
,artifacts
,engine_autogenerated
,e2e
,production-e2e
,kompot
,detox
,coverage
)
- Files/folders from the root folder that will NOT be synced