@digabi/exam-engine-cli 22.0.1-alpha.6 → 22.1.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"preview.d.ts","sourceRoot":"","sources":["../../src/commands/preview.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAEzB,wBAA8B,OAAO,CAAC,EACpC,IAAI,EACJ,IAAI,EACJ,OAAO,EACR,EAAE;IACD,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,GAAG,CAAA;CACb,GAAG,OAAO,CAAC,MAAM,CAAC,
|
1
|
+
{"version":3,"file":"preview.d.ts","sourceRoot":"","sources":["../../src/commands/preview.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAEzB,wBAA8B,OAAO,CAAC,EACpC,IAAI,EACJ,IAAI,EACJ,OAAO,EACR,EAAE;IACD,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,GAAG,CAAA;CACb,GAAG,OAAO,CAAC,MAAM,CAAC,CASlB"}
|
package/dist/commands/preview.js
CHANGED
@@ -4,7 +4,11 @@ exports.default = preview;
|
|
4
4
|
const exam_engine_rendering_1 = require("@digabi/exam-engine-rendering");
|
5
5
|
async function preview({ exam, port, spinner }) {
|
6
6
|
spinner.start(`Previewing ${exam}...`);
|
7
|
-
const ctx = await (0, exam_engine_rendering_1.previewExam)(exam, {
|
7
|
+
const ctx = await (0, exam_engine_rendering_1.previewExam)(exam, {
|
8
|
+
openBrowser: !process.env.DISABLE_BROWSER,
|
9
|
+
port: port,
|
10
|
+
editableGradingInstructions: !!process.env.EDITABLE_GRADING_INSTRUCTIONS
|
11
|
+
});
|
8
12
|
spinner.info(`Server is running at ${ctx.url}`);
|
9
13
|
return `Press Ctrl-C to stop`;
|
10
14
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"preview.js","sourceRoot":"","sources":["../../src/commands/preview.ts"],"names":[],"mappings":";;AAGA,
|
1
|
+
{"version":3,"file":"preview.js","sourceRoot":"","sources":["../../src/commands/preview.ts"],"names":[],"mappings":";;AAGA,0BAiBC;AApBD,yEAA2D;AAG5C,KAAK,UAAU,OAAO,CAAC,EACpC,IAAI,EACJ,IAAI,EACJ,OAAO,EAKR;IACC,OAAO,CAAC,KAAK,CAAC,cAAc,IAAI,KAAK,CAAC,CAAA;IACtC,MAAM,GAAG,GAAG,MAAM,IAAA,mCAAW,EAAC,IAAI,EAAE;QAClC,WAAW,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,eAAe;QACzC,IAAI,EAAE,IAAI;QACV,2BAA2B,EAAE,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,6BAA6B;KACzE,CAAC,CAAA;IACF,OAAO,CAAC,IAAI,CAAC,wBAAwB,GAAG,CAAC,GAAG,EAAE,CAAC,CAAA;IAC/C,OAAO,sBAAsB,CAAA;AAC/B,CAAC"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@digabi/exam-engine-cli",
|
3
|
-
"version": "22.0
|
3
|
+
"version": "22.1.0-alpha.0",
|
4
4
|
"main": "index.js",
|
5
5
|
"license": "EUPL-1.1",
|
6
6
|
"files": [
|
@@ -10,13 +10,13 @@
|
|
10
10
|
"ee": "./dist/index.js"
|
11
11
|
},
|
12
12
|
"dependencies": {
|
13
|
-
"@digabi/exam-engine-mastering": "22.0
|
14
|
-
"@digabi/exam-engine-rendering": "22.0
|
13
|
+
"@digabi/exam-engine-mastering": "22.1.0-alpha.0",
|
14
|
+
"@digabi/exam-engine-rendering": "22.1.0-alpha.0",
|
15
15
|
"lodash": "^4.17.15",
|
16
16
|
"ora": "^5.0.0",
|
17
17
|
"rich-text-editor": "^7.2.3",
|
18
18
|
"uuid": "^10.0.0",
|
19
19
|
"yargs": "^17.0.1"
|
20
20
|
},
|
21
|
-
"gitHead": "
|
21
|
+
"gitHead": "259e77603f7b64c30660cec3a00401d463c02dcb"
|
22
22
|
}
|