https://github.com/xcodebuild/run-in
Run your command in all directories
https://github.com/xcodebuild/run-in
npm scipt
Last synced: 3 months ago
JSON representation
Run your command in all directories
- Host: GitHub
- URL: https://github.com/xcodebuild/run-in
- Owner: xcodebuild
- Created: 2017-03-04T14:14:16.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-03-05T02:47:15.000Z (over 8 years ago)
- Last Synced: 2025-01-28T02:33:23.870Z (5 months ago)
- Topics: npm, scipt
- Language: JavaScript
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
#run-in
## Description
Run your command in all directories
## Why this
**CD to every directory and type `npm run watch` is really tooooooo boring**. I even have to keep many tabs of them and jump here and there to watch their logs.
`pm2 start` maybe another good idea in this case. But why not make a script to do this?
## Install
To install run-in from npm, run:
```
$ npm install -g run-in
```## Usage
To run `npm install` in all your `prefix-xxx` directory, just run
```
$ run-in -g "prefix-*" -c "npm install"
```to watching all your projects in this directory (`npm run watch`)
```
$ run-in -g "*" -c "npm run watch"
````run-in` use `glob` to match directories, see details [here](https://github.com/isaacs/node-glob).
## Screenshot
## License
Copyright (c) 2017 codefalling
[MIT License](http://en.wikipedia.org/wiki/MIT_License)