@drmhse/authos-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.
- package/dist/bin.d.ts +2 -0
- package/dist/bin.js +1170 -0
- package/dist/index.d.ts +51 -0
- package/dist/index.js +1157 -0
- package/package.json +55 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
interface InitOptions {
|
|
2
|
+
cwd?: string;
|
|
3
|
+
skipInstall?: boolean;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* Initialize AuthOS in the current project
|
|
7
|
+
*/
|
|
8
|
+
declare function initCommand(options?: InitOptions): Promise<void>;
|
|
9
|
+
|
|
10
|
+
interface AddOptions {
|
|
11
|
+
cwd?: string;
|
|
12
|
+
force?: boolean;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Add a component template to the project
|
|
16
|
+
*/
|
|
17
|
+
declare function addCommand(templateName?: string, options?: AddOptions): Promise<void>;
|
|
18
|
+
|
|
19
|
+
type Framework = 'react' | 'vue' | 'next' | 'nuxt' | 'unknown';
|
|
20
|
+
/**
|
|
21
|
+
* Detect the project framework from package.json
|
|
22
|
+
*/
|
|
23
|
+
declare function detectFramework(cwd: string): Framework;
|
|
24
|
+
/**
|
|
25
|
+
* Get the package name for the detected framework
|
|
26
|
+
*/
|
|
27
|
+
declare function getAdapterPackage(framework: Framework): string | null;
|
|
28
|
+
/**
|
|
29
|
+
* Get the framework display name
|
|
30
|
+
*/
|
|
31
|
+
declare function getFrameworkName(framework: Framework): string;
|
|
32
|
+
|
|
33
|
+
interface Template {
|
|
34
|
+
name: string;
|
|
35
|
+
description: string;
|
|
36
|
+
files: TemplateFile[];
|
|
37
|
+
}
|
|
38
|
+
interface TemplateFile {
|
|
39
|
+
name: string;
|
|
40
|
+
content: Record<Framework, string>;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Get list of available template names
|
|
44
|
+
*/
|
|
45
|
+
declare function getAvailableTemplates(): string[];
|
|
46
|
+
/**
|
|
47
|
+
* Get a template by name
|
|
48
|
+
*/
|
|
49
|
+
declare function getTemplate(name: string): Template | null;
|
|
50
|
+
|
|
51
|
+
export { type Framework, type Template, type TemplateFile, addCommand, detectFramework, getAdapterPackage, getAvailableTemplates, getFrameworkName, getTemplate, initCommand };
|