@whitecolor/yall
v1.0.0-pre.6
Published
> Yarn workflow for monorepos (projects with multiple packages). And not only.
Downloads
4
Readme
Yall
Yarn workflow for monorepos (projects with multiple packages). And not only.
Why
Because.
What
Yall
is likeyarn/npm
for multiple folders withpackage.json
/yarn.lock
.- It looks up for folders with
package.json/yarn.lock
in the project tree and runs there given command (by default in parallel). - It can watch manifest/lock files and run commands automatically on change, this is useful in container based scenarios.
- Can handle cache error which may occurr when running
yarn
commands concurrently.
Install
npm i @whitecolor/yall -g
Work in progress. It is a pre-release.
Usage
yall [yarn|npm command] [yarn|npm flags] [yall flags]
Additional yall's
option flags:
concurrency
(con
) - max count of tasks to run in parallelfail-fast
- interupt process as soon as when the first error occures (by default process is not interupted if error happend in one of the folders, but when all tasks finished it exits with error code)folders
- folders where to run (including nested), relative to cwd, wilcard not supporteddot-folders
- include (hidden) folders starting with dotexclude-folders
- folders where not to run (including nested)include-folders
- additional folders to include (for example: explit dot folders).here
- will run only in current folder, iffolders
specified will run in those folders, but without nestedin
- shortcut for--include-folders
plus--here
link-files
- create symlinks forfile:
dependencies (will not touchyalc
dependencies)npm
- runnpm
command, alternativly toyarn
clean-up
- will clean-up/removenode_modules
before command runlock
- will create.yall.lock
file (or file with specified name) while running commands and remove it after everything is done.watch
- watch mode, will watch for changes ofyarn.lock
(package.json
in case ofnpm
or custom list of files specified) and run command in folder where file changed, it periodically rescans folders for new fileswatch-content
- will check file content for change, not just all change events.
Licence
WTF.