https://github.com/hypercubed/npsl
npm-package-scripts-listr
https://github.com/hypercubed/npsl
Last synced: over 1 year ago
JSON representation
npm-package-scripts-listr
- Host: GitHub
- URL: https://github.com/hypercubed/npsl
- Owner: Hypercubed
- Created: 2016-10-22T08:22:23.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-10-24T01:19:06.000Z (over 9 years ago)
- Last Synced: 2025-02-04T15:25:13.458Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 65.4 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# npsl (working title)
> aka npm-package-scripts-listr or npsl for short
**experiment**
## Features
* Read package-scripts from js, json, or yml file.
* Excellent terminal output
* Can run nested commands
## install
**Not yet published to npm**
## Usage
```
Usage
$ npsl [more tasks]
Options:
-h, --help
-V, --version
-p, --path Path to scripts file (defaults to nearest package-scripts.{js,json,yml}).
-c, --concurrent Run tasks concurrently.
-r, --renderer Renderer that should be used (default, verbose, silent)
```
### Example package-scripts.yml
```
test:
default:
- xo
- jest
update: jest -u
publish:
- del node_modules
- yarn install
- xo
- jest
- git push --tags
lint: xo
```
### Examples commands
```sh
npsl xo jest --concurrent # Runs xo and jest concurrently
npsl test # Runs the test script in package-scripts.{js,json,yml}
npsl pub # Runs the pub* script in package-scripts.{js,json,yml}
```
[](https://asciinema.org/a/57j6u7jaaj49vrczghkxrqe00)
# Inspiration
This package was inspired by [sindresorhus/np](https://github.com/sindresorhus/np) and heavily influenced by [kentcdodds/p-s](https://github.com/kentcdodds/p-s).
# License
MIT