@lernapps/app-templates 0.2.0 → 0.2.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.
@@ -9,7 +9,7 @@
9
9
  },
10
10
  "devDependencies": {
11
11
  "@lernapps/app-templates": "file:..",
12
- "@lernapps/tooling": "^0.1.2",
12
+ "@lernapps/tooling": "0.1.3",
13
13
  "vite-plus": "1.4.0"
14
14
  },
15
15
  "overrides": {
@@ -9,7 +9,7 @@
9
9
  },
10
10
  "devDependencies": {
11
11
  "@lernapps/app-templates": "file:..",
12
- "@lernapps/tooling": "^0.1.2",
12
+ "@lernapps/tooling": "0.1.3",
13
13
  "vite-plus": "1.4.0"
14
14
  },
15
15
  "overrides": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lernapps/app-templates",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "The templates of the archetypes of lernapps.net apps, and the runtime of each archetype that apps depend on (the quiz: engine, build step, styles, end-to-end tests, the schema of the question bank, the questions it shares with the explainer are in ./questions; the explainer: build step, client module with its exercises, the islands of its Vue components, styles, end-to-end tests, the schema of its content; the interactive archetype: build step, the start page and the app page around the app's own Vue components and core, its playthroughs, styles, end-to-end tests, the schemas of its start page and its playthroughs)",
5
5
  "license": "MIT",
6
6
  "repository": {
package/quiz/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  },
10
10
  "devDependencies": {
11
11
  "@lernapps/app-templates": "file:..",
12
- "@lernapps/tooling": "^0.1.2",
12
+ "@lernapps/tooling": "0.1.3",
13
13
  "vite-plus": "1.4.0"
14
14
  },
15
15
  "overrides": {
@@ -1,7 +1,9 @@
1
- // The app's logic, a placeholder: a count from 0 to 3, one step for each "weiter" (the button of the component).
1
+ // The app's logic, a placeholder: a count from 0 to the goal of src/data/count.json, one step for each "weiter" (the
2
+ // button of the component).
2
3
  // Pure TypeScript without DOM; the runtime keeps the state and calls start and step
3
4
  // (@lernapps/app-templates/interactive). Replace it with the planned core.
4
5
  import type { Input } from "@lernapps/app-templates/interactive";
6
+ import count from "../data/count.json" with { type: "json" };
5
7
 
6
8
  export interface State {
7
9
  seed: number;
@@ -10,7 +12,7 @@ export interface State {
10
12
  }
11
13
 
12
14
  /** How far the count goes. */
13
- export const GOAL = 3;
15
+ export const GOAL: number = count.goal;
14
16
 
15
17
  export function start(seed: number): State {
16
18
  return { seed, count: 0, done: false };
@@ -0,0 +1 @@
1
+ { "goal": 3 }