@rebasepro/cli 0.0.1-canary.1 → 0.0.1-canary.3263433
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/dist/commands/auth.d.ts +1 -0
- package/dist/commands/cli.test.d.ts +1 -0
- package/dist/commands/db.d.ts +1 -0
- package/dist/commands/dev.d.ts +1 -0
- package/dist/commands/dev.test.d.ts +1 -0
- package/dist/commands/doctor.d.ts +1 -0
- package/dist/commands/generate_sdk.d.ts +18 -0
- package/dist/commands/init.d.ts +4 -0
- package/dist/commands/init.test.d.ts +1 -0
- package/dist/commands/schema.d.ts +1 -0
- package/dist/index.cjs +1064 -35
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +5 -0
- package/dist/index.es.js +1066 -34
- package/dist/index.es.js.map +1 -1
- package/dist/utils/project.d.ts +45 -0
- package/dist/utils/project.test.d.ts +1 -0
- package/package.json +19 -11
- package/templates/template/.dockerignore +28 -0
- package/templates/template/.env.example +96 -0
- package/templates/template/README.md +84 -17
- package/templates/template/backend/Dockerfile +55 -10
- package/templates/template/backend/drizzle.config.ts +24 -4
- package/templates/template/backend/functions/hello.ts +52 -0
- package/templates/template/backend/package.json +30 -34
- package/templates/template/backend/src/env.ts +52 -0
- package/templates/template/backend/src/index.ts +113 -99
- package/templates/template/backend/tsconfig.json +1 -1
- package/templates/template/config/collections/authors.ts +45 -0
- package/templates/template/config/collections/index.ts +5 -0
- package/templates/template/config/collections/posts.ts +91 -0
- package/templates/template/config/collections/tags.ts +27 -0
- package/templates/template/config/package.json +28 -0
- package/templates/template/docker-compose.yml +49 -13
- package/templates/template/frontend/Dockerfile +36 -14
- package/templates/template/frontend/nginx.conf +40 -0
- package/templates/template/frontend/package.json +9 -10
- package/templates/template/frontend/src/App.tsx +24 -110
- package/templates/template/frontend/src/index.css +15 -1
- package/templates/template/frontend/src/main.tsx +2 -2
- package/templates/template/frontend/vite.config.ts +33 -3
- package/templates/template/package.json +12 -16
- package/templates/template/pnpm-workspace.yaml +4 -0
- package/templates/template/scripts/example.ts +91 -0
- package/templates/template/.env.template +0 -31
- package/templates/template/backend/scripts/db-generate.ts +0 -60
- package/templates/template/shared/collections/index.ts +0 -3
- package/templates/template/shared/collections/posts.ts +0 -53
- package/templates/template/shared/package.json +0 -28
- /package/templates/template/{shared → config}/index.ts +0 -0
- /package/templates/template/{shared → config}/tsconfig.json +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function authCommand(subcommand: string | undefined, rawArgs: string[]): Promise<void>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function dbCommand(subcommand: string | undefined, rawArgs: string[]): Promise<void>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function devCommand(rawArgs: string[]): Promise<void>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function doctorCommand(rawArgs: string[]): Promise<void>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CLI command: generate-sdk
|
|
3
|
+
*
|
|
4
|
+
* Reads collection definitions from a specified directory (default: ./config/collections),
|
|
5
|
+
* generates a typed JS SDK, and writes it to the output directory (default: ./generated/sdk).
|
|
6
|
+
*
|
|
7
|
+
* Uses jiti for dynamic TypeScript import of collection files.
|
|
8
|
+
*/
|
|
9
|
+
interface GenerateSDKArgs {
|
|
10
|
+
collectionsDir: string;
|
|
11
|
+
output: string;
|
|
12
|
+
cwd: string;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Main entry point for the generate-sdk command.
|
|
16
|
+
*/
|
|
17
|
+
export declare function generateSdkCommand(args: GenerateSDKArgs): Promise<void>;
|
|
18
|
+
export {};
|
package/dist/commands/init.d.ts
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
export interface InitOptions {
|
|
2
2
|
projectName: string;
|
|
3
3
|
git: boolean;
|
|
4
|
+
installDeps: boolean;
|
|
4
5
|
targetDirectory: string;
|
|
5
6
|
templateDirectory: string;
|
|
7
|
+
databaseUrl?: string;
|
|
8
|
+
introspect?: boolean;
|
|
6
9
|
}
|
|
7
10
|
export declare function createRebaseApp(rawArgs: string[]): Promise<void>;
|
|
11
|
+
export declare function configureEnvFile(targetDirectory: string, databaseUrl?: string): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function schemaCommand(subcommand: string | undefined, rawArgs: string[]): Promise<void>;
|