https://github.com/nickdecooman/eslint-babel-watcher
Minimal command line tool that runs Eslint and Babel, and restarts Node upon changes
https://github.com/nickdecooman/eslint-babel-watcher
babel eslint node watch
Last synced: about 2 months ago
JSON representation
Minimal command line tool that runs Eslint and Babel, and restarts Node upon changes
- Host: GitHub
- URL: https://github.com/nickdecooman/eslint-babel-watcher
- Owner: nickdecooman
- Created: 2017-05-26T14:32:33.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-05-28T15:32:20.000Z (about 9 years ago)
- Last Synced: 2025-06-09T17:15:15.649Z (about 1 year ago)
- Topics: babel, eslint, node, watch
- Language: JavaScript
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# eslint-babel-watcher
Eslint-Babel-Watcher is a minimal command line tool that runs Eslint and Babel, and restarts Node upon changes.
It uses Gulp at its foundation and relies entirely on the `.eslint` and `.babelrc` configurations to run Eslint and Babel respectively. It has pretty formatted output too 🤡

## Installation
**NPM**
```
npm install eslint-babel-watcher
```
**Yarn**
Due to Yarn issue [#760](https://github.com/yarnpkg/yarn/issues/760), it is required to also explicitly install Gulp.
```
yarn add gulp eslint-babel-watcher
```
## Usage
```
./node_modules/.bin/watch
```
**Flags**
- `--watch ` will specify the watch path; If any of the files on this path changes, Eslint and Babel will run. Defaults to `"./src/**/*.js"`
- `--node_entry ` will specify the entry file that is used upon restarting Node. Defaults to `"./build/index.js"`