Describe how to test, lint, watch in readme
This commit is contained in:
parent
ecd65c3ad2
commit
3397b97f98
17
README.md
17
README.md
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue