Skip to content

Commit 1c5150e

Browse files
committed
Document createStyles toggle
1 parent 640cc5e commit 1c5150e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ const atomicGenerator =
3434

3535
const 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
@@ -95,7 +96,7 @@ src
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

@@ -104,6 +105,7 @@ src
104105
```typescript
105106
export 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

0 commit comments

Comments
 (0)