@lessonkit/cli 0.1.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 +20 -0
- package/dist/index.js +22 -0
- package/package.json +50 -0
package/README.md
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# `@lessonkit/cli`
|
|
2
|
+
|
|
3
|
+
LessonKit CLI (early stub).
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install -g @lessonkit/cli
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Commands (0.1.x stubs)
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
lessonkit init
|
|
15
|
+
lessonkit dev
|
|
16
|
+
lessonkit build
|
|
17
|
+
lessonkit package
|
|
18
|
+
lessonkit publish
|
|
19
|
+
```
|
|
20
|
+
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
// src/index.ts
|
|
4
|
+
import { Command } from "commander";
|
|
5
|
+
var program = new Command();
|
|
6
|
+
program.name("lessonkit").description("LessonKit CLI").version("0.1.0");
|
|
7
|
+
program.command("init").description("Initialize a LessonKit project (stub)").action(() => {
|
|
8
|
+
console.log("lessonkit init (coming soon)");
|
|
9
|
+
});
|
|
10
|
+
program.command("dev").description("Run a LessonKit project in dev mode (stub)").action(() => {
|
|
11
|
+
console.log("lessonkit dev (coming soon)");
|
|
12
|
+
});
|
|
13
|
+
program.command("build").description("Build a LessonKit project (stub)").action(() => {
|
|
14
|
+
console.log("lessonkit build (coming soon)");
|
|
15
|
+
});
|
|
16
|
+
program.command("package").description("Package to SCORM/xAPI formats (stub)").action(() => {
|
|
17
|
+
console.log("lessonkit package (coming soon)");
|
|
18
|
+
});
|
|
19
|
+
program.command("publish").description("Publish package artifacts (stub)").action(() => {
|
|
20
|
+
console.log("lessonkit publish (coming soon)");
|
|
21
|
+
});
|
|
22
|
+
program.parse(process.argv);
|
package/package.json
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@lessonkit/cli",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"private": false,
|
|
5
|
+
"description": "LessonKit CLI (early stub).",
|
|
6
|
+
"license": "Apache-2.0",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/eddiethedean/lessonkit.git",
|
|
10
|
+
"directory": "packages/cli"
|
|
11
|
+
},
|
|
12
|
+
"homepage": "https://github.com/eddiethedean/lessonkit",
|
|
13
|
+
"bugs": {
|
|
14
|
+
"url": "https://github.com/eddiethedean/lessonkit/issues"
|
|
15
|
+
},
|
|
16
|
+
"keywords": [
|
|
17
|
+
"lessonkit",
|
|
18
|
+
"cli",
|
|
19
|
+
"learning",
|
|
20
|
+
"scorm",
|
|
21
|
+
"xapi"
|
|
22
|
+
],
|
|
23
|
+
"type": "module",
|
|
24
|
+
"bin": {
|
|
25
|
+
"lessonkit": "./dist/index.js"
|
|
26
|
+
},
|
|
27
|
+
"exports": {
|
|
28
|
+
".": "./dist/index.js"
|
|
29
|
+
},
|
|
30
|
+
"files": [
|
|
31
|
+
"dist"
|
|
32
|
+
],
|
|
33
|
+
"scripts": {
|
|
34
|
+
"build": "tsup src/index.ts --format esm --splitting=false --platform node --target node18",
|
|
35
|
+
"dev": "tsup src/index.ts --format esm --watch --splitting=false --platform node --target node18",
|
|
36
|
+
"prepublishOnly": "npm run build",
|
|
37
|
+
"typecheck": "tsc -p tsconfig.json",
|
|
38
|
+
"test": "vitest run --passWithNoTests",
|
|
39
|
+
"lint": "echo \"(no lint configured yet)\""
|
|
40
|
+
},
|
|
41
|
+
"dependencies": {
|
|
42
|
+
"commander": "^14.0.1"
|
|
43
|
+
},
|
|
44
|
+
"devDependencies": {
|
|
45
|
+
"@types/node": "^24.0.0",
|
|
46
|
+
"tsup": "^8.5.0",
|
|
47
|
+
"typescript": "^5.8.3",
|
|
48
|
+
"vitest": "^3.2.4"
|
|
49
|
+
}
|
|
50
|
+
}
|