Skip to content

Commit 2792398

Browse files
add presets to cli
1 parent 8c01f20 commit 2792398

8 files changed

Lines changed: 663 additions & 9 deletions

File tree

dist/index.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/presets.yaml

Lines changed: 120 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,120 @@
1+
presets:
2+
- id: moodle4x-scorm2004
3+
name: Moodle
4+
logo: 🎓
5+
format: scorm2004
6+
subtitle: SCORM 2004
7+
description: >
8+
Moodle ist das weltweit am häufigsten verwendete Open-Source-Lernmanagementsystem.
9+
Diese Konfiguration verwendet SCORM 2004 für maximale Kompatibilität mit Moodle 3.x und 4.x.
10+
<a href='https://moodle.org' target='_blank'>Mehr erfahren</a>
11+
options:
12+
# SCORM-spezifische Einstellungen
13+
responsiveVoice: false
14+
translateWithGoogle: false
15+
debugging: false
16+
removeBase: false
17+
scormOrganization: ""
18+
typicalDuration: "PT0H5M0S"
19+
scormIframe: false
20+
scormEmbed: true # Empfohlen für Moodle 4
21+
format: scorm2004
22+
23+
- id: ilias
24+
name: ILIAS
25+
logo: 📚
26+
format: scorm1.2
27+
subtitle: SCORM 1.2
28+
description: >
29+
ILIAS ist ein leistungsstarkes Open-Source-LMS aus Deutschland.
30+
Diese Konfiguration nutzt SCORM 1.2 für bestmögliche Kompatibilität mit ILIAS-Versionen.
31+
<a href='https://www.ilias.de' target='_blank'>Mehr erfahren</a>
32+
options:
33+
responsiveVoice: false
34+
translateWithGoogle: false
35+
debugging: false
36+
removeBase: false
37+
scormOrganization: ""
38+
typicalDuration: "PT0H5M0S"
39+
scormIframe: true # Oft besser für ILIAS
40+
scormEmbed: false
41+
format: scorm1.2
42+
43+
- id: opal
44+
name: OPAL
45+
logo: 🏛️
46+
format: scorm2004
47+
subtitle: SCORM 2004
48+
description: >
49+
OPAL (Online-Plattform für Akademisches Lehren und Lernen) ist das zentrale LMS
50+
für sächsische Hochschulen. Optimiert für SCORM 2004.
51+
<a href='https://bildungsportal.sachsen.de/opal' target='_blank'>Mehr erfahren</a>
52+
options:
53+
responsiveVoice: false
54+
translateWithGoogle: false
55+
debugging: false
56+
removeBase: false
57+
scormOrganization: ""
58+
typicalDuration: "PT0H5M0S"
59+
scormIframe: false
60+
scormEmbed: false
61+
format: scorm2004
62+
63+
- id: generic
64+
name: Generic LMS
65+
logo: 🌐
66+
format: scorm2004
67+
subtitle: SCORM 2004
68+
description: >
69+
Universelle SCORM 2004 Konfiguration für beliebige Lernmanagementsysteme,
70+
die den SCORM 2004 Standard unterstützen. Funktioniert mit den meisten modernen LMS-Plattformen.
71+
options:
72+
responsiveVoice: false
73+
translateWithGoogle: false
74+
debugging: false
75+
removeBase: false
76+
scormOrganization: ""
77+
typicalDuration: "PT0H5M0S"
78+
scormIframe: false
79+
scormEmbed: false
80+
format: scorm2004
81+
82+
- id: openolat
83+
name: OpenOlat
84+
logo: 🔓
85+
format: scorm2004
86+
subtitle: SCORM 2004
87+
description: >
88+
OpenOlat ist eine Open-Source E-Learning-Plattform aus der Schweiz.
89+
Diese Konfiguration nutzt SCORM 2004 für volle Funktionalität.
90+
<a href='https://www.openolat.com' target='_blank'>Mehr erfahren</a>
91+
options:
92+
responsiveVoice: false
93+
translateWithGoogle: false
94+
debugging: false
95+
removeBase: false
96+
scormOrganization: ""
97+
typicalDuration: "PT0H5M0S"
98+
scormIframe: false
99+
scormEmbed: false
100+
format: scorm2004
101+
102+
- id: openedx
103+
name: Open edX
104+
logo: 🎯
105+
format: scorm2004
106+
subtitle: SCORM 2004
107+
description: >
108+
Open edX ist die Open-Source-Plattform hinter edX.org und wird weltweit für MOOCs eingesetzt.
109+
Verwendet SCORM 2004 über das SCORM XBlock.
110+
<a href='https://openedx.org' target='_blank'>Mehr erfahren</a>
111+
options:
112+
responsiveVoice: false
113+
translateWithGoogle: false
114+
debugging: false
115+
removeBase: false
116+
scormOrganization: ""
117+
typicalDuration: "PT0H5M0S"
118+
scormIframe: true # Oft erforderlich für Open edX
119+
scormEmbed: false
120+
format: scorm2004

src/cli.ts

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import * as EPUB from './export/epub'
77
import * as PROJECT from './export/project'
88
import * as RDF from './export/rdf'
99
import * as XAPI from './export/xapi'
10+
import * as PRESETS from './export/presets'
1011

1112
/**
1213
* Displays comprehensive help information for all export formats
@@ -15,7 +16,7 @@ export function displayHelp(): void {
1516
console.log(COLOR.heading('LiaScript-Exporter'))
1617
console.log('')
1718
COLOR.info(
18-
'Export your LiaScript Markdown files to different formats. The following commandline options are available. Based on the selected output format, additional options can be used.'
19+
'Export your LiaScript Markdown files to different formats. The following commandline options are available. Based on the selected output format, additional options can be used.',
1920
)
2021
console.log('')
2122

@@ -25,22 +26,22 @@ export function displayHelp(): void {
2526
COLOR.command(
2627
'-p',
2728
'--path',
28-
'path to be packed, if not set, the path of the input file is used'
29+
'path to be packed, if not set, the path of the input file is used',
2930
)
3031
COLOR.command(
3132
'-o',
3233
'--output',
33-
'output file name (default is output), the ending is define by the format'
34+
'output file name (default is output), the ending is define by the format',
3435
)
3536
COLOR.command(
3637
'-s',
3738
'--style',
38-
'additional styling to passed to the export, can be used for fixes, such as "height: 100vh; width: 100%; border: 2px;"'
39+
'additional styling to passed to the export, can be used for fixes, such as "height: 100vh; width: 100%; border: 2px;"',
3940
)
4041
COLOR.command(
4142
'-f',
4243
'--format',
43-
'scorm1.2, scorm2004, json, fullJson, web, ims, pdf, epub, android, linkedData (default is json)'
44+
'scorm1.2, scorm2004, json, fullJson, web, ims, pdf, epub, android, linkedData, presets (default is json)',
4445
)
4546
COLOR.command('-v', '--version', 'output the current version')
4647

@@ -49,11 +50,12 @@ export function displayHelp(): void {
4950
COLOR.command(
5051
'serve',
5152
'[--port PORT]',
52-
'Start the export server with web interface (default port: 3000)'
53+
'Start the export server with web interface (default port: 3000)',
5354
)
5455

5556
COLOR.command('\n-k', '--key', 'responsive voice key ')
5657

58+
PRESETS.help()
5759
SCORM12.help()
5860
IMS.help()
5961
ANDROID.help()

0 commit comments

Comments
 (0)