create-vobase 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 +31 -0
- package/dist/index.js +25 -0
- package/package.json +21 -0
package/README.md
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# create-vobase
|
|
2
|
+
|
|
3
|
+
Scaffold a new [Vobase](https://github.com/vobase/vobase) project — the app framework built for AI coding agents.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
bun create vobase my-app
|
|
9
|
+
cd my-app
|
|
10
|
+
bun run dev
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
This downloads the latest template from GitHub, installs dependencies, and gives you a working full-stack app with auth, database, storage, and jobs.
|
|
14
|
+
|
|
15
|
+
## What you get
|
|
16
|
+
|
|
17
|
+
```
|
|
18
|
+
my-app/
|
|
19
|
+
server.ts ← Hono + bun:sqlite entry point
|
|
20
|
+
vite.config.ts ← React + TanStack Router frontend
|
|
21
|
+
drizzle.config.ts ← SQLite schema management
|
|
22
|
+
modules/ ← your domain code goes here
|
|
23
|
+
src/ ← frontend (React, shadcn/ui)
|
|
24
|
+
.agents/skills/ ← AI agent knowledge packs
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
Backend on `:3000`, frontend on `:5173`. Ships with a dashboard and audit log viewer.
|
|
28
|
+
|
|
29
|
+
## License
|
|
30
|
+
|
|
31
|
+
MIT
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
// index.ts
|
|
4
|
+
import { downloadTemplate } from "giget";
|
|
5
|
+
import { execSync } from "node:child_process";
|
|
6
|
+
import { resolve } from "node:path";
|
|
7
|
+
var name = process.argv[2];
|
|
8
|
+
if (!name) {
|
|
9
|
+
console.error("Usage: create-vobase <project-name>");
|
|
10
|
+
process.exit(1);
|
|
11
|
+
}
|
|
12
|
+
var dest = resolve(process.cwd(), name);
|
|
13
|
+
console.log(`Creating vobase project in ${dest}...`);
|
|
14
|
+
await downloadTemplate("github:vobase/vobase/packages/template", {
|
|
15
|
+
dir: dest,
|
|
16
|
+
force: false
|
|
17
|
+
});
|
|
18
|
+
console.log("Installing dependencies...");
|
|
19
|
+
execSync("bun install", { cwd: dest, stdio: "inherit" });
|
|
20
|
+
console.log(`
|
|
21
|
+
Done! Your vobase project is ready.
|
|
22
|
+
|
|
23
|
+
cd ${name}
|
|
24
|
+
bun run dev
|
|
25
|
+
`);
|
package/package.json
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "create-vobase",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Create a new vobase project",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"bin": {
|
|
7
|
+
"create-vobase": "dist/index.js"
|
|
8
|
+
},
|
|
9
|
+
"files": [
|
|
10
|
+
"dist"
|
|
11
|
+
],
|
|
12
|
+
"scripts": {
|
|
13
|
+
"build": "bun build ./index.ts --outdir ./dist --target=node --packages=external"
|
|
14
|
+
},
|
|
15
|
+
"dependencies": {
|
|
16
|
+
"giget": "^2.0.0"
|
|
17
|
+
},
|
|
18
|
+
"devDependencies": {
|
|
19
|
+
"typescript": "^5.9.3"
|
|
20
|
+
}
|
|
21
|
+
}
|