@digabi/exam-engine-cli 22.0.3 → 22.0.4-alpha.1

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.
@@ -0,0 +1,7 @@
1
+ import { Ora } from 'ora';
2
+ export default function preview({ exam, port, spinner }: {
3
+ exam: string;
4
+ port?: number;
5
+ spinner: Ora;
6
+ }): Promise<string>;
7
+ //# sourceMappingURL=preview-edit.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preview-edit.d.ts","sourceRoot":"","sources":["../../src/commands/preview-edit.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"}
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = preview;
4
+ const exam_engine_rendering_1 = require("@digabi/exam-engine-rendering");
5
+ async function preview({ exam, port, spinner }) {
6
+ spinner.start(`Previewing ${exam}...`);
7
+ const ctx = await (0, exam_engine_rendering_1.previewExam)(exam, {
8
+ openBrowser: !process.env.DISABLE_BROWSER,
9
+ port: port,
10
+ editableGradingInstructions: true
11
+ });
12
+ spinner.info(`Server is running at ${ctx.url}`);
13
+ return `Press Ctrl-C to stop`;
14
+ }
15
+ //# sourceMappingURL=preview-edit.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preview-edit.js","sourceRoot":"","sources":["../../src/commands/preview-edit.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,IAAI;KAClC,CAAC,CAAA;IACF,OAAO,CAAC,IAAI,CAAC,wBAAwB,GAAG,CAAC,GAAG,EAAE,CAAC,CAAA;IAC/C,OAAO,sBAAsB,CAAA;AAC/B,CAAC"}
@@ -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,CAKlB"}
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"}
@@ -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, { openBrowser: !process.env.DISABLE_BROWSER, port: port });
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,0BAaC;AAhBD,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,EAAE,WAAW,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,eAAe,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAA;IAC9F,OAAO,CAAC,IAAI,CAAC,wBAAwB,GAAG,CAAC,GAAG,EAAE,CAAC,CAAA;IAC/C,OAAO,sBAAsB,CAAA;AAC/B,CAAC"}
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",
3
+ "version": "22.0.4-alpha.1",
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.3",
14
- "@digabi/exam-engine-rendering": "22.0.3",
13
+ "@digabi/exam-engine-mastering": "22.0.4-alpha.1",
14
+ "@digabi/exam-engine-rendering": "22.0.4-alpha.1",
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": "35fcb9972b7265201d75ed158691b394e58d55d1"
21
+ "gitHead": "0070be0466858ef7b186955b7cdab3c6b7108286"
22
22
  }