@rebasepro/cli 0.9.0 → 0.9.1-canary.09aaf62

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.
Files changed (45) hide show
  1. package/README.md +32 -3
  2. package/dist/commands/cloud/auth.d.ts +3 -0
  3. package/dist/commands/cloud/context.d.ts +157 -0
  4. package/dist/commands/cloud/databases.d.ts +1 -0
  5. package/dist/commands/cloud/deploy.d.ts +2 -0
  6. package/dist/commands/cloud/deployments.d.ts +39 -0
  7. package/dist/commands/cloud/domains.d.ts +1 -0
  8. package/dist/commands/cloud/env.d.ts +6 -0
  9. package/dist/commands/cloud/extensions.d.ts +3 -0
  10. package/dist/commands/cloud/index.d.ts +1 -0
  11. package/dist/commands/cloud/link.d.ts +5 -0
  12. package/dist/commands/cloud/orgs.d.ts +1 -0
  13. package/dist/commands/cloud/power.d.ts +4 -0
  14. package/dist/commands/cloud/projects.d.ts +13 -0
  15. package/dist/commands/cloud/resources.d.ts +6 -0
  16. package/dist/commands/cloud/settings.d.ts +8 -0
  17. package/dist/commands/init.d.ts +23 -0
  18. package/dist/commands/skills.d.ts +1 -1
  19. package/dist/index.d.ts +1 -0
  20. package/dist/index.es.js +5359 -1829
  21. package/dist/index.es.js.map +1 -1
  22. package/dist/utils/package-manager.d.ts +19 -5
  23. package/dist/utils/project.d.ts +1 -1
  24. package/package.json +8 -7
  25. package/templates/overlays/baas/README.md +55 -0
  26. package/templates/overlays/baas/backend/package.json +31 -0
  27. package/templates/overlays/baas/backend/src/index.ts +192 -0
  28. package/templates/overlays/baas/backend/tsconfig.json +19 -0
  29. package/templates/overlays/baas/package.json +42 -0
  30. package/templates/overlays/baas/pnpm-workspace.yaml +9 -0
  31. package/templates/template/.env.example +25 -3
  32. package/templates/template/backend/functions/hello.ts +1 -1
  33. package/templates/template/backend/package.json +6 -7
  34. package/templates/template/backend/src/env.ts +31 -2
  35. package/templates/template/backend/src/index.ts +21 -16
  36. package/templates/template/config/collections/index.ts +20 -0
  37. package/templates/template/config/collections/presets/blank/index.ts +3 -1
  38. package/templates/template/config/collections/presets/ecommerce/index.ts +3 -1
  39. package/templates/template/config/collections/users.ts +2 -0
  40. package/templates/template/config/package.json +1 -2
  41. package/templates/template/frontend/package.json +2 -3
  42. package/templates/template/frontend/src/App.tsx +3 -4
  43. package/templates/template/frontend/vite.config.ts +1 -1
  44. package/templates/template/gitignore +31 -0
  45. 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
- import usersCollection from "../../users.js";
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 }
@@ -12,8 +12,7 @@
12
12
  "clean": "rm -rf dist"
13
13
  },
14
14
  "dependencies": {
15
- "@rebasepro/types": "workspace:*",
16
- "@rebasepro/admin": "workspace:*"
15
+ "@rebasepro/types": "workspace:*"
17
16
  },
18
17
  "devDependencies": {
19
18
  "typescript": "^5.9.2"
@@ -4,9 +4,8 @@
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "dependencies": {
7
- "@rebasepro/auth": "workspace:*",
8
- "@rebasepro/core": "workspace:*",
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/auth";
7
- import { Rebase, RebaseAuth } from "@rebasepro/core";
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
- <RebaseCMS
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/core/vitePlugin";
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