@@ -6,39 +6,119 @@ import type { GeneratorFile } from "./types.js";
66export type Config = {
77 generators ?: {
88 component ?: {
9+ // Generate a `class-based` component, instead of a `template-only` component:
910 classBased ?: boolean ;
11+ // Copy the generated component to the clipboard, instead of writing it to disk:
12+ copy ?: boolean ;
13+ // Log the generated component to the console, instead of writing it to disk:
14+ log ?: boolean ;
15+ // The component's name:
16+ name ?: string ;
17+ // Generate a nested colocated component, e.g. `foo/bar/index.gts`:
1018 nested ?: boolean ;
19+ // Generate a component at a custom path, e.g. `--path=src/-private`:
1120 path ?: string ;
21+ // Generate a `.gts` component, instead of a `.gjs` component:
1222 typescript ?: boolean ;
1323 } ;
1424 "component-test" ?: {
25+ // Copy the generated component-test to the clipboard, instead of writing it to disk:
26+ copy ?: boolean ;
27+ // Log the generated component-test to the console, instead of writing it to disk:
28+ log ?: boolean ;
29+ // The component-test's name:
30+ name ?: string ;
31+ // Generate a component-test at a custom path, e.g. `--path=src/-private`:
1532 path ?: string ;
33+ // Generate a `.gts` component-test, instead of a `.gjs` component-test:
1634 typescript ?: boolean ;
1735 } ;
1836 helper ?: {
37+ // Generate a `class-based` helper, instead of a `function-based` helper:
1938 classBased ?: boolean ;
39+ // Copy the generated helper to the clipboard, instead of writing it to disk:
40+ copy ?: boolean ;
41+ // Log the generated helper to the console, instead of writing it to disk:
42+ log ?: boolean ;
43+ // The helper's name:
44+ name ?: string ;
45+ // Generate a helper at a custom path, e.g. `--path=src/-private`:
2046 path ?: string ;
47+ // Generate a `.ts` helper, instead of a `.js` helper:
2148 typescript ?: boolean ;
2249 } ;
2350 "helper-test" ?: {
51+ // Copy the generated helper-test to the clipboard, instead of writing it to disk:
52+ copy ?: boolean ;
53+ // Log the generated helper-test to the console, instead of writing it to disk:
54+ log ?: boolean ;
55+ // The helper-test's name:
56+ name ?: string ;
57+ // Generate a helper-test at a custom path, e.g. `--path=src/-private`:
2458 path ?: string ;
59+ // Generate a `.gts` helper-test, instead of a `.gjs` helper-test:
2560 typescript ?: boolean ;
2661 } ;
2762 modifier ?: {
63+ // Generate a `class-based` modifier, instead of a `function-based` modifier:
2864 classBased ?: boolean ;
65+ // Copy the generated modifier to the clipboard, instead of writing it to disk:
66+ copy ?: boolean ;
67+ // Log the generated modifier to the console, instead of writing it to disk:
68+ log ?: boolean ;
69+ // The modifier's name:
70+ name ?: string ;
71+ // Generate a modifier at a custom path, e.g. `--path=src/-private`:
2972 path ?: string ;
73+ // Generate a `.ts` modifier, instead of a `.js` modifier:
3074 typescript ?: boolean ;
3175 } ;
3276 "modifier-test" ?: {
77+ // Copy the generated modifier-test to the clipboard, instead of writing it to disk:
78+ copy ?: boolean ;
79+ // Log the generated modifier-test to the console, instead of writing it to disk:
80+ log ?: boolean ;
81+ // The modifier-test's name:
82+ name ?: string ;
83+ // Generate a modifier-test at a custom path, e.g. `--path=src/-private`:
3384 path ?: string ;
85+ // Generate a `.gts` modifier-test, instead of a `.gjs` modifier-test:
3486 typescript ?: boolean ;
3587 } ;
3688 service ?: {
89+ // Copy the generated service to the clipboard, instead of writing it to disk:
90+ copy ?: boolean ;
91+ // Log the generated service to the console, instead of writing it to disk:
92+ log ?: boolean ;
93+ // The service's name:
94+ name ?: string ;
95+ // Generate a service at a custom path, e.g. `--path=src/-private`:
3796 path ?: string ;
97+ // Generate a `.ts` service, instead of a `.js` service:
3898 typescript ?: boolean ;
3999 } ;
40100 "service-test" ?: {
101+ // Copy the generated service-test to the clipboard, instead of writing it to disk:
102+ copy ?: boolean ;
103+ // Log the generated service-test to the console, instead of writing it to disk:
104+ log ?: boolean ;
105+ // The service-test's name:
106+ name ?: string ;
107+ // Generate a service-test at a custom path, e.g. `--path=src/-private`:
41108 path ?: string ;
109+ // Generate a `.ts` service-test, instead of a `.js` service-test:
110+ typescript ?: boolean ;
111+ } ;
112+ "acceptance-test" ?: {
113+ // Copy the generated acceptance-test to the clipboard, instead of writing it to disk:
114+ copy ?: boolean ;
115+ // Log the generated acceptance-test to the console, instead of writing it to disk:
116+ log ?: boolean ;
117+ // The acceptance-test's name:
118+ name ?: string ;
119+ // Generate a acceptance-test at a custom path, e.g. `--path=src/-private`:
120+ path ?: string ;
121+ // Generate a `.ts` acceptance-test, instead of a `.js` acceptance-test:
42122 typescript ?: boolean ;
43123 } ;
44124 } ;
0 commit comments