vibingbase 0.12.35 → 0.12.37
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/assets/default/package.json.template +8 -2
- package/assets/default/src-tauri/Cargo.lock.template +2 -2
- package/assets/default/src-tauri/tauri.conf.json.template +7 -17
- package/assets/tailwind/package.json.template +8 -2
- package/assets/tailwind/src-tauri/Cargo.lock.template +2 -2
- package/assets/tailwind/src-tauri/tauri.conf.json.template +7 -17
- package/dist/index.js +2 -2
- package/package.json +1 -1
|
@@ -4,6 +4,11 @@
|
|
|
4
4
|
"private": true,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"dependencies": {
|
|
7
|
+
"@tauri-apps/api": "^2.9.1",
|
|
8
|
+
"@tauri-apps/plugin-deep-link": "^2.4.5",
|
|
9
|
+
"@tauri-apps/plugin-opener": "^2.5.2",
|
|
10
|
+
"@tauri-apps/plugin-process": "^2.3.1",
|
|
11
|
+
"@tauri-apps/plugin-updater": "^2.9.0",
|
|
7
12
|
"@vercel/react-router": "^1.2.4",
|
|
8
13
|
"react": "^19.2.3",
|
|
9
14
|
"react-dom": "^19.2.3",
|
|
@@ -13,6 +18,7 @@
|
|
|
13
18
|
"devDependencies": {
|
|
14
19
|
"@react-router/dev": "^7.11.0",
|
|
15
20
|
"@react-router/node": "^7.11.0",
|
|
21
|
+
"@tauri-apps/cli": "^2.9.6",
|
|
16
22
|
"@types/node": "^24.10.2",
|
|
17
23
|
"@types/react": "^19.2.7",
|
|
18
24
|
"@types/react-dom": "^19.2.3",
|
|
@@ -23,8 +29,8 @@
|
|
|
23
29
|
},
|
|
24
30
|
"scripts": {
|
|
25
31
|
"prepare": "react-router typegen",
|
|
26
|
-
"dev": "
|
|
27
|
-
"build": "
|
|
32
|
+
"dev": "tauri dev",
|
|
33
|
+
"build": "tauri build"
|
|
28
34
|
},
|
|
29
35
|
"packageManager": "pnpm@10.26.1"
|
|
30
36
|
}
|
|
@@ -397,9 +397,9 @@ dependencies = [
|
|
|
397
397
|
|
|
398
398
|
[[package]]
|
|
399
399
|
name = "cc"
|
|
400
|
-
version = "1.2.
|
|
400
|
+
version = "1.2.50"
|
|
401
401
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
402
|
-
checksum = "
|
|
402
|
+
checksum = "9f50d563227a1c37cc0a263f64eca3334388c01c5e4c4861a9def205c614383c"
|
|
403
403
|
dependencies = [
|
|
404
404
|
"find-msvc-tools",
|
|
405
405
|
"shlex",
|
|
@@ -1,17 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://schema.tauri.app/config/2",
|
|
3
|
-
"identifier": "com.vibingbase.app-<%= id %>",
|
|
4
3
|
"productName": "<%= name %>",
|
|
4
|
+
"identifier": "com.vibingbase.app-<%= id %>-dev",
|
|
5
5
|
"version": "<%= version %>",
|
|
6
6
|
"build": {
|
|
7
|
-
"beforeDevCommand": "
|
|
7
|
+
"beforeDevCommand": "react-router dev",
|
|
8
8
|
"devUrl": "http://localhost:1420",
|
|
9
|
-
"beforeBuildCommand": "
|
|
9
|
+
"beforeBuildCommand": "react-router build",
|
|
10
10
|
"frontendDist": "../build/client"
|
|
11
11
|
},
|
|
12
12
|
"bundle": {
|
|
13
|
-
"active": true,
|
|
14
|
-
"createUpdaterArtifacts": true,
|
|
15
13
|
"icon": [
|
|
16
14
|
"icons/32x32.png",
|
|
17
15
|
"icons/64x64.png",
|
|
@@ -20,15 +18,7 @@
|
|
|
20
18
|
"icons/icon.png",
|
|
21
19
|
"icons/icon.ico",
|
|
22
20
|
"icons/icon.icns"
|
|
23
|
-
]
|
|
24
|
-
"targets": [
|
|
25
|
-
"app",
|
|
26
|
-
"dmg",
|
|
27
|
-
"nsis"
|
|
28
|
-
],
|
|
29
|
-
"windows": {
|
|
30
|
-
"signCommand": "trusted-signing-cli -e https://eus.codesigning.azure.net -a phuctm97 -c phuctm97 %1"
|
|
31
|
-
}
|
|
21
|
+
]
|
|
32
22
|
},
|
|
33
23
|
"app": {
|
|
34
24
|
"windows": [
|
|
@@ -48,14 +38,14 @@
|
|
|
48
38
|
"deep-link": {
|
|
49
39
|
"desktop": {
|
|
50
40
|
"schemes": [
|
|
51
|
-
"app-<%= id
|
|
41
|
+
"app-<%= id %>-dev"
|
|
52
42
|
]
|
|
53
43
|
}
|
|
54
44
|
},
|
|
55
45
|
"updater": {
|
|
56
|
-
"pubkey": "
|
|
46
|
+
"pubkey": "app-<%= id %>-dev",
|
|
57
47
|
"endpoints": [
|
|
58
|
-
"<%= websiteURL %>/v1/updater/app-<%= id
|
|
48
|
+
"<%= websiteURL %>/v1/updater/app-<%= id %>-dev"
|
|
59
49
|
]
|
|
60
50
|
}
|
|
61
51
|
}
|
|
@@ -4,6 +4,11 @@
|
|
|
4
4
|
"private": true,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"dependencies": {
|
|
7
|
+
"@tauri-apps/api": "^2.9.1",
|
|
8
|
+
"@tauri-apps/plugin-deep-link": "^2.4.5",
|
|
9
|
+
"@tauri-apps/plugin-opener": "^2.5.2",
|
|
10
|
+
"@tauri-apps/plugin-process": "^2.3.1",
|
|
11
|
+
"@tauri-apps/plugin-updater": "^2.9.0",
|
|
7
12
|
"@vercel/react-router": "^1.2.4",
|
|
8
13
|
"react": "^19.2.3",
|
|
9
14
|
"react-dom": "^19.2.3",
|
|
@@ -14,6 +19,7 @@
|
|
|
14
19
|
"@react-router/dev": "^7.11.0",
|
|
15
20
|
"@react-router/node": "^7.11.0",
|
|
16
21
|
"@tailwindcss/vite": "^4.1.18",
|
|
22
|
+
"@tauri-apps/cli": "^2.9.6",
|
|
17
23
|
"@types/node": "^24.10.2",
|
|
18
24
|
"@types/react": "^19.2.7",
|
|
19
25
|
"@types/react-dom": "^19.2.3",
|
|
@@ -25,8 +31,8 @@
|
|
|
25
31
|
},
|
|
26
32
|
"scripts": {
|
|
27
33
|
"prepare": "react-router typegen",
|
|
28
|
-
"dev": "
|
|
29
|
-
"build": "
|
|
34
|
+
"dev": "tauri dev",
|
|
35
|
+
"build": "tauri build"
|
|
30
36
|
},
|
|
31
37
|
"packageManager": "pnpm@10.26.1"
|
|
32
38
|
}
|
|
@@ -397,9 +397,9 @@ dependencies = [
|
|
|
397
397
|
|
|
398
398
|
[[package]]
|
|
399
399
|
name = "cc"
|
|
400
|
-
version = "1.2.
|
|
400
|
+
version = "1.2.50"
|
|
401
401
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
402
|
-
checksum = "
|
|
402
|
+
checksum = "9f50d563227a1c37cc0a263f64eca3334388c01c5e4c4861a9def205c614383c"
|
|
403
403
|
dependencies = [
|
|
404
404
|
"find-msvc-tools",
|
|
405
405
|
"shlex",
|
|
@@ -1,17 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://schema.tauri.app/config/2",
|
|
3
|
-
"identifier": "com.vibingbase.app-<%= id %>",
|
|
4
3
|
"productName": "<%= name %>",
|
|
4
|
+
"identifier": "com.vibingbase.app-<%= id %>-dev",
|
|
5
5
|
"version": "<%= version %>",
|
|
6
6
|
"build": {
|
|
7
|
-
"beforeDevCommand": "
|
|
7
|
+
"beforeDevCommand": "react-router dev",
|
|
8
8
|
"devUrl": "http://localhost:1420",
|
|
9
|
-
"beforeBuildCommand": "
|
|
9
|
+
"beforeBuildCommand": "react-router build",
|
|
10
10
|
"frontendDist": "../build/client"
|
|
11
11
|
},
|
|
12
12
|
"bundle": {
|
|
13
|
-
"active": true,
|
|
14
|
-
"createUpdaterArtifacts": true,
|
|
15
13
|
"icon": [
|
|
16
14
|
"icons/32x32.png",
|
|
17
15
|
"icons/64x64.png",
|
|
@@ -20,15 +18,7 @@
|
|
|
20
18
|
"icons/icon.png",
|
|
21
19
|
"icons/icon.ico",
|
|
22
20
|
"icons/icon.icns"
|
|
23
|
-
]
|
|
24
|
-
"targets": [
|
|
25
|
-
"app",
|
|
26
|
-
"dmg",
|
|
27
|
-
"nsis"
|
|
28
|
-
],
|
|
29
|
-
"windows": {
|
|
30
|
-
"signCommand": "trusted-signing-cli -e https://eus.codesigning.azure.net -a phuctm97 -c phuctm97 %1"
|
|
31
|
-
}
|
|
21
|
+
]
|
|
32
22
|
},
|
|
33
23
|
"app": {
|
|
34
24
|
"windows": [
|
|
@@ -48,14 +38,14 @@
|
|
|
48
38
|
"deep-link": {
|
|
49
39
|
"desktop": {
|
|
50
40
|
"schemes": [
|
|
51
|
-
"app-<%= id
|
|
41
|
+
"app-<%= id %>-dev"
|
|
52
42
|
]
|
|
53
43
|
}
|
|
54
44
|
},
|
|
55
45
|
"updater": {
|
|
56
|
-
"pubkey": "
|
|
46
|
+
"pubkey": "app-<%= id %>-dev",
|
|
57
47
|
"endpoints": [
|
|
58
|
-
"<%= websiteURL %>/v1/updater/app-<%= id
|
|
48
|
+
"<%= websiteURL %>/v1/updater/app-<%= id %>-dev"
|
|
59
49
|
]
|
|
60
50
|
}
|
|
61
51
|
}
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import*as
|
|
2
|
-
${
|
|
1
|
+
import*as e from"@clack/prompts";import{capitalCase as G}from"change-case";import{Command as W}from"commander";import{existsSync as q}from"node:fs";import{rm as L}from"node:fs/promises";import d from"node:path";import _ from"picocolors";function w(){let t=process.env.npm_config_user_agent??"";return t.startsWith("pnpm")?"pnpm":t.startsWith("yarn")?"yarn":t.startsWith("bun")?"bun":"npm"}import{exec as P}from"node:child_process";import{promisify as I}from"node:util";var m=I(P);import{customAlphabet as V}from"nanoid";var M="0123456789abcdefghijklmnopqrstuvwxyz",v=V(M);function A(t){switch(t){case"install":case"start":return!1;default:return!0}}function y(t,r){let a=t==="npm"&&A(r)?`run ${r}`:r;return`${t} ${a}`}import D from"ejs";import{copyFile as N,mkdir as T,readdir as $,readFile as F,writeFile as S}from"node:fs/promises";import h from"node:path";var x=".template";async function u(t,r,a){await T(r,{recursive:!0});let i=await $(t,{withFileTypes:!0});await Promise.all(i.map(async n=>{let c=n.name.endsWith(x),l=h.join(t,n.name),p=h.join(r,c?n.name.slice(0,-x.length):n.name);if(n.isDirectory())await u(l,p,a);else if(c){let o=await F(l,"utf8");await S(p,D.render(o,a))}else await N(l,p)}))}function k(t){if(!t)return"App name is required";if(t.includes(" "))return"No double spaces allowed"}function C(t){if(!t)return"Directory name is required"}var g={name:"vibingbase",version:"0.12.37",description:"CLI for creating Vibingbase apps",keywords:["vibingbase","vibe-coding","ai-coding","low-code","no-code"],homepage:"https://www.vibingbase.com",bugs:{url:"https://github.com/vibingbase/apps/issues",email:"team@vibingbase.com"},license:"MIT",author:{name:"Vibingbase",email:"team@vibingbase.com"},type:"module",imports:{"#./*":"./*"},exports:{".":{development:"./lib/index.ts",import:"./dist/index.js"}},bin:"./bin/index.js",dependencies:{"@clack/prompts":"^0.11.0","change-case":"^5.4.4",commander:"^14.0.2",ejs:"^3.1.10",nanoid:"^5.1.6",picocolors:"^1.1.1"},devDependencies:{"@types/ejs":"^3.1.5","eslint-config-base":"workspace:^"}};var f=new W;f.name(g.name).version(g.version).description(g.description);var j="Create a new Vibingbase app";f.command("create",{isDefault:!0}).description(j).action(async()=>{e.intro(_.bold(j));let t="my-app",r=await e.text({message:"Directory name:",placeholder:t,defaultValue:t,initialValue:t,validate:C});e.isCancel(r)&&process.exit(0);let a=r.trim(),i=d.isAbsolute(a)?a:d.join(process.cwd(),a);if(q(i)){let b=await e.confirm({message:"Overwrite existing directory?",initialValue:!1});(e.isCancel(b)||!b)&&process.exit(0),await L(i,{recursive:!0,force:!0})}let n=G(d.basename(a)),c=await e.text({message:"App name:",placeholder:n,defaultValue:n,initialValue:n,validate:k});e.isCancel(c)&&process.exit(0);let l=c.trim(),p=await e.confirm({message:"Use Tailwind CSS?",initialValue:!0});e.isCancel(p)&&process.exit(0);let o=await e.select({message:"Package manager:",initialValue:w(),options:[{value:"npm",label:"npm"},{value:"pnpm",label:"pnpm"},{value:"yarn",label:"yarn"},{value:"bun",label:"bun"}]});e.isCancel(o)&&process.exit(0);let s=e.spinner();s.start("Generating project files..."),await u(d.join(import.meta.dirname,"..","assets",p?"tailwind":"default"),i,{name:l,id:v(),version:"1.0.0",websiteURL:"https://www.vibingbase.com"}),s.stop("Generated project files!"),s.start(`Installing ${o} dependencies...`),await m(`${o} install`,{cwd:i}),s.stop(`Installed ${o} dependencies!`),s.start("Installing cargo dependencies..."),await m("cargo fetch",{cwd:d.join(i,"src-tauri")}),s.stop("Installed cargo dependencies!"),s.start("Initializing Git..."),await m("git init",{cwd:i}),await m("git add .",{cwd:i}),await m('git commit -m "Initialize repository with Vibingbase CLI"',{cwd:i}),s.stop("Initialized Git!"),e.note(`cd ${a}
|
|
2
|
+
${y(o,"dev")}`,"Next steps"),e.outro("Happy coding!")});await f.parseAsync();
|