dist files missing

Hi,

I have downloaded the library interactive-video. I have made one change on it (other links should open on _top instead of _blank).

But I just can't import it as library. It shows me those messages:

  • File ".babelrc" not allowed. Only files with the following extensions are allowed: json png jpg jpeg gif bmp tif tiff svg eot ttf woff woff2 otf webm mp4 ogg mp3 wav txt pdf rtf doc docx xls xlsx ppt pptx odt ods odp xml csv diff patch swf md textile vtt webvtt js css.
  • File ".gitignore" not allowed. Only files with the following extensions are allowed: json png jpg jpeg gif bmp tif tiff svg eot ttf woff woff2 otf webm mp4 ogg mp3 wav txt pdf rtf doc docx xls xlsx ppt pptx odt ods odp xml csv diff patch swf md textile vtt webvtt js css.
  • File ".h5pignore" not allowed. Only files with the following extensions are allowed: json png jpg jpeg gif bmp tif tiff svg eot ttf woff woff2 otf webm mp4 ogg mp3 wav txt pdf rtf doc docx xls xlsx ppt pptx odt ods odp xml csv diff patch swf md textile vtt webvtt js css.
  • File ".jshintrc" not allowed. Only files with the following extensions are allowed: json png jpg jpeg gif bmp tif tiff svg eot ttf woff woff2 otf webm mp4 ogg mp3 wav txt pdf rtf doc docx xls xlsx ppt pptx odt ods odp xml csv diff patch swf md textile vtt webvtt js css.
  • File "crowdin.yml" not allowed. Only files with the following extensions are allowed: json png jpg jpeg gif bmp tif tiff svg eot ttf woff woff2 otf webm mp4 ogg mp3 wav txt pdf rtf doc docx xls xlsx ppt pptx odt ods odp xml csv diff patch swf md textile vtt webvtt js css.
  • The file "dist/h5p-interactive-video.js" is missing from library: "h5p.interactive-video"
  • The file "dist/h5p-interactive-video.css" is missing from library: "h5p.interactive-video"

If I remove the files with not allowed extensions, I still got the 2 last errors:

  • The file "dist/h5p-interactive-video.js" is missing from library: "h5p.interactive-video"
  • The file "dist/h5p-interactive-video.css" is missing from library: "h5p.interactive-video"

I already downloaded the stable version from github.

Please, someone can help me on that?

thomasmars's picture

You have to build the assets with the script found in package.json. For this you will need "node" and "npm" (the node package manager). When you have these requirements run the following commands to build the distributable that you require in the "dist" folder

npm install
npm run build


When you have the dist files package the library into a .h5p, like you've already done, by removing the files with extensions that are not allowed by H5P, or build the library with h5p-cli command "h5p pack", which will automatically respect the .h5pignore file in the IV library, and thus only pack the required files for the library.

Best regards, Thomas