First install dependencies:
npm installTo create a production build:
npm run buildTo create a development build:
npm run watchWhen adding new fields to H5P's semantics.json, never change semantics.json itself, but rather update ./src/semantics.ts and run npm run generate-semantics afterwards. This ensures strict typing of semantics.
To lint the code:
npm run lintTo run unit tests:
npm run testMade with createapp.dev. Generated by https://github.com/NDLA-H5P/generator-h5p-content-type.