Add watching for changes to README (#3126)

* Add watching for changes to README

* Update TOC
master
<script>alert(document.domain+' unicode best-fit coersion')</script> 2017-10-31 15:28:58 -05:00 committed by Stephen Scott
parent 2283d1b3de
commit 4a8d52cf35
1 changed files with 17 additions and 0 deletions

View File

@ -65,6 +65,7 @@ conforms to a consistent style. (See this [blog post](http://jlongster.com/A-Pre
+ [Visual Studio](#visual-studio)
+ [Sublime Text](#sublime-text)
+ [JetBrains WebStorm, PHPStorm, PyCharm...](#jetbrains-webstorm-phpstorm-pycharm)
* [Watching For Changes On The Command Line](#watching-for-changes-on-the-command-line)
* [Language Support](#language-support)
* [Related Projects](#related-projects)
+ [ESLint Integrations](#eslint-integrations)
@ -833,6 +834,22 @@ the [JsPrettier](https://packagecontrol.io/packages/JsPrettier) plug-in.
See the [WebStorm
guide](https://github.com/jlongster/prettier/tree/master/editors/webstorm/README.md).
## Watching For Changes On The Command Line
If you prefer to have prettier watch for changes from the command line you can use a package like [onchange](https://www.npmjs.com/package/onchange). For example:
```
npx onchange '**/*.js' -- npx prettier --write {{changed}}
```
or add the following to your `package.json`
```json
"scripts": {
"prettier-watch": "onchange '**/*.js' -- prettier --write {{changed}}"
},
```
## Language Support
Prettier attempts to support all JavaScript language features,