-
-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: restructuring design system react component code into folders #114
Conversation
@@ -14,6 +14,9 @@ module.exports = merge(baseConfig, { | |||
// The display name when running multiple projects | |||
displayName, | |||
|
|||
// Add coverage ignore patterns | |||
coveragePathIgnorePatterns: ['/node_modules/', 'index.ts'], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ignoring index files from testing coverage
f2ea1a5
to
f0ecfeb
Compare
@@ -14,6 +14,9 @@ module.exports = merge(baseConfig, { | |||
// The display name when running multiple projects | |||
displayName, | |||
|
|||
// Add coverage ignore patterns | |||
coveragePathIgnorePatterns: ['index.ts'], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ignoring index files from test coverage as they only re-export components. We could add tests for these in the future, but will ignore them for now.
@@ -0,0 +1,2 @@ | |||
export { Button } from './Button'; | |||
export type { ButtonProps } from './Button'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adding index file for Button
export type { TextProps } from './text'; | ||
|
||
export { Button } from './button'; | ||
export type { ButtonProps } from './button'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adding root index file in components folder
@@ -0,0 +1,2 @@ | |||
export { Text, TextVariant } from './Text'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Exporting Text and Text types
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removing unnecessary index test file as we are now ignoring index files from testing coverage
Description
This PR restructures the existing example components within the
design-system-react
package by moving them into individual component folders. This organization update aims to prepare for the addition ofText
and other new components, promoting better organization and modularity within the component library. This change facilitates easier navigation and scalability as new components are added.Related Issues
Fixes: N/A
Manual Testing Steps
yarn storybook
yarn build
ensure that components are still builtScreenshots/Recordings
Before
before720.mov
After
after720.mov
Pre-merge Author Checklist
Pre-merge Reviewer Checklist