Skip to content

Commit

Permalink
feat(add storybook): add storybook to the project
Browse files Browse the repository at this point in the history
add storybook to the project
change folder structure

Signed-off-by: Niloy Sikdar <niloysikdar30@gmail.com>
  • Loading branch information
niloysikdar committed Jun 18, 2022
1 parent e897759 commit 5d9f3fd
Show file tree
Hide file tree
Showing 6 changed files with 8,481 additions and 166 deletions.
9 changes: 9 additions & 0 deletions .storybook/main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
module.exports = {
stories: ['../src/**/*.stories.mdx', '../src/**/*.stories.@(js|jsx|ts|tsx)'],
addons: [
'@storybook/addon-links',
'@storybook/addon-essentials',
'@storybook/addon-interactions',
],
framework: '@storybook/react',
};
9 changes: 9 additions & 0 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
export const parameters = {
actions: { argTypesRegex: '^on[A-Z].*' },
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/,
},
},
};
17 changes: 15 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@
"pretty": "prettier --check .",
"pretty:fix": "prettier --write .",
"lint-staged": "lint-staged",
"release": "semantic-release --branches main"
"release": "semantic-release --branches main",
"storybook": "start-storybook -p 6006",
"build-storybook": "build-storybook"
},
"lint-staged": {
"src/*.{ts,tsx}": [
Expand All @@ -46,15 +48,25 @@
"react-dom": ">=16.8"
},
"devDependencies": {
"@babel/core": "^7.18.5",
"@commitlint/cli": "^17.0.2",
"@commitlint/config-conventional": "^17.0.2",
"@semantic-release/changelog": "^6.0.1",
"@semantic-release/git": "^10.0.1",
"@storybook/addon-actions": "^6.5.9",
"@storybook/addon-essentials": "^6.5.9",
"@storybook/addon-interactions": "^6.5.9",
"@storybook/addon-links": "^6.5.9",
"@storybook/builder-webpack4": "^6.5.9",
"@storybook/manager-webpack4": "6.5.9",
"@storybook/react": "^6.5.9",
"@storybook/testing-library": "^0.0.13",
"@types/node": "^18.0.0",
"@types/react": "^18.0.14",
"@types/react-dom": "^18.0.5",
"@typescript-eslint/eslint-plugin": "^5.28.0",
"@typescript-eslint/parser": "^5.28.0",
"babel-loader": "^8.2.5",
"cz-conventional-changelog": "3.3.0",
"eslint": "^8.17.0",
"eslint-config-prettier": "^8.5.0",
Expand Down Expand Up @@ -84,5 +96,6 @@
"email-builder",
"react-email-builder",
"html-email"
]
],
"dependencies": {}
}
File renamed without changes.
1 change: 1 addition & 0 deletions src/components/Email/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { Email } from './Email';
Loading

0 comments on commit 5d9f3fd

Please sign in to comment.