better-npm-run
Advanced tools
Comparing version 0.0.8 to 0.0.9
{ | ||
"name": "better-npm-run", | ||
"description": "Better NPM scripts runner", | ||
"version": "0.0.8", | ||
"version": "0.0.9", | ||
"license": "MIT", | ||
@@ -17,2 +17,3 @@ "author": "Benjamin Orozco <benoror@gmail.com>", | ||
"bin": { | ||
"bnr": "index.js", | ||
"better-npm-run": "index.js" | ||
@@ -19,0 +20,0 @@ }, |
@@ -83,3 +83,3 @@ [![NPM](https://nodei.co/npm/better-npm-run.png)](https://npmjs.org/package/better-npm-run) | ||
Currently, using [bash variables](http://tldp.org/LDP/abs/html/internalvariables.html) (PWD, USER, etc.) is not possible: | ||
Currently, using [bash variables](http://tldp.org/LDP/abs/html/internalvariables.html) (PWD, USER, etc.) is not possible: | ||
@@ -101,1 +101,27 @@ ``` JSON | ||
``` | ||
## cli commands | ||
This module expose 2 cli commands: | ||
- `better-npm-run` and, | ||
- a shorter one: `bnr` which is an alias to the former. | ||
The shorter one is useful for cases where you have a script that calls several `better-npm-run` scripts. e.g: | ||
using the normal cli name | ||
```javascript | ||
"scripts": { | ||
"dev": "shell-exec 'better-npm-run install-hooks' 'better-npm-run watch-client' 'better-npm-run start-dev' 'better-npm-run start-dev-api' 'better-npm-run start-dev-worker' 'better-npm-run start-dev-socket'", | ||
} | ||
``` | ||
using the shorter alias | ||
```javascript | ||
"scripts": { | ||
"dev": "shell-exec 'bnr install-hooks' 'bnr watch-client' 'bnr start-dev' 'bnr start-dev-api' 'bnr start-dev-worker' 'bnr start-dev-socket'", | ||
} | ||
``` | ||
7220
126