File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ const atomicGenerator =
3434
3535const defaultConfig = {
3636 createIndex: true ,
37+ createStyles: true ,
3738 functional: true ,
3839 basePath: " src/ui/components" ,
3940 withClassnameInterfaceImportPath: " /framework/ui" , // make sure to configure this path
9596 ├── $ComponentName.tsx
9697 ├── $ComponentName.test.tsx (optional)
9798 ├── $ComponentName.stories.tsx (optional)
98- ├── $ComponentName.styles.tsx (optional)
99+ ├── $ComponentName.styles.ts (optional)
99100 └── index.tsx (optional)
100101```
101102
104105``` typescript
105106export interface GeneratorConfig {
106107 createIndex: boolean ; // create an index file
108+ createStyles: boolean ; // create a styles file
107109 functional: boolean ; // should the template be functional or class based?
108110 basePath: string ; // where do you want to store the generated files
109111 withClassnameInterfaceImportPath: string ; // from where can we import the classname interface
You can’t perform that action at this time.
0 commit comments