Build and pack H5P Interactive Video distribution files
masterTo create a valid H5P library that can be uploaded to an H5P-compliant system, you must build and pack the source files. Downloading the repository directly does not provide a ready-to-use library.
1. Install dependencies
Run npm install in the main folder to install required modules.
2. Build the project
You can build the project once using:
npm run buildOr run it in watch mode for continuous development:
npm run watch3. Pack the library
Use the H5P cli to package the built files into an .h5p file:
h5p pack -r <library folder> <output file>Alternatively, you can manually zip the files, but you must strictly adhere to the H5P specification.
npm install
npm run build
h5p pack -r <library folder> <output file>