@drmhse/authos-cli 0.1.0 → 0.1.2
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 +125 -0
- package/dist/bin.js +653 -16
- package/dist/index.d.ts +6 -1
- package/dist/index.js +653 -16
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ interface AddOptions {
|
|
|
17
17
|
declare function addCommand(templateName?: string, options?: AddOptions): Promise<void>;
|
|
18
18
|
|
|
19
19
|
type Framework = 'react' | 'vue' | 'next' | 'nuxt' | 'unknown';
|
|
20
|
+
type StylingVariant = 'tailwind' | 'css-modules' | 'none';
|
|
20
21
|
/**
|
|
21
22
|
* Detect the project framework from package.json
|
|
22
23
|
*/
|
|
@@ -37,7 +38,11 @@ interface Template {
|
|
|
37
38
|
}
|
|
38
39
|
interface TemplateFile {
|
|
39
40
|
name: string;
|
|
40
|
-
content: Record<Framework, string
|
|
41
|
+
content: Record<StylingVariant, Record<Framework, string>>;
|
|
42
|
+
extraFiles?: Partial<Record<StylingVariant, {
|
|
43
|
+
name: string;
|
|
44
|
+
content: string;
|
|
45
|
+
}[]>>;
|
|
41
46
|
}
|
|
42
47
|
/**
|
|
43
48
|
* Get list of available template names
|