@lessonkit/cli 0.5.0 → 0.7.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.
@@ -0,0 +1,11 @@
1
+ import React from "react";
2
+ import ReactDOM from "react-dom/client";
3
+ import App from "./App";
4
+ import "./styles.css";
5
+
6
+ ReactDOM.createRoot(document.getElementById("root")!).render(
7
+ <React.StrictMode>
8
+ <App />
9
+ </React.StrictMode>,
10
+ );
11
+
@@ -0,0 +1,59 @@
1
+ /*
2
+ Template styling uses LessonKit design tokens (--lk-*).
3
+ ThemeProvider injects values; override via theme prop or your own CSS.
4
+ */
5
+
6
+ html,
7
+ body {
8
+ height: 100%;
9
+ }
10
+
11
+ body {
12
+ margin: 0;
13
+ background: var(--lk-color-background);
14
+ color: var(--lk-color-foreground);
15
+ font-family: var(--lk-font-family);
16
+ font-size: var(--lk-font-size-base);
17
+ line-height: var(--lk-line-height-base);
18
+ }
19
+
20
+ .app-shell {
21
+ margin: 0 auto;
22
+ padding: var(--lk-space-xl) var(--lk-space-lg);
23
+ max-width: 720px;
24
+ }
25
+
26
+ section,
27
+ article {
28
+ border: 1px solid var(--lk-color-border);
29
+ border-radius: var(--lk-radius-lg);
30
+ padding: var(--lk-space-lg);
31
+ margin: var(--lk-space-md) 0;
32
+ background: var(--lk-color-panel);
33
+ box-shadow: var(--lk-shadow-md);
34
+ }
35
+
36
+ h1,
37
+ h2 {
38
+ margin: 0 0 var(--lk-space-sm);
39
+ font-weight: var(--lk-font-weight-strong);
40
+ }
41
+
42
+ button {
43
+ border: 1px solid var(--lk-color-border);
44
+ background: var(--lk-color-panel);
45
+ color: var(--lk-color-foreground);
46
+ border-radius: var(--lk-radius-md);
47
+ padding: var(--lk-space-sm) var(--lk-space-md);
48
+ font-weight: var(--lk-font-weight-strong);
49
+ cursor: pointer;
50
+ }
51
+
52
+ input[type="radio"] {
53
+ accent-color: var(--lk-color-primary);
54
+ }
55
+
56
+ label {
57
+ display: block;
58
+ margin: var(--lk-space-xs) 0;
59
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "ES2022",
4
+ "lib": ["ES2022", "DOM", "DOM.Iterable"],
5
+ "module": "ESNext",
6
+ "moduleResolution": "Bundler",
7
+ "noEmit": true,
8
+ "jsx": "react-jsx",
9
+ "strict": true,
10
+ "skipLibCheck": true,
11
+ "forceConsistentCasingInFileNames": true,
12
+ "verbatimModuleSyntax": true,
13
+ "resolveJsonModule": true,
14
+ "types": ["vite/client"]
15
+ },
16
+ "include": ["src"]
17
+ }
18
+
@@ -0,0 +1,7 @@
1
+ import { defineConfig } from "vite";
2
+ import react from "@vitejs/plugin-react";
3
+
4
+ export default defineConfig({
5
+ plugins: [react()],
6
+ });
7
+
@@ -0,0 +1,16 @@
1
+ import { defineConfig } from "vitest/config";
2
+
3
+ export default defineConfig({
4
+ test: {
5
+ environment: "jsdom",
6
+ css: true,
7
+ coverage: {
8
+ provider: "v8",
9
+ all: true,
10
+ include: ["src/**/*.{ts,tsx}"],
11
+ exclude: ["dist/**", "node_modules/**", "**/*.d.ts", "**/*.d.cts"],
12
+ thresholds: { lines: 100 },
13
+ },
14
+ },
15
+ });
16
+