Describe how to test, lint, watch in readme

This commit is contained in:
jos 2019-08-28 14:56:07 +02:00
parent ecd65c3ad2
commit 3397b97f98
1 changed files with 16 additions and 1 deletions

View File

@ -142,7 +142,7 @@ jsoneditor:
- To automatically build when a source file has changed:
```
npm run watch
npm start
```
This will update `./jsoneditor.js` and `./jsoneditor.css` in the dist folder
@ -150,6 +150,21 @@ jsoneditor:
an expensive operation.
## Test
Run unit tests:
```
npm test
```
Run code linting ([JavaScript Standard Style](https://standardjs.com/)):
```
npm run lint
```
## Custom builds
The source code of JSONEditor consists of CommonJS modules. JSONEditor can be bundled in a customized way using a module bundler like [browserify](http://browserify.org/) or [webpack](http://webpack.github.io/). First, install all dependencies of jsoneditor: