Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to rebuild library using get command #47

Open
timvol opened this issue Jul 31, 2022 · 2 comments
Open

Unable to rebuild library using get command #47

timvol opened this issue Jul 31, 2022 · 2 comments

Comments

@timvol
Copy link

timvol commented Jul 31, 2022

I want "rebuild" the course-presentation using the h5p-cli, but it seems that there're some libraries missing. To rebuild the package, I run the following commands:

/h5p # h5p get --https h5p-course-presentation
Looking up dependencies... DONE
cloning https://github.com/h5p/h5p-course-presentation.git
Cloning into 'h5p-course-presentation'... OK
cloning https://github.com/h5p/font-awesome.git
Cloning into 'font-awesome'... OK
cloning https://github.com/h5p/h5p-font-icons.git
Cloning into 'h5p-font-icons'... OK
cloning https://github.com/h5p/h5p-joubel-ui.git
Cloning into 'h5p-joubel-ui'... OK
cloning https://github.com/h5p/drop.git
Cloning into 'drop'... OK
cloning https://github.com/h5p/tether.git
Cloning into 'tether'... OK
cloning https://github.com/h5p/h5p-transition.git
Cloning into 'h5p-transition'... OK
cloning https://github.com/h5p/h5p-editor-course-presentation.git
Cloning into 'h5p-editor-course-presentation'... OK
cloning https://github.com/h5p/h5p-advanced-text.git
Cloning into 'h5p-advanced-text'... OK
cloning https://github.com/h5p/h5p-audio.git
Cloning into 'h5p-audio'... OK
cloning https://github.com/h5p/h5p-blanks.git
Cloning into 'h5p-blanks'... OK
cloning https://github.com/h5p/h5p-question.git
Cloning into 'h5p-question'... OK
cloning https://github.com/h5p/h5p-continuous-text.git
Cloning into 'h5p-continuous-text'... OK
cloning https://github.com/h5p/h5p-dialogcards.git
Cloning into 'h5p-dialogcards'... OK
cloning https://github.com/h5p/h5p-editor-vertical-tabs.git
Cloning into 'h5p-editor-vertical-tabs'... OK
cloning https://github.com/h5p/h5p-drag-n-bar.git
Cloning into 'h5p-drag-n-bar'... OK
cloning https://github.com/h5p/h5p-drag-n-drop.git
Cloning into 'h5p-drag-n-drop'... OK
cloning https://github.com/h5p/h5p-drag-n-resize.git
Cloning into 'h5p-drag-n-resize'... OK
cloning https://github.com/h5p/h5p-drag-question.git
Cloning into 'h5p-drag-question'... OK
cloning https://github.com/h5p/h5p-editor-drag-question.git
Cloning into 'h5p-editor-drag-question'... OK
cloning https://github.com/h5p/h5p-image.git
Cloning into 'h5p-image'... OK
cloning https://github.com/h5p/h5p-editor-wizard.git
Cloning into 'h5p-editor-wizard'... OK
cloning https://github.com/h5p/jquery-ui.git
Cloning into 'jquery-ui'... OK
cloning https://github.com/h5p/h5p-drag-text.git
Cloning into 'h5p-drag-text'... OK
cloning https://github.com/h5p/h5p-exportable-text-area.git
Cloning into 'h5p-exportable-text-area'... OK
cloning https://github.com/h5p/downloadify.git
Cloning into 'downloadify'... OK
cloning https://github.com/h5p/swfobject.git
Cloning into 'swfobject'... OK
cloning https://github.com/h5p/filesaver.git
Cloning into 'filesaver'... OK
cloning https://github.com/h5p/blob.git
Cloning into 'blob'... OK
cloning https://github.com/h5p/h5p-interactive-video.git
Cloning into 'h5p-interactive-video'... OK
cloning https://github.com/h5p/h5p-video.git
Cloning into 'h5p-video'... OK
cloning https://github.com/h5p/h5p-editor-interactive-video.git
Cloning into 'h5p-editor-interactive-video'... OK
cloning https://github.com/h5p/h5p-go-to-question.git
Cloning into 'h5p-go-to-question'... OK
cloning https://github.com/h5p/h5p-editor-timecode.git
Cloning into 'h5p-editor-timecode'... OK
cloning https://github.com/h5p/h5p-guided-tour.git
Cloning into 'h5p-guided-tour'... OK
cloning https://github.com/h5p/shepherd.git
Cloning into 'shepherd'... OK
cloning https://github.com/h5p/h5p-link.git
Cloning into 'h5p-link'... OK
cloning https://github.com/h5p/h5p-editor-url-field.git
Cloning into 'h5p-editor-url-field'... OK
cloning https://github.com/h5p/h5p-mark-the-words.git
Cloning into 'h5p-mark-the-words'... OK
cloning https://github.com/h5p/h5p-multi-choice.git
Cloning into 'h5p-multi-choice'... OK
cloning https://github.com/h5p/embeddedjs.git
Cloning into 'embeddedjs'... OK
cloning https://github.com/h5p/h5p-nil.git
Cloning into 'h5p-nil'... OK
cloning https://github.com/h5p/h5p-questionnaire.git
Cloning into 'h5p-questionnaire'... OK
cloning https://github.com/h5p/h5p-open-ended-question.git
Cloning into 'h5p-open-ended-question'... OK
cloning https://github.com/h5p/h5p-simple-multiple-choice.git
Cloning into 'h5p-simple-multiple-choice'... OK
cloning https://github.com/h5p/h5p-single-choice-set.git
Cloning into 'h5p-single-choice-set'... OK
cloning https://github.com/h5p/h5p-soundjs.git
Cloning into 'h5p-soundjs'... OK
cloning https://github.com/h5p/h5p-summary.git
Cloning into 'h5p-summary'... OK
cloning https://github.com/h5p/h5p-editor-summary-textual-editor.git
Cloning into 'h5p-editor-summary-textual-editor'... OK
cloning https://github.com/h5p/h5p-table.git
Cloning into 'h5p-table'... OK
cloning https://github.com/h5p/h5p-text.git
Cloning into 'h5p-text'... OK
cloning https://github.com/h5p/h5p-true-false.git
Cloning into 'h5p-true-false'... OK
cloning https://github.com/h5p/h5p-editor-radio-group.git
Cloning into 'h5p-editor-radio-group'... OK
cloning https://github.com/h5p/h5p-editor-color-selector.git
Cloning into 'h5p-editor-color-selector'... OK
cloning https://github.com/h5p/h5p-editor-duration.git
Cloning into 'h5p-editor-duration'... OK
cloning https://github.com/GriffWith/h5p-twitter-user-feed.git
Cloning into 'h5p-twitter-user-feed'... OK
cloning https://github.com/h5p/h5p-editor-radio-selector.git
Cloning into 'h5p-editor-radio-selector'... OK
/tmp # h5p pack -r h5p-course-presentation/
Packing 1 library to file...
Adding 56 dependencies to file...
h5p-course-presentation OK 1.24.1
font-awesome OK 4.5.4
h5p-joubel-ui OK 1.3.12
tether OK 1.0.2
h5p-font-icons OK 1.0.6
drop OK 1.0.2
h5p-transition OK 1.0.4
h5p-editor-course-presentation OK 1.24.2
h5p-drag-n-bar OK 1.5.15
h5p-drag-n-drop OK 1.1.5
h5p-drag-n-resize OK 1.2.6
h5p-image OK 1.1.13
h5p-advanced-text OK 1.1.12
h5p-editor-url-field OK 1.2.2
h5p-continuous-text OK 1.2.14
h5p-link OK 1.3.15
h5p-table OK 1.1.16
h5p-audio OK 1.5.0
h5p-blanks OK 1.14.0
h5p-video OK 1.6.5
h5p-single-choice-set OK 1.11.18
h5p-question OK 1.5.1
h5p-soundjs OK 1.0.2
h5p-editor-vertical-tabs OK 1.3.9
h5p-multi-choice OK 1.16.2
h5p-true-false OK 1.8.0
embeddedjs OK 1.0.4
h5p-drag-question OK 1.14.5
h5p-editor-radio-group OK 1.1.4
jquery-ui OK 1.10.22
h5p-editor-drag-question OK 1.10.19
h5p-summary OK 1.10.13
h5p-editor-wizard OK 1.2.15
h5p-editor-summary-textual-editor OK 1.1.10
filesaver OK 1.0.6
h5p-exportable-text-area OK 1.3.11
blob OK 1.0.6
downloadify OK 1.0.3
swfobject OK 1.0.2
h5p-interactive-video OK 1.24.1
h5p-editor-interactive-video OK 1.24.0
h5p-text OK 1.1.15
h5p-editor-duration OK 1.1.12
h5p-editor-color-selector OK 1.3.1
h5p-drag-text OK 1.10.1
h5p-mark-the-words OK 1.11.0
h5p-guided-tour OK 1.0.6
h5p-editor-timecode OK 1.2.12
shepherd OK 1.0.3
h5p-questionnaire OK 1.3.5
h5p-go-to-question OK 1.3.13
h5p-open-ended-question OK 1.0.21
h5p-simple-multiple-choice OK 1.1.16
h5p-dialogcards OK 1.9.2
h5p-editor-radio-selector OK 1.2.2
h5p-twitter-user-feed OK 1.0.1
h5p-nil OK 1.0.14

This gives me a "libraries.h5p" which includes 57 directories and 1 file. When I try to install the package (in my case in Moodle), it tells me that the package is invalid. Now, I compared the "original" H5P course presentation from https://api.h5p.org/v1/content-types/H5P.CoursePresentation which contains 70 directories and when I try to install it, everything is fine.

I compared both h5p files and the following folders/files are missing:

  1. content: Not sure how to "generate" this folder?!
  2. H5P.AudioRecorder-1.0
  3. H5P.CKEditor-1.0
  4. H5P.FreeTextQuestion-1.0
  5. H5P.IVHotspot-1.2
  6. H5P.Shape-1.0
  7. H5P.TextUtilities-1.3
  8. H5PEditor.RangeList-1.0
  9. H5PEditor.SelectToggleFields-1.1
  10. H5PEditor.Shape-1.0
  11. H5PEditor.ShowWhen-1.0
  12. H5PEditor.SingleChoiceSetTextualEditor-1.0
  13. H5PEditor.TableList-1.0
  14. h5p.json: Not sure how to "generate" this file?!

Any idea why these files/folder are missing and also not fetched by h5p get command?

@timvol
Copy link
Author

timvol commented Jul 31, 2022

Ok, it seems that I'm missing the build-command. But I wonder if there's a "mass"-build command because I don't want to build all libraries by going into the directory, call npm install and npm run build...

But even after building everything manually, it seems that h5p get is missing some libraries. I tested my h5p file for debug purposes in Drupal and it gives me the following error:

image

@otacke
Copy link
Contributor

otacke commented Jul 31, 2022

@timvol I assume repositories that are missing are not listed where they should be listed, but you can clone them from git of course - even though that's manual labor.

I don't think the H5P CLI tool doesn't have an inbuilt build command yet, but a simple bash script should be able to do the job.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants