Add `yarn validate` for JSON testing

Reduces the `yarn test` (run by travis, pre-commit, etc) to just code testing.
4 files changed
tree: 2c797f6f0cc36408ed4cef7772df76d09895afac
  1. .editorconfig
  2. .eslintignore
  3. .eslintrc.yml
  4. .gitignore
  5. .lintstagedrc
  6. .nycrc
  7. .travis.yml
  8. LICENSE
  9. NOTICE
  10. README.md
  11. babel.config.js
  12. demo/
  13. index.html
  14. lerna.json
  15. package-lock.json
  16. package.json
  17. packages/
  18. test/
  19. webpack.config.js
  20. yarn.lock
README.md

Apache Annotator (incubating)

Apache Annotator provides annotation enabling code for browsers, servers, and humans.

Usage

We‘re currently pre-releasing development copies of each library that makes up the sum total of Apache Annotator’s code. You can grab any of them from our npm organization.

$ # for example...
$ npm install --save @annotator/dom
Requirements

Development

Requirements

We use Lerna to juggle the various Apache Annotator libraries. If you‘d like to contribute, you’ll need the following:

Setup
$ yarn install
Test
$ yarn test
Run localhost demo server
$ yarn start

Once the test server has started, you can browse a local demo, and run tests in a browser by visiting http://localhost:8080/.

Web Annotation Data Model Validation

If you have any Web Annotation Data Model JSON documents, you can validate them using the validate script:

$ yarn validate --url ../anno1.json

License

Apache License 2.0