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

https://github.com/jedwards1211/rerun

like nodemon but easier to use for running arbitrary commands
https://github.com/jedwards1211/rerun

development launch monitor reload rerun restart terminal watch watcher

Last synced: 28 days ago
JSON representation

like nodemon but easier to use for running arbitrary commands

Awesome Lists containing this project

README

          

# @jedwards1211/rerun

[![CircleCI](https://circleci.com/gh/jedwards1211/rerun.svg?style=svg)](https://circleci.com/gh/jedwards1211/rerun)
[![Coverage Status](https://codecov.io/gh/jedwards1211/rerun/branch/master/graph/badge.svg)](https://codecov.io/gh/jedwards1211/rerun)
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)
[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)
[![npm version](https://badge.fury.io/js/%40jedwards1211%2Frerun.svg)](https://badge.fury.io/js/%40jedwards1211%2Frerun)

My personal more convenient version of nodemon

I wanted an easier way to rerun an arbitrary command when files change, like nodemon but more convenient,
especially for non-JS projects.

For me the easiest syntax to use/remember looks like this:

```sh
rerun 'src/**.{c,h,cpp}' -- ./build.sh
```

# Usage

```
yarn install @jedwards1211/rerun
```

```
rerun --
```

Any number of directories/glob patterns can be given, and any number of command arguments, they just have to
be separated by `--`.

If you omit the `--`, it assumes you everything is the command and tries to intelligently watch all files that
aren't `.gitignore`d.

If you want to run a shell command, you may have to quote it.

# Notes

Right now there are no options. It will SIGTERM the command before restarting if it's still running.