@lessonkit/cli 0.6.0 → 0.8.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.
- package/README.md +36 -7
- package/dist/bin.d.ts +1 -0
- package/dist/bin.js +545 -12
- package/dist/index.d.ts +11 -0
- package/dist/index.js +543 -11
- package/package.json +11 -5
- package/template/vite-react/README.md +19 -0
- package/template/vite-react/dist/assets/index-B7c44fhF.js +8 -0
- package/template/vite-react/dist/assets/index-CP3MNJ8s.css +1 -0
- package/template/vite-react/dist/index.html +14 -0
- package/template/vite-react/index.html +13 -0
- package/template/vite-react/lessonkit.json +25 -0
- package/template/vite-react/package.json +35 -0
- package/template/vite-react/src/App.test.tsx +14 -0
- package/template/vite-react/src/App.tsx +40 -0
- package/template/vite-react/src/main.test.tsx +25 -0
- package/template/vite-react/src/main.tsx +11 -0
- package/template/vite-react/src/styles.css +59 -0
- package/template/vite-react/tsconfig.json +18 -0
- package/template/vite-react/vite.config.ts +7 -0
- package/template/vite-react/vitest.config.ts +16 -0
|
@@ -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,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
|
+
|