https://github.com/guidsdo/eisd
Execute in sub directories
https://github.com/guidsdo/eisd
Last synced: 2 months ago
JSON representation
Execute in sub directories
- Host: GitHub
- URL: https://github.com/guidsdo/eisd
- Owner: guidsdo
- License: apache-2.0
- Created: 2018-04-09T09:44:56.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2022-01-15T04:44:45.000Z (over 4 years ago)
- Last Synced: 2026-03-13T00:06:25.148Z (3 months ago)
- Language: TypeScript
- Size: 40 KB
- Stars: 23
- Watchers: 1
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Execute In SubDirectories
Execute your favorite command in SubDirectories. Use it like: `eisd [options] ` (Example: `eisd 'yarn build' --async client server scripts`)
[](https://badge.fury.io/js/eisd)
[](https://github.com/prettier/prettier)
[Click here for the yarn install version!](https://www.npmjs.com/package/yisd)
[Click here for the npm install version!](https://www.npmjs.com/package/nisd)
## Usage
```
Usage: eisd [options]
Options:
-a, --async Execute commands async across all folders, output will be a mess
-e, --allowErrors Allow errors (at default we stop when there is one). NOTE: always true when in async mode
-y, --yarnWorkspaces Use yarn workspaces for the directories to run the command in
-d, --envDirectories [environment_key] Environment variable that contains the directories, for example a package.json config var would be: npm_config_myVar
-v, --verbose More verbose output
-h, --help output usage information
```
## Examples
Cli:
`eisd 'yarn install' --ignoreRegex '^warning' --async client server testSetup/mockServer`
Package.json:
```json
{
"name": "Root",
"version": "0.0.1",
"description": "mainFolder",
"scripts": {
"postinstall": "yisd client server",
"build": "eisd 'yarn build' client server scripts",
"lint": "eisd 'npm run lint' -d npm_package_config_components"
},
"config": {
"components": "client server scripts"
}
}
```
## Compatibility
Works on Linux and Mac, should also work on Windows (will test it soon). If not, create an issue and I will fix it. :-)