Skip to content

add-storybook#161

Open
Czaroos wants to merge 21 commits intomasterfrom
add-storybook
Open

add-storybook#161
Czaroos wants to merge 21 commits intomasterfrom
add-storybook

Conversation

@Czaroos
Copy link
Collaborator

@Czaroos Czaroos commented Jan 8, 2021

  • set up and configure storybook
  • add ui directory to stories

MISSING:

  • select component
  • tree component

@Czaroos Czaroos requested a review from polubis January 8, 2021 19:22
Copy link
Owner

@polubis polubis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work. A few things to improve

@@ -0,0 +1,48 @@
const path = require('path');
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should create file which is called webpack utils - and in this file we exporting only pure functions which return configuration objects for scss, tsx, etc and we should use this file in main.js and also webpack.config.js.

This approach will reduce issues after webpack refactor or version update in future

"@babel/core": "^7.8.3",
"@babel/preset-env": "^7.8.3",
"@babel/preset-react": "^7.8.3",
"@babel/preset-typescript": "^7.12.7",
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This lib is needed by storybook ?

addons: ['@storybook/addon-links', '@storybook/addon-essentials'],
webpackFinal: async (config, mode) => {
config.resolve.plugins.push(new TsConfigPaths({}));
config.resolve.alias['styles'] = path.resolve(__dirname, '../src/styles');
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can add variable for ../src/styles - just suggestion

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants