-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
51 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# Monaco JSON Editor | ||
|
||
A JSON editor using the Monaco editor. | ||
|
||
Provides a `JSONEditor` component wrapping the [Monaco editor](https://github.com/suren-atoyan/monaco-react) with sane defaults. | ||
|
||
[![Run CI build and tests](https://github.com/open-formulieren/monaco-json-editor/actions/workflows/ci.yml/badge.svg)](https://github.com/open-formulieren/monaco-json-editor/actions/workflows/ci.yml) | ||
[![NPM Version](https://img.shields.io/npm/v/%40open-formulieren%2Fmonaco-json-editor)](https://www.npmjs.com/package/@open-formulieren/monaco-json-editor) | ||
|
||
## Contributing | ||
|
||
Contributions that do not provide a direct benefit to the Open Forms project will unfortunately be | ||
rejected, as we do not have the ambition nor resources to maintain these. | ||
|
||
For (code) contributions that do fit the goals of this library, please follow these guidelines: | ||
|
||
- Create an issue with a description of the problem or required feature | ||
- Reference the issue ID in commit messages and pull requests | ||
- Functionality must be documented in Storybook | ||
- Functionality must be covered by tests - Jest (unit/integration) tests and/or Storybook | ||
interaction tests | ||
|
||
## Getting started | ||
|
||
1. Clone the repository and then ensure you use the correct node version: | ||
|
||
```bash | ||
nvm use | ||
``` | ||
|
||
2. Start Storybook in dev mode for component development: | ||
|
||
```bash | ||
npm start | ||
``` | ||
|
||
3. Make code changes, check in Storybook, add tests... etc. | ||
|
||
4. Run the tests (Storybook needs to be running still!) | ||
|
||
```bash | ||
npm test | ||
``` | ||
|
||
5. Check that the (Typescript) build compiles cleanly: | ||
|
||
```bash | ||
npm run build:esm | ||
``` | ||
|
||
Additional NPM scripts can be found in `package.json`. |