northants-design-system 1.6.6 → 2.0.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -109,13 +109,23 @@ const MyComponent = () =>
109
109
  There is a util file under `util` called `create-component.js`. Instead of copy pasting components to create a new component, you can just run this command to generate all the files you need to start building out a new component. To use it:
110
110
 
111
111
  ```
112
- npm run generate NewComponentName
112
+ npm run generate NewComponentName [<<ComponentType>>]
113
113
  ```
114
114
 
115
115
  This will generate:
116
116
 
117
117
  ```
118
- /src
118
+ /src/library/components/
119
+ /NewComponentName
120
+ NewComponentName.tsx
121
+ NewComponentName.stories.tsx
122
+ NewComponentName.test.tsx
123
+ NewComponentName.types.ts
124
+ NewComponentName.styles.ts
125
+ ```
126
+
127
+ ```
128
+ /src/library/<<ComponentType>>/
119
129
  /NewComponentName
120
130
  NewComponentName.tsx
121
131
  NewComponentName.stories.tsx