vibingbase 0.12.34 → 0.12.35
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 t from"@clack/prompts";import{capitalCase as M}from"change-case";import{Command as W}from"commander";import y from"node:path";import _ from"picocolors";function g(){let e=process.env.npm_config_user_agent??"";return e.startsWith("pnpm")?"pnpm":e.startsWith("yarn")?"yarn":e.startsWith("bun")?"bun":"npm"}import{exec as j}from"node:child_process";import{promisify as k}from"node:util";var s=k(j);import{customAlphabet as I}from"nanoid";var A="0123456789abcdefghijklmnopqrstuvwxyz",f=I(A);function u(e,a){return e==="npm"?`npm run ${a}`:`${e} ${a}`}import T from"ejs";import{copyFile as $,mkdir as N,readdir as P,readFile as z,writeFile as D}from"node:fs/promises";import w from"node:path";var b=".template";async function d(e,a,n){await N(a,{recursive:!0});let r=await P(e,{withFileTypes:!0});await Promise.all(r.map(async i=>{let o=i.name.endsWith(b),m=w.join(e,i.name),c=w.join(a,o?i.name.slice(0,-b.length):i.name);if(i.isDirectory())await d(m,c,n);else if(o){let C=await z(m,"utf8");await D(c,T.render(C,n))}else await $(m,c)}))}function h(e){if(!e)return"App name is required";if(e!==e.trim())return"No leading/trailing spaces allowed";if(e.includes(" "))return"No double spaces allowed"}var F=/^[a-zA-Z0-9]+([_-][a-zA-Z0-9]+)*$/;function x(e){if(!e)return"Directory name is required";if(!F.test(e))return"Only letters, numbers, dash, underscore allowed (no leading/trailing/double dash or underscore)"}var p={name:"vibingbase",version:"0.12.35",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 l=new W;l.name(p.name).version(p.version).description(p.description);var v="Create a new Vibingbase app";l.command("create").description(v).action(async()=>{t.intro(v);let e=await t.text({message:"Directory name:",placeholder:"my-app",validate:x});if(t.isCancel(e))return process.exit(0);let a=await t.text({message:"App name:",initialValue:M(e),validate:h});if(t.isCancel(a))return process.exit(0);let n=await t.confirm({message:"Use Tailwind CSS?",initialValue:!1});if(t.isCancel(n))return process.exit(0);let r=t.spinner(),i=y.join(process.cwd(),e);r.start("Creating project..."),await d(y.join(import.meta.dirname,"..","assets",n?"tailwind":"default"),i,{name:a,id:f(),version:"1.0.0",websiteURL:"https://www.vibingbase.com"}),r.stop("Created project!");let o=g();r.start("Installing dependencies..."),await s(`${o} install`,{cwd:i}),r.stop("Installed dependencies!"),r.start("Initializing Git..."),await s("git init",{cwd:i}),await s("git add .",{cwd:i}),await s('git commit -m "Initialize repository with Vibingbase CLI"',{cwd:i}),r.stop("Initialized Git!"),t.note(`cd ${e}
|
|
2
|
+
${u(o,"dev")}`,"Next steps"),t.outro(`Done! ${_.cyan("Happy coding!")}`)});await l.parseAsync();
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vibingbase",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.35",
|
|
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
|
}
|