Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/klntsky/npm-run-graph
Visually inspect how `npm run` scripts call each other, using graphviz.
https://github.com/klntsky/npm-run-graph
Last synced: 5 days ago
JSON representation
Visually inspect how `npm run` scripts call each other, using graphviz.
- Host: GitHub
- URL: https://github.com/klntsky/npm-run-graph
- Owner: klntsky
- Created: 2019-08-12T15:07:19.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-09-28T12:25:32.000Z (over 5 years ago)
- Last Synced: 2024-04-26T12:02:03.786Z (9 months ago)
- Language: JavaScript
- Homepage:
- Size: 75.2 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# npm-run-graph
Sometimes using task runners isn't desired, and we end up adding a lot of fields to the `scripts` section of a `package.json`.
This tiny (<50 LOC) script helps to visualize the build process by drawing a graph showing how `npm run` commands depend on each other.
An example of such a graph for a real-world project:
![npm-run-graph.png](npm-run-graph.png)
[Graphviz](https://graphviz.org/) is a runtime dependency.
## Usage
```bash
$ npm-run-graph
# (some output in graphiz format)
$ ls
# (some files)
npm-run-graph.png
```