An open API service indexing awesome lists of open source software.

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

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}
```

[![asciicast](https://asciinema.org/a/57j6u7jaaj49vrczghkxrqe00.png)](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