Skip to content

Latest commit

 

History

History
36 lines (25 loc) · 1.75 KB

CONTRIBUTING.md

File metadata and controls

36 lines (25 loc) · 1.75 KB

We welcome contributions to the project! 🍺

Bug submission

If you are submitting a bug report, please include the following:

  1. the JSON Schema content that fails: go to the demo page, paste the schema into the textarea on the left, click Generate example, and then copy the resulting URL from the browser address bar and paste it here. This will make it easier for us to reproduce and fix the bug. Thank you in advance! 🍺 Otherwise please paste the schema inline in your bug report.
  2. the result you got
  3. the result you expected

Issues & Pull-requests

  • When submitting bug reports, paste your schema example whenever possible. This will save us from having to ask you for it later.
  • When submitting Pull Requests (PRs), you should request to merge your changes into our develop branch.
  • Our approach to testing is described in docs/TESTING.md.
  • PRs without specs will not be merged anytime soon!

Releasing new versions

Development tasks

  • npm run dev — Run the tests and watch (preferred during development)
  • npm run lint — Run eslint on all sources
  • npm run test:unit — Run unit tests
  • npm run test:schema — Run schema tests
  • npm run cover — Run istanbul + jasmine-node
  • npm run cover:up — Upload to coveralls (CI only)
  • npm run dist — Prepare all assets with locales for CDN support
  • npm test — Run all the tests

Upcoming

  • npm run tsc — Compile TypeScript to JavaScript (via commonJS)