create-bodhi-js 0.14.0 → 0.16.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/dist/index.js +8 -2
- package/package.json +4 -5
package/dist/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
// src/index.ts
|
|
4
|
+
import { readFileSync } from "fs";
|
|
4
5
|
import { Command } from "commander";
|
|
5
6
|
|
|
6
7
|
// src/cli.ts
|
|
@@ -83,7 +84,11 @@ async function scaffold(options) {
|
|
|
83
84
|
}
|
|
84
85
|
}
|
|
85
86
|
if (isLocalPath(templateUrl)) {
|
|
86
|
-
|
|
87
|
+
const SKIP = /* @__PURE__ */ new Set(["node_modules", "dist", "package-lock.json", "test-results"]);
|
|
88
|
+
await fs2.cp(templateUrl, targetDir, {
|
|
89
|
+
recursive: true,
|
|
90
|
+
filter: (src) => !SKIP.has(path2.basename(src))
|
|
91
|
+
});
|
|
87
92
|
} else {
|
|
88
93
|
await downloadTemplate(templateUrl, {
|
|
89
94
|
dir: targetDir,
|
|
@@ -341,8 +346,9 @@ async function create(projectName, options) {
|
|
|
341
346
|
}
|
|
342
347
|
|
|
343
348
|
// src/index.ts
|
|
349
|
+
var pkg = JSON.parse(readFileSync(new URL("../package.json", import.meta.url), "utf-8"));
|
|
344
350
|
var program = new Command();
|
|
345
|
-
program.name("create-bodhi-js").description("Scaffold Bodhi-powered applications").version(
|
|
351
|
+
program.name("create-bodhi-js").description("Scaffold Bodhi-powered applications").version(pkg.version).argument("[project-name]", "Name of the project").option("-t, --template <name>", "Template name or local path", "react").option("--no-install", "Skip dependency installation").option("--no-git", "Skip git initialization").option("--github-pages", "Enable GitHub Pages deployment setup").option("--no-github-pages", "Disable GitHub Pages deployment setup").option("--github-org <org>", "GitHub repository owner (user/org)").option("--dev-client-id <id>", "Development client ID (for .env.local and CI)").option("--prod-client-id <id>", "Production client ID (for GitHub Pages deploy)").option("--mcp-servers <urls>", "Comma-separated MCP server URLs to request access to").option("--ci", "Run in CI mode (disable animations)").action(async (projectName, options) => {
|
|
346
352
|
await create(projectName, options);
|
|
347
353
|
});
|
|
348
354
|
program.parse();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-bodhi-js",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.16.0",
|
|
4
4
|
"description": "Scaffold Bodhi-powered applications with React, TypeScript, Vite, and more",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -20,8 +20,7 @@
|
|
|
20
20
|
"lint:fix": "eslint . --fix",
|
|
21
21
|
"check": "npm run lint && npm run typecheck",
|
|
22
22
|
"check:fix": "npm run lint:fix && npm run typecheck",
|
|
23
|
-
"test": "
|
|
24
|
-
"test:headed": "playwright test --headed",
|
|
23
|
+
"test": "vitest run",
|
|
25
24
|
"prepublishOnly": "npm run build"
|
|
26
25
|
},
|
|
27
26
|
"keywords": [
|
|
@@ -54,7 +53,6 @@
|
|
|
54
53
|
},
|
|
55
54
|
"devDependencies": {
|
|
56
55
|
"@eslint/js": "^9.39.1",
|
|
57
|
-
"@playwright/test": "^1.57.0",
|
|
58
56
|
"@types/node": "^25.0.3",
|
|
59
57
|
"dotenv": "^17.2.3",
|
|
60
58
|
"eslint": "^9.39.1",
|
|
@@ -65,7 +63,8 @@
|
|
|
65
63
|
"tsup": "^8.5.0",
|
|
66
64
|
"tsx": "^4.19.2",
|
|
67
65
|
"typescript": "^5.9.3",
|
|
68
|
-
"typescript-eslint": "^8.46.4"
|
|
66
|
+
"typescript-eslint": "^8.46.4",
|
|
67
|
+
"vitest": "^4.0.16"
|
|
69
68
|
},
|
|
70
69
|
"engines": {
|
|
71
70
|
"node": ">=18.0.0"
|