syncli
CLI tool for syncing between modules locally. Working on cross-modules feature is now easier than ever.
Installation
-
Syncli uses watchman-make
and it requires pywatchman
(and thus requires python
) as well as watchman
.
-
npm install syncli -g
/ npx syncli
Usage
syncli to <target path> [options]
Target path
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>
.
Options
-f
| --files
- File types that will be synced
- Split by ','
- Example:
ts,jsx,xml
-s
| --sources
- Files/folders from the root folder that will be synced
- Split by ','
- Example:
src,strings,someFile.js
-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
)