@galaxy-stack/orbit-cli 0.1.0

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.
@@ -0,0 +1,34 @@
1
+ export declare function controllerTemplate(name: string, className: string): string;
2
+ export declare function serviceTemplate(name: string, className: string): string;
3
+ export declare function moduleTemplate(name: string, className: string): string;
4
+ export declare function guardTemplate(name: string, className: string): string;
5
+ export declare function pipeTemplate(name: string, className: string): string;
6
+ export declare function interceptorTemplate(name: string, className: string): string;
7
+ export declare function middlewareTemplate(name: string, className: string): string;
8
+ export declare function filterTemplate(name: string, className: string): string;
9
+ export declare function resolverTemplate(name: string, className: string): string;
10
+ export interface GraphqlResourceFiles {
11
+ resolver: string;
12
+ service: string;
13
+ entity: string;
14
+ input: string;
15
+ module: string;
16
+ }
17
+ export declare function graphqlResourceTemplate(name: string, className: string): GraphqlResourceFiles;
18
+ export interface MicroserviceResourceFiles {
19
+ handler: string;
20
+ service: string;
21
+ module: string;
22
+ client: string;
23
+ }
24
+ export declare function microserviceTemplate(name: string, className: string): string;
25
+ export declare function microserviceResourceTemplate(name: string, className: string): MicroserviceResourceFiles;
26
+ export interface ResourceFiles {
27
+ controller: string;
28
+ service: string;
29
+ module: string;
30
+ dto: string;
31
+ }
32
+ export declare function resourceTemplate(name: string, className: string): ResourceFiles;
33
+ export declare const templates: Record<string, (name: string, className: string) => string>;
34
+ export declare const schematicAliases: Record<string, string>;
@@ -0,0 +1,6 @@
1
+ export declare function addImportToModule(modulePath: string, importName: string, importPath: string, arrayName: 'imports' | 'controllers' | 'providers' | 'exports'): Promise<{
2
+ success: boolean;
3
+ message: string;
4
+ }>;
5
+ export declare function findNearestModule(startPath: string): Promise<string | null>;
6
+ export declare function formatModuleUpdate(moduleName: string, importName: string, arrayName: string): string;
package/package.json ADDED
@@ -0,0 +1,30 @@
1
+ {
2
+ "name": "@galaxy-stack/orbit-cli",
3
+ "version": "0.1.0",
4
+ "description": "Orbit CLI - scaffolding and code generation for the Orbit framework",
5
+ "bin": {
6
+ "orbit": "./dist/index.js"
7
+ },
8
+ "main": "./dist/index.js",
9
+ "types": "./dist/index.d.ts",
10
+ "scripts": {
11
+ "build": "bun build ./src/index.ts --outdir ./dist --target bun && bun run build:types",
12
+ "dev": "bun --watch src/index.ts",
13
+ "typecheck": "tsc --noEmit",
14
+ "build:types": "bash ../../scripts/build-types.sh cli"
15
+ },
16
+ "dependencies": {
17
+ "commander": "^12.0.0",
18
+ "chalk": "^5.0.0",
19
+ "ora": "^8.0.0"
20
+ },
21
+ "devDependencies": {
22
+ "@types/bun": "latest",
23
+ "typescript": "^5.0.0"
24
+ },
25
+ "license": "MIT",
26
+ "files": [
27
+ "dist",
28
+ "README.md"
29
+ ]
30
+ }