H5P Library development - Oppevara/oppevara GitHub Wiki
Development of new H5P Library
Introduction
The official h5p cli tool should be used as much as possible.
It is capable of generating new vanilla bases, managing dependencies and also creating packages.
Packaging
- Make sure that all the all the dependencies are present within the same directory before running the packager. This could be achieved by running the
h5p get <package-repo-identifier-on-GitHub>
. Example:h5p get h5p-joubel-ui
- Repeat this step for any dependencies
- Run the
h5p pack -r <library-directory-name>
to create a package containing the library itself and all the required dependencies. Example:h5p pack -r H5P.GridChecker grid-checker.h5p
- Test the newly created package file (preferably on a clean install of H5P host system).