Function: packageScorm12()
packageScorm12(
pkg,options?):Promise<PackagingResult>
Defined in: scorm12/packager.ts:22
The SCORM 1.2 packager entry point. Consumes a unified CoursePackage VO (see types.ts) and produces a zip blob that imports into any SCORM 1.2 LMS.
Conformance touchpoints (research ยง3.2):
- imsmanifest.xml at the zip root โ enforced by the zip builder.
- No __MACOSX, no .DS_Store โ enforced by the zip builder.
- imsmanifest.xml declares
schemaversion=1.2andschema=ADL SCORMโ enforced by the Nunjucks template. - Every lesson (SCO) lists every file it depends on in its
<resource>element โ driven by CoursePackage.lessons[i].assets.
The runtime JS is injected under lernkit-runtime/scorm12.js. Lessons opt
into it by including <script src="lernkit-runtime/scorm12.js"></script>
(relative path depth handled per-lesson by the caller).
Parametersโ
pkgโ
options?โ
Returnsโ
Promise<PackagingResult>