Skip to content

Commit

Permalink
docs: README: typos (#14)
Browse files Browse the repository at this point in the history
Grammar, flow.
  • Loading branch information
bn-l committed Mar 14, 2024
1 parent 7984f91 commit b1e6bf8
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,19 @@ You may also pipe the output of redrun-completion to a file such as `/usr/local/

# How it works

`package.json`:
```json
{
"one": "npm run two",
"two": "npm run three",
"three": "echo 'hello'"
"scripts":
{
"one": "npm run two",
"two": "npm run three",
"three": "echo 'hello'"
}
}
```

Usually this expressions would be executed one-by-one this way:
Usually these expressions would be executed one after another:

```sh
coderaiser@cloudcmd:~/redrun$ npm run one
Expand All @@ -74,11 +78,9 @@ coderaiser@cloudcmd:~/redrun$ npm run one
hello
```

Usually all this steps is slow, because every `npm run` it is a new process.
We use `npm run` for comfort of build tools of yesterday (like `gulp` and `grunt`) but without their weaknesses
(a lot dependencies and plugins management frustrations)
All these `npm run` commands that are created are slow, because each time it creates a new process.

What `redrun` does is expand all this commands into one (which is much faster):
`redrun` makes it faster:

```
coderaiser@cloudcmd:~/redrun$ redrun one
Expand All @@ -88,7 +90,7 @@ hello

## How to use?

Redrun could be used via command line, scripts section of `package.json` or programmaticly.
Redrun could be used via the command line, the scripts section of `package.json` or in a script:

```js
import redrun from 'redrun';
Expand Down Expand Up @@ -195,7 +197,7 @@ user 0m8.198s
sys 0m9.113s
```

As you see `redrun` much faster and more laconic way of using `npm scripts` then regular solutions.
As you can see `redrun` is much faster and more DRY way of using `npm scripts` than regular solutions.

## Related

Expand Down

0 comments on commit b1e6bf8

Please sign in to comment.