vibingbase 0.12.34 → 0.12.36
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/.gitattributes.template +1 -0
- package/assets/default/.gitignore.template +24 -0
- package/assets/default/app/entry.client.tsx.template +12 -0
- package/assets/default/app/entry.server.tsx.template +35 -0
- package/assets/default/app/global.d.ts.template +1 -0
- package/assets/default/app/root.tsx.template +49 -0
- package/assets/default/app/routes/index.tsx.template +8 -0
- package/assets/default/app/routes.ts.template +5 -0
- package/assets/default/package.json.template +30 -0
- package/assets/default/react-router.config.js.template +7 -0
- package/assets/default/src-tauri/Cargo.lock.template +5714 -0
- package/assets/default/src-tauri/Cargo.toml.template +22 -0
- package/assets/default/src-tauri/build.rs.template +3 -0
- package/assets/default/src-tauri/capabilities/default.json.template +17 -0
- package/assets/default/src-tauri/icons/128x128.png +0 -0
- package/assets/default/src-tauri/icons/128x128@2x.png +0 -0
- package/assets/default/src-tauri/icons/32x32.png +0 -0
- package/assets/default/src-tauri/icons/64x64.png +0 -0
- package/assets/default/src-tauri/icons/Square107x107Logo.png +0 -0
- package/assets/default/src-tauri/icons/Square142x142Logo.png +0 -0
- package/assets/default/src-tauri/icons/Square150x150Logo.png +0 -0
- package/assets/default/src-tauri/icons/Square284x284Logo.png +0 -0
- package/assets/default/src-tauri/icons/Square30x30Logo.png +0 -0
- package/assets/default/src-tauri/icons/Square310x310Logo.png +0 -0
- package/assets/default/src-tauri/icons/Square44x44Logo.png +0 -0
- package/assets/default/src-tauri/icons/Square71x71Logo.png +0 -0
- package/assets/default/src-tauri/icons/Square89x89Logo.png +0 -0
- package/assets/default/src-tauri/icons/StoreLogo.png +0 -0
- package/assets/default/src-tauri/icons/icon.icns +0 -0
- package/assets/default/src-tauri/icons/icon.ico +0 -0
- package/assets/default/src-tauri/icons/icon.png +0 -0
- package/assets/default/src-tauri/src/lib.rs.template +15 -0
- package/assets/default/src-tauri/src/main.rs.template +6 -0
- package/assets/default/src-tauri/tauri.conf.json.template +62 -0
- package/assets/default/tsconfig.json.template +47 -0
- package/assets/default/vite.config.js.template +13 -0
- package/assets/tailwind/.gitattributes.template +1 -0
- package/assets/tailwind/.gitignore.template +24 -0
- package/assets/tailwind/app/entry.client.css.template +1 -0
- package/assets/tailwind/app/entry.client.tsx.template +14 -0
- package/assets/tailwind/app/entry.server.tsx.template +35 -0
- package/assets/tailwind/app/global.d.ts.template +1 -0
- package/assets/tailwind/app/root.tsx.template +49 -0
- package/assets/tailwind/app/routes/index.tsx.template +10 -0
- package/assets/tailwind/app/routes.ts.template +5 -0
- package/assets/tailwind/package.json.template +32 -0
- package/assets/tailwind/react-router.config.js.template +7 -0
- package/assets/tailwind/src-tauri/Cargo.lock.template +5714 -0
- package/assets/tailwind/src-tauri/Cargo.toml.template +22 -0
- package/assets/tailwind/src-tauri/build.rs.template +3 -0
- package/assets/tailwind/src-tauri/capabilities/default.json.template +17 -0
- package/assets/tailwind/src-tauri/icons/128x128.png +0 -0
- package/assets/tailwind/src-tauri/icons/128x128@2x.png +0 -0
- package/assets/tailwind/src-tauri/icons/32x32.png +0 -0
- package/assets/tailwind/src-tauri/icons/64x64.png +0 -0
- package/assets/tailwind/src-tauri/icons/Square107x107Logo.png +0 -0
- package/assets/tailwind/src-tauri/icons/Square142x142Logo.png +0 -0
- package/assets/tailwind/src-tauri/icons/Square150x150Logo.png +0 -0
- package/assets/tailwind/src-tauri/icons/Square284x284Logo.png +0 -0
- package/assets/tailwind/src-tauri/icons/Square30x30Logo.png +0 -0
- package/assets/tailwind/src-tauri/icons/Square310x310Logo.png +0 -0
- package/assets/tailwind/src-tauri/icons/Square44x44Logo.png +0 -0
- package/assets/tailwind/src-tauri/icons/Square71x71Logo.png +0 -0
- package/assets/tailwind/src-tauri/icons/Square89x89Logo.png +0 -0
- package/assets/tailwind/src-tauri/icons/StoreLogo.png +0 -0
- package/assets/tailwind/src-tauri/icons/icon.icns +0 -0
- package/assets/tailwind/src-tauri/icons/icon.ico +0 -0
- package/assets/tailwind/src-tauri/icons/icon.png +0 -0
- package/assets/tailwind/src-tauri/src/lib.rs.template +15 -0
- package/assets/tailwind/src-tauri/src/main.rs.template +6 -0
- package/assets/tailwind/src-tauri/tauri.conf.json.template +62 -0
- package/assets/tailwind/tsconfig.json.template +47 -0
- package/assets/tailwind/vite.config.js.template +19 -0
- package/dist/index.js +2 -1
- package/package.json +11 -1
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
[package]
|
|
2
|
+
name = "app_<%= id %>_package"
|
|
3
|
+
version = "<%= version %>"
|
|
4
|
+
edition = "2021"
|
|
5
|
+
|
|
6
|
+
[lib]
|
|
7
|
+
name = "app_<%= id %>_lib"
|
|
8
|
+
crate-type = ["staticlib", "cdylib", "rlib"]
|
|
9
|
+
|
|
10
|
+
[build-dependencies]
|
|
11
|
+
tauri-build = { version = "2", features = [] }
|
|
12
|
+
|
|
13
|
+
[dependencies]
|
|
14
|
+
tauri = { version = "2", features = [] }
|
|
15
|
+
tauri-plugin-single-instance = { version = "2", features = ["deep-link"] }
|
|
16
|
+
tauri-plugin-deep-link = "2"
|
|
17
|
+
tauri-plugin-updater = "2"
|
|
18
|
+
tauri-plugin-opener = "2"
|
|
19
|
+
tauri-plugin-process = "2"
|
|
20
|
+
serde = { version = "1", features = ["derive"] }
|
|
21
|
+
serde_json = "1"
|
|
22
|
+
fix-path-env = { git = "https://github.com/tauri-apps/fix-path-env-rs" }
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "../gen/schemas/desktop-schema.json",
|
|
3
|
+
"identifier": "default",
|
|
4
|
+
"description": "Default capabilities for all windows",
|
|
5
|
+
"windows": ["*"],
|
|
6
|
+
"permissions": [
|
|
7
|
+
"core:default",
|
|
8
|
+
"core:app:allow-set-app-theme",
|
|
9
|
+
"core:window:default",
|
|
10
|
+
"core:window:allow-set-theme",
|
|
11
|
+
"core:window:allow-set-focus",
|
|
12
|
+
"deep-link:default",
|
|
13
|
+
"updater:default",
|
|
14
|
+
"opener:default",
|
|
15
|
+
"process:default"
|
|
16
|
+
]
|
|
17
|
+
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
use tauri::Manager;
|
|
2
|
+
|
|
3
|
+
#[cfg_attr(mobile, tauri::mobile_entry_point)]
|
|
4
|
+
pub fn run() {
|
|
5
|
+
tauri::Builder::default()
|
|
6
|
+
.plugin(tauri_plugin_single_instance::init(|app, _argv, _cwd| {
|
|
7
|
+
app.get_webview_window("main").unwrap().set_focus().unwrap();
|
|
8
|
+
}))
|
|
9
|
+
.plugin(tauri_plugin_deep_link::init())
|
|
10
|
+
.plugin(tauri_plugin_updater::Builder::new().build())
|
|
11
|
+
.plugin(tauri_plugin_opener::init())
|
|
12
|
+
.plugin(tauri_plugin_process::init())
|
|
13
|
+
.run(tauri::generate_context!())
|
|
14
|
+
.unwrap();
|
|
15
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://schema.tauri.app/config/2",
|
|
3
|
+
"identifier": "com.vibingbase.app-<%= id %>",
|
|
4
|
+
"productName": "<%= name %>",
|
|
5
|
+
"version": "<%= version %>",
|
|
6
|
+
"build": {
|
|
7
|
+
"beforeDevCommand": "pnpm dev",
|
|
8
|
+
"devUrl": "http://localhost:1420",
|
|
9
|
+
"beforeBuildCommand": "pnpm build",
|
|
10
|
+
"frontendDist": "../build/client"
|
|
11
|
+
},
|
|
12
|
+
"bundle": {
|
|
13
|
+
"active": true,
|
|
14
|
+
"createUpdaterArtifacts": true,
|
|
15
|
+
"icon": [
|
|
16
|
+
"icons/32x32.png",
|
|
17
|
+
"icons/64x64.png",
|
|
18
|
+
"icons/128x128.png",
|
|
19
|
+
"icons/128x128@2x.png",
|
|
20
|
+
"icons/icon.png",
|
|
21
|
+
"icons/icon.ico",
|
|
22
|
+
"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
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"app": {
|
|
34
|
+
"windows": [
|
|
35
|
+
{
|
|
36
|
+
"title": "<%= name %>",
|
|
37
|
+
"titleBarStyle": "Transparent",
|
|
38
|
+
"width": 1080,
|
|
39
|
+
"height": 720,
|
|
40
|
+
"minWidth": 900,
|
|
41
|
+
"minHeight": 600,
|
|
42
|
+
"center": true,
|
|
43
|
+
"dragDropEnabled": false
|
|
44
|
+
}
|
|
45
|
+
]
|
|
46
|
+
},
|
|
47
|
+
"plugins": {
|
|
48
|
+
"deep-link": {
|
|
49
|
+
"desktop": {
|
|
50
|
+
"schemes": [
|
|
51
|
+
"app-<%= id %>"
|
|
52
|
+
]
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"updater": {
|
|
56
|
+
"pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IDkzMEJBRTRGMkZBREIxMTIKUldRU3NhMHZUNjRMazdXcFd4RUxUNXFDK1NBUEJSYjFhZlVXaHI4YVZBOW1QYXRobEt4eTI5QXkK",
|
|
57
|
+
"endpoints": [
|
|
58
|
+
"<%= websiteURL %>/v1/updater/app-<%= id %>"
|
|
59
|
+
]
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
{
|
|
2
|
+
"include": [
|
|
3
|
+
"**/*",
|
|
4
|
+
"**/*.json",
|
|
5
|
+
"**/.client/**/*",
|
|
6
|
+
"**/.client/**/*.json",
|
|
7
|
+
"**/.server/**/*",
|
|
8
|
+
"**/.server/**/*.json",
|
|
9
|
+
".react-router/types/**/*",
|
|
10
|
+
".react-router/types/**/*.json"
|
|
11
|
+
],
|
|
12
|
+
"exclude": [
|
|
13
|
+
"node_modules",
|
|
14
|
+
"build",
|
|
15
|
+
"public"
|
|
16
|
+
],
|
|
17
|
+
"references": [],
|
|
18
|
+
"compilerOptions": {
|
|
19
|
+
"moduleResolution": "bundler",
|
|
20
|
+
"module": "esnext",
|
|
21
|
+
"target": "es2024",
|
|
22
|
+
"jsx": "react-jsx",
|
|
23
|
+
"lib": [
|
|
24
|
+
"dom",
|
|
25
|
+
"dom.iterable",
|
|
26
|
+
"esnext"
|
|
27
|
+
],
|
|
28
|
+
"strict": true,
|
|
29
|
+
"incremental": true,
|
|
30
|
+
"verbatimModuleSyntax": true,
|
|
31
|
+
"esModuleInterop": true,
|
|
32
|
+
"resolveJsonModule": true,
|
|
33
|
+
"importHelpers": true,
|
|
34
|
+
"allowImportingTsExtensions": true,
|
|
35
|
+
"skipLibCheck": true,
|
|
36
|
+
"noEmit": true,
|
|
37
|
+
"rootDirs": [
|
|
38
|
+
".",
|
|
39
|
+
"./.react-router/types"
|
|
40
|
+
],
|
|
41
|
+
"paths": {
|
|
42
|
+
"~/*": [
|
|
43
|
+
"./*"
|
|
44
|
+
]
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { reactRouter } from "@react-router/dev/vite";
|
|
2
|
+
import tailwindcss from "@tailwindcss/vite";
|
|
3
|
+
import tsconfigPaths from "vite-tsconfig-paths";
|
|
4
|
+
import preserveDirectives from "rollup-preserve-directives";
|
|
5
|
+
|
|
6
|
+
const target = "es2024";
|
|
7
|
+
|
|
8
|
+
export default {
|
|
9
|
+
clearScreen: false,
|
|
10
|
+
esbuild: { target },
|
|
11
|
+
build: { target, chunkSizeWarningLimit: 2048 },
|
|
12
|
+
server: { strictPort: true, port: 1420 },
|
|
13
|
+
plugins: [
|
|
14
|
+
reactRouter(),
|
|
15
|
+
tailwindcss(),
|
|
16
|
+
tsconfigPaths(),
|
|
17
|
+
preserveDirectives(),
|
|
18
|
+
],
|
|
19
|
+
};
|
package/dist/index.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import*as e from"@clack/prompts";import{capitalCase as F}from"change-case";import{Command as G}from"commander";import W from"node:fs";import v from"node:path";import _ from"picocolors";function u(){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 C}from"node:child_process";import{promisify as j}from"node:util";var m=j(C);import{customAlphabet as V}from"nanoid";var I="0123456789abcdefghijklmnopqrstuvwxyz",f=V(I);function b(t,i){return t==="npm"?`npm run ${i}`:`${t} ${i}`}import P from"ejs";import{copyFile as A,mkdir as N,readdir as T,readFile as D,writeFile as M}from"node:fs/promises";import w from"node:path";var y=".template";async function d(t,i,r){await N(i,{recursive:!0});let o=await T(t,{withFileTypes:!0});await Promise.all(o.map(async n=>{let p=n.name.endsWith(y),s=w.join(t,n.name),a=w.join(i,p?n.name.slice(0,-y.length):n.name);if(n.isDirectory())await d(s,a,r);else if(p){let c=await D(s,"utf8");await M(a,P.render(c,r))}else await A(s,a)}))}function x(t){if(!t)return"App name is required";if(t!==t.trim())return"No leading/trailing spaces allowed";if(t.includes(" "))return"No double spaces allowed"}var $=/^[a-zA-Z0-9]+([_-][a-zA-Z0-9]+)*$/;function h(t){if(!t)return"Directory name is required";if(!$.test(t))return"Only letters, numbers, dash, underscore allowed (no leading/trailing/double dash or underscore)"}var l={name:"vibingbase",version:"0.12.36",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 g=new G;g.name(l.name).version(l.version).description(l.description);var k="Create a new Vibingbase app";g.command("create",{isDefault:!0}).description(k).action(async()=>{e.intro(_.bold(k));let t="my-app",i=await e.text({message:"Directory name:",placeholder:t,defaultValue:t,initialValue:t,validate:h});e.isCancel(i)&&process.exit(0);let r=v.join(process.cwd(),i);if(W.existsSync(r)){let c=await e.confirm({message:"Overwrite existing directory?",initialValue:!1});(e.isCancel(c)||!c)&&process.exit(0)}let o=F(i),n=await e.text({message:"App name:",placeholder:o,defaultValue:o,initialValue:o,validate:x});e.isCancel(n)&&process.exit(0);let p=await e.confirm({message:"Use Tailwind CSS?",initialValue:!0});e.isCancel(p)&&process.exit(0);let s=await e.select({message:"Package manager:",initialValue:u(),options:[{value:"npm",label:"npm"},{value:"pnpm",label:"pnpm"},{value:"yarn",label:"yarn"},{value:"bun",label:"bun"}]});e.isCancel(s)&&process.exit(0);let a=e.spinner();a.start("Generating files..."),await d(v.join(import.meta.dirname,"..","assets",p?"tailwind":"default"),r,{name:n,id:f(),version:"1.0.0",websiteURL:"https://www.vibingbase.com"}),a.stop("Generated files!"),a.start("Installing dependencies..."),await m(`${s} install`,{cwd:r}),a.stop("Installed dependencies!"),a.start("Initializing Git..."),await m("git init",{cwd:r}),await m("git add .",{cwd:r}),await m('git commit -m "Initialize repository with Vibingbase CLI"',{cwd:r}),a.stop("Initialized Git!"),e.note(`cd ${i}
|
|
2
|
+
${b(s,"dev")}`,"Next steps"),e.outro("Happy coding!")});await g.parseAsync();
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vibingbase",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.36",
|
|
4
|
+
"description": "CLI for creating Vibingbase apps",
|
|
4
5
|
"keywords": [
|
|
5
6
|
"vibingbase",
|
|
6
7
|
"vibe-coding",
|
|
@@ -28,7 +29,16 @@
|
|
|
28
29
|
}
|
|
29
30
|
},
|
|
30
31
|
"bin": "./bin/index.js",
|
|
32
|
+
"dependencies": {
|
|
33
|
+
"@clack/prompts": "^0.11.0",
|
|
34
|
+
"change-case": "^5.4.4",
|
|
35
|
+
"commander": "^14.0.2",
|
|
36
|
+
"ejs": "^3.1.10",
|
|
37
|
+
"nanoid": "^5.1.6",
|
|
38
|
+
"picocolors": "^1.1.1"
|
|
39
|
+
},
|
|
31
40
|
"files": [
|
|
41
|
+
"assets",
|
|
32
42
|
"dist"
|
|
33
43
|
]
|
|
34
44
|
}
|