Developers

Technical forum about Content Type or System Plugin development.
Here you can apply for developer access.

How to deal with ECMA script 6?

serettig's picture
Forums: 

I want to port over an advanced "fill the gaps" exercise module I've written for another platform to the H5P platform in summer. I've looked at h5p-boilerplate for this and seen that it is written in ECMA Script 6. As it's still impossible to run ECMA Script 6 in the wild, how does the h5p team deal with transpiling it? 

My module is written in TypeScript and statically typed. Has it any chance of being accepted as a h5p module or would it make more sense to port it to ECMA Script 6?

Sebastian

Suggestion: Include in documentation what encoding files should have

serettig's picture
Forums: 

Hi,

while playing around a bit with h5p my changes suddenly stopped working. The libraries in the development folder simply weren't loaded by h5p anymore and uploading manually created .h5p-packages didn't work because there was always something wrong with one of the json-files. It took me some time to figure out that the files in a h5p library must be encoding with UTF-8 without BOM to work. I used Visual Studio to edit the files and it automatically saved them with BOM.

Pages