First install dependencies:
npm installTo run in hot module reloading mode:
npm startTo create a production build:
npm run build:prodTo create a development build:
npm run build:devWhen 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.
For semantics generation watch mode, run npm run watch-semantics.
Open the file dist/index.html in your browser
To run unit tests:
npm testMade with createapp.dev. Generated by https://github.com/NDLA-H5P/generator-h5p-content-type.