@@ -4,43 +4,121 @@ import { GemberError } from "./errors.js";
44import type { GeneratorFile } from "./types.js" ;
55
66export type Config = {
7- generators ?: {
8- component ?: {
9- classBased ?: boolean ;
10- nested ?: boolean ;
11- path ?: string ;
12- typescript ?: boolean ;
13- } ;
14- "component-test" ?: {
15- path ?: string ;
16- typescript ?: boolean ;
17- } ;
18- helper ?: {
19- classBased ?: boolean ;
20- path ?: string ;
21- typescript ?: boolean ;
22- } ;
23- "helper-test" ?: {
24- path ?: string ;
25- typescript ?: boolean ;
26- } ;
27- modifier ?: {
28- classBased ?: boolean ;
29- path ?: string ;
30- typescript ?: boolean ;
31- } ;
32- "modifier-test" ?: {
33- path ?: string ;
34- typescript ?: boolean ;
35- } ;
36- service ?: {
37- path ?: string ;
38- typescript ?: boolean ;
39- } ;
40- "service-test" ?: {
41- path ?: string ;
42- typescript ?: boolean ;
43- } ;
7+ component ?: {
8+ // Generate a `class-based` component, instead of a `template-only` component:
9+ classBased ?: boolean ;
10+ // Copy the generated component to the clipboard, instead of writing it to disk:
11+ copy ?: boolean ;
12+ // Log the generated component to the console, instead of writing it to disk:
13+ log ?: boolean ;
14+ // The component's name:
15+ name ?: string ;
16+ // Generate a nested colocated component, e.g. `foo/bar/index.gts`:
17+ nested ?: boolean ;
18+ // Generate a component at a custom path, e.g. `--path=src/-private`:
19+ path ?: string ;
20+ // Generate a `.gts` component, instead of a `.gjs` component:
21+ typescript ?: boolean ;
22+ } ;
23+ "component-test" ?: {
24+ // Copy the generated component-test to the clipboard, instead of writing it to disk:
25+ copy ?: boolean ;
26+ // Log the generated component-test to the console, instead of writing it to disk:
27+ log ?: boolean ;
28+ // The component-test's name:
29+ name ?: string ;
30+ // Generate a component-test at a custom path, e.g. `--path=src/-private`:
31+ path ?: string ;
32+ // Generate a `.gts` component-test, instead of a `.gjs` component-test:
33+ typescript ?: boolean ;
34+ } ;
35+ helper ?: {
36+ // Generate a `class-based` helper, instead of a `function-based` helper:
37+ classBased ?: boolean ;
38+ // Copy the generated helper to the clipboard, instead of writing it to disk:
39+ copy ?: boolean ;
40+ // Log the generated helper to the console, instead of writing it to disk:
41+ log ?: boolean ;
42+ // The helper's name:
43+ name ?: string ;
44+ // Generate a helper at a custom path, e.g. `--path=src/-private`:
45+ path ?: string ;
46+ // Generate a `.ts` helper, instead of a `.js` helper:
47+ typescript ?: boolean ;
48+ } ;
49+ "helper-test" ?: {
50+ // Copy the generated helper-test to the clipboard, instead of writing it to disk:
51+ copy ?: boolean ;
52+ // Log the generated helper-test to the console, instead of writing it to disk:
53+ log ?: boolean ;
54+ // The helper-test's name:
55+ name ?: string ;
56+ // Generate a helper-test at a custom path, e.g. `--path=src/-private`:
57+ path ?: string ;
58+ // Generate a `.gts` helper-test, instead of a `.gjs` helper-test:
59+ typescript ?: boolean ;
60+ } ;
61+ modifier ?: {
62+ // Generate a `class-based` modifier, instead of a `function-based` modifier:
63+ classBased ?: boolean ;
64+ // Copy the generated modifier to the clipboard, instead of writing it to disk:
65+ copy ?: boolean ;
66+ // Log the generated modifier to the console, instead of writing it to disk:
67+ log ?: boolean ;
68+ // The modifier's name:
69+ name ?: string ;
70+ // Generate a modifier at a custom path, e.g. `--path=src/-private`:
71+ path ?: string ;
72+ // Generate a `.ts` modifier, instead of a `.js` modifier:
73+ typescript ?: boolean ;
74+ } ;
75+ "modifier-test" ?: {
76+ // Copy the generated modifier-test to the clipboard, instead of writing it to disk:
77+ copy ?: boolean ;
78+ // Log the generated modifier-test to the console, instead of writing it to disk:
79+ log ?: boolean ;
80+ // The modifier-test's name:
81+ name ?: string ;
82+ // Generate a modifier-test at a custom path, e.g. `--path=src/-private`:
83+ path ?: string ;
84+ // Generate a `.gts` modifier-test, instead of a `.gjs` modifier-test:
85+ typescript ?: boolean ;
86+ } ;
87+ service ?: {
88+ // Copy the generated service to the clipboard, instead of writing it to disk:
89+ copy ?: boolean ;
90+ // Log the generated service to the console, instead of writing it to disk:
91+ log ?: boolean ;
92+ // The service's name:
93+ name ?: string ;
94+ // Generate a service at a custom path, e.g. `--path=src/-private`:
95+ path ?: string ;
96+ // Generate a `.ts` service, instead of a `.js` service:
97+ typescript ?: boolean ;
98+ } ;
99+ "service-test" ?: {
100+ // Copy the generated service-test to the clipboard, instead of writing it to disk:
101+ copy ?: boolean ;
102+ // Log the generated service-test to the console, instead of writing it to disk:
103+ log ?: boolean ;
104+ // The service-test's name:
105+ name ?: string ;
106+ // Generate a service-test at a custom path, e.g. `--path=src/-private`:
107+ path ?: string ;
108+ // Generate a `.ts` service-test, instead of a `.js` service-test:
109+ typescript ?: boolean ;
110+ } ;
111+ "acceptance-test" ?: {
112+ // Copy the generated acceptance-test to the clipboard, instead of writing it to disk:
113+ copy ?: boolean ;
114+ // Log the generated acceptance-test to the console, instead of writing it to disk:
115+ log ?: boolean ;
116+ // The acceptance-test's name:
117+ name ?: string ;
118+ // Generate a acceptance-test at a custom path, e.g. `--path=src/-private`:
119+ path ?: string ;
120+ // Generate a `.ts` acceptance-test, instead of a `.js` acceptance-test:
121+ typescript ?: boolean ;
44122 } ;
45123
46124 hooks ?: {
0 commit comments