https://github.com/chanced/run
runs npm scripts
https://github.com/chanced/run
Last synced: about 1 year ago
JSON representation
runs npm scripts
- Host: GitHub
- URL: https://github.com/chanced/run
- Owner: chanced
- License: mit
- Created: 2022-04-21T17:21:40.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-07-11T01:18:58.000Z (almost 4 years ago)
- Last Synced: 2024-10-06T00:42:58.375Z (over 1 year ago)
- Language: Go
- Homepage:
- Size: 43 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# run
A simple program that runs local npm scripts.
[](https://asciinema.org/a/Ei8b8iZBkj7qhYkPNMtC7WwFj)
## Install
```
go install github.com/chanced/run@latest
```
## Features
### Run a known script
Run npm scripts directly with arguments:
```bash
run [script-name] [args...]
```
#### Workspaces
Specify any number of workspaces but they must come before the script name.
```bash
run -w my-workspace my-script --arg value
```
### Discover scripts
Execute `run` to enter prompt mode which offers a guided selection of scripts.
#### Workspaces
If the root `package.json` contains `workspaces`, the globs/paths are expanded
and then loaded concurently. Once all `package.json` have been loaded and
parsed, the workspaces are offered as the first prompt.
If a single workspace is selected, the scripts available are presented as the
next prompt.
If multiple workspaces are selected, only the scripts common between the
selections are offered as options.
## License
MIT