Skip to content

Commit 2ebb8c6

Browse files
committed
Document the choices config option
1 parent b69ab9d commit 2ebb8c6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ const atomicGenerator =
5858
require("@a9g/plop-generator-react-atomic-component").default;
5959

6060
const defaultConfig = {
61+
choices: ["Atoms", "Molecules", "Organisms", "Templates", "Pages"],
6162
createIndex: true,
6263
functional: true,
6364
basePath: "src/ui/components",
@@ -103,6 +104,7 @@ src
103104

104105
```typescript
105106
export interface GeneratorConfig {
107+
choices: string[]; //modify the default atomic naming choices
106108
createIndex: boolean; //create an index file
107109
functional: boolean; //should the template be functional or class based?
108110
basePath: string; //where do you want to store the generated files

0 commit comments

Comments
 (0)