@rebasepro/cli 0.9.0 → 0.9.1-canary.0de22e0
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 +32 -3
- package/bin/rebase.js +67 -1
- package/dist/commands/cloud/auth.d.ts +3 -0
- package/dist/commands/cloud/context.d.ts +151 -0
- package/dist/commands/cloud/databases.d.ts +1 -0
- package/dist/commands/cloud/debug.d.ts +117 -0
- package/dist/commands/cloud/deploy.d.ts +2 -0
- package/dist/commands/cloud/deployments.d.ts +38 -0
- package/dist/commands/cloud/domains.d.ts +1 -0
- package/dist/commands/cloud/env.d.ts +6 -0
- package/dist/commands/cloud/extensions.d.ts +3 -0
- package/dist/commands/cloud/index.d.ts +1 -0
- package/dist/commands/cloud/link.d.ts +5 -0
- package/dist/commands/cloud/orgs.d.ts +1 -0
- package/dist/commands/cloud/power.d.ts +3 -0
- package/dist/commands/cloud/projects.d.ts +13 -0
- package/dist/commands/cloud/resources.d.ts +6 -0
- package/dist/commands/cloud/settings.d.ts +8 -0
- package/dist/commands/init.d.ts +23 -0
- package/dist/commands/skills.d.ts +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +6083 -1819
- package/dist/index.es.js.map +1 -1
- package/dist/utils/package-manager.d.ts +19 -5
- package/dist/utils/project.d.ts +1 -1
- package/package.json +8 -7
- package/templates/overlays/baas/README.md +55 -0
- package/templates/overlays/baas/backend/package.json +31 -0
- package/templates/overlays/baas/backend/src/index.ts +192 -0
- package/templates/overlays/baas/backend/tsconfig.json +19 -0
- package/templates/overlays/baas/package.json +42 -0
- package/templates/overlays/baas/pnpm-workspace.yaml +9 -0
- package/templates/template/.env.example +25 -3
- package/templates/template/backend/functions/hello.ts +1 -1
- package/templates/template/backend/package.json +6 -7
- package/templates/template/backend/src/env.ts +31 -2
- package/templates/template/backend/src/index.ts +21 -16
- package/templates/template/config/collections/index.ts +20 -0
- package/templates/template/config/collections/presets/blank/index.ts +3 -1
- package/templates/template/config/collections/presets/ecommerce/index.ts +3 -1
- package/templates/template/config/collections/users.ts +2 -0
- package/templates/template/config/package.json +1 -2
- package/templates/template/frontend/package.json +2 -3
- package/templates/template/frontend/src/App.tsx +3 -4
- package/templates/template/frontend/vite.config.ts +1 -1
- package/templates/template/gitignore +31 -0
- package/templates/template/npmrc +10 -0
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import productsCollection from "./products.js";
|
|
2
2
|
import categoriesCollection from "./categories.js";
|
|
3
3
|
import ordersCollection from "./orders.js";
|
|
4
|
-
|
|
4
|
+
// Resolves after `rebase init` copies this file into config/collections/,
|
|
5
|
+
// next to the shared users.ts — not from inside presets/, which never runs.
|
|
6
|
+
import usersCollection from "./users.js";
|
|
5
7
|
|
|
6
8
|
export const collections = [productsCollection, categoriesCollection, ordersCollection, usersCollection];
|
|
@@ -66,6 +66,7 @@ roles: ["admin"] }
|
|
|
66
66
|
name: "Password Hash",
|
|
67
67
|
type: "string",
|
|
68
68
|
columnName: "password_hash",
|
|
69
|
+
excludeFromApi: true,
|
|
69
70
|
ui: {
|
|
70
71
|
hideFromCollection: true,
|
|
71
72
|
disabled: { hidden: true }
|
|
@@ -85,6 +86,7 @@ roles: ["admin"] }
|
|
|
85
86
|
name: "Email Verification Token",
|
|
86
87
|
type: "string",
|
|
87
88
|
columnName: "email_verification_token",
|
|
89
|
+
excludeFromApi: true,
|
|
88
90
|
ui: {
|
|
89
91
|
hideFromCollection: true,
|
|
90
92
|
disabled: { hidden: true }
|
|
@@ -4,9 +4,8 @@
|
|
|
4
4
|
"private": true,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@rebasepro/
|
|
8
|
-
"@rebasepro/
|
|
9
|
-
"@rebasepro/plugin-data-enhancement": "workspace:*",
|
|
7
|
+
"@rebasepro/app": "workspace:*",
|
|
8
|
+
"@rebasepro/plugin-ai": "workspace:*",
|
|
10
9
|
"@rebasepro/client": "workspace:*",
|
|
11
10
|
"@rebasepro/admin": "workspace:*",
|
|
12
11
|
"@rebasepro/studio": "workspace:*",
|
|
@@ -3,9 +3,8 @@ import React from "react";
|
|
|
3
3
|
import "@fontsource/jetbrains-mono";
|
|
4
4
|
import "@fontsource/rubik";
|
|
5
5
|
|
|
6
|
-
import { useRebaseAuthController } from "@rebasepro/
|
|
7
|
-
import {
|
|
8
|
-
import { RebaseCMS, RebaseShell } from "@rebasepro/admin";
|
|
6
|
+
import { Rebase, RebaseAuth, useRebaseAuthController } from "@rebasepro/app";
|
|
7
|
+
import { RebaseAdmin, RebaseShell } from "@rebasepro/admin";
|
|
9
8
|
import { ErrorBoundary } from "@rebasepro/ui";
|
|
10
9
|
import { RebaseStudio } from "@rebasepro/studio";
|
|
11
10
|
import { createRebaseClient } from "@rebasepro/client";
|
|
@@ -35,7 +34,7 @@ export function App() {
|
|
|
35
34
|
authController={authController}
|
|
36
35
|
>
|
|
37
36
|
<RebaseAuth />
|
|
38
|
-
<
|
|
37
|
+
<RebaseAdmin
|
|
39
38
|
collections={collections}
|
|
40
39
|
/>
|
|
41
40
|
<RebaseStudio/>
|
|
@@ -3,7 +3,7 @@ import { defineConfig } from "vite";
|
|
|
3
3
|
import react from "@vitejs/plugin-react";
|
|
4
4
|
import svgr from "vite-plugin-svgr";
|
|
5
5
|
import tailwindcss from "@tailwindcss/vite";
|
|
6
|
-
import { rebaseCollectionsPlugin } from "@rebasepro/
|
|
6
|
+
import { rebaseCollectionsPlugin } from "@rebasepro/app/vitePlugin";
|
|
7
7
|
|
|
8
8
|
export default defineConfig({
|
|
9
9
|
envDir: path.resolve(__dirname, ".."),
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# Dependencies
|
|
2
|
+
node_modules/
|
|
3
|
+
|
|
4
|
+
# Build output
|
|
5
|
+
dist/
|
|
6
|
+
build/
|
|
7
|
+
|
|
8
|
+
# Environment (secrets — .env.example is tracked)
|
|
9
|
+
.env
|
|
10
|
+
.env.local
|
|
11
|
+
!.env.example
|
|
12
|
+
|
|
13
|
+
# IDE
|
|
14
|
+
.idea/
|
|
15
|
+
.vscode/
|
|
16
|
+
*.swp
|
|
17
|
+
*.swo
|
|
18
|
+
|
|
19
|
+
# OS
|
|
20
|
+
.DS_Store
|
|
21
|
+
Thumbs.db
|
|
22
|
+
|
|
23
|
+
# Drizzle
|
|
24
|
+
drizzle/meta/
|
|
25
|
+
|
|
26
|
+
# Uploads
|
|
27
|
+
uploads/
|
|
28
|
+
|
|
29
|
+
# Rebase dev
|
|
30
|
+
.rebase-dev-url
|
|
31
|
+
.rebase-dev-port
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# Ensure pnpm links local workspace packages when version specifiers
|
|
2
|
+
# like "*" are used (instead of the pnpm-specific "workspace:*" protocol).
|
|
3
|
+
# This makes the project compatible with both pnpm and npm workspaces.
|
|
4
|
+
link-workspace-packages=true
|
|
5
|
+
|
|
6
|
+
# Disable automatic dependency check before running scripts to prevent background install failures in read-only environments
|
|
7
|
+
verify-deps-before-run=false
|
|
8
|
+
|
|
9
|
+
# Prevent pnpm from prompting for confirmation when purging modules in non-TTY environments (e.g. Docker, CI)
|
|
10
|
+
confirm-modules-purge=false
|