Skip to content

Commit

Permalink
feat(Storybook): Add Story source tab add on
Browse files Browse the repository at this point in the history
  • Loading branch information
thyhjwb6 committed Dec 1, 2020
1 parent e5312cb commit 31d1952
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/react-component-library/.storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ module.exports = {
'@storybook/addon-actions',
'@storybook/addon-links',
'@storybook/addon-knobs',
{
name: '@storybook/addon-storysource',
options: {
loaderOptions: {
injectStoryParameters: false,
},
},
},
'@storybook/preset-scss',
],
}
1 change: 1 addition & 0 deletions packages/react-component-library/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
"@storybook/addon-links": "^6.0.18",
"@storybook/addon-storyshots": "^6.0.21",
"@storybook/addon-storyshots-puppeteer": "^6.0.21",
"@storybook/addon-storysource": "^6.1.9",
"@storybook/addons": "^6.0.18",
"@storybook/preset-scss": "^1.0.2",
"@storybook/react": "^6.0.18",
Expand Down
42 changes: 42 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3302,6 +3302,26 @@
regenerator-runtime "^0.13.7"
ts-dedent "^2.0.0"

"@storybook/addon-storysource@^6.1.9":
version "6.1.9"
resolved "https://registry.yarnpkg.com/@storybook/addon-storysource/-/addon-storysource-6.1.9.tgz#9f7c50522b4de4bc90508a3882ba473bec82f435"
integrity sha512-xG3UAHRFfdn7dvoOjlvIHUNWgMPRLy87qjjHgmdW0jWyvGEtT7k10IRGgnozXp64ETy8dAnIyt3kmRUwXj/pkg==
dependencies:
"@storybook/addons" "6.1.9"
"@storybook/api" "6.1.9"
"@storybook/client-logger" "6.1.9"
"@storybook/components" "6.1.9"
"@storybook/router" "6.1.9"
"@storybook/source-loader" "6.1.9"
"@storybook/theming" "6.1.9"
core-js "^3.0.1"
estraverse "^4.2.0"
loader-utils "^2.0.0"
prettier "~2.0.5"
prop-types "^15.7.2"
react-syntax-highlighter "^13.5.0"
regenerator-runtime "^0.13.7"

"@storybook/addons@6.1.2":
version "6.1.2"
resolved "https://registry.yarnpkg.com/@storybook/addons/-/addons-6.1.2.tgz#e073d4d930d84cb5d54cef5bd4376724369b56de"
Expand Down Expand Up @@ -3865,6 +3885,23 @@
core-js "^3.6.5"
find-up "^4.1.0"

"@storybook/source-loader@6.1.9":
version "6.1.9"
resolved "https://registry.yarnpkg.com/@storybook/source-loader/-/source-loader-6.1.9.tgz#10eebf12ecd7baa70e51f368c41b89b4b5084eb1"
integrity sha512-2h3TS1O9qJ0xmOOJrWxY9ODEFK0/RLxEmWcXngWAcH1ZrHAuz6UcEatO2bIgykrorf9xKqqk7/AYyE9KxW668A==
dependencies:
"@storybook/addons" "6.1.9"
"@storybook/client-logger" "6.1.9"
"@storybook/csf" "0.0.1"
core-js "^3.0.1"
estraverse "^4.2.0"
global "^4.3.2"
loader-utils "^2.0.0"
lodash "^4.17.15"
prettier "~2.0.5"
regenerator-runtime "^0.13.7"
source-map "^0.7.3"

"@storybook/theming@6.1.2":
version "6.1.2"
resolved "https://registry.yarnpkg.com/@storybook/theming/-/theming-6.1.2.tgz#55fb60017acdf952450cc0cb9b530d36aa039178"
Expand Down Expand Up @@ -18727,6 +18764,11 @@ prettier@^2.0.5, prettier@^2.1.2:
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.2.0.tgz#8a03c7777883b29b37fb2c4348c66a78e980418b"
integrity sha512-yYerpkvseM4iKD/BXLYUkQV5aKt4tQPqaGW6EsZjzyu0r7sVZZNPJW4Y8MyKmicp6t42XUPcBVA+H6sB3gqndw==

prettier@~2.0.5:
version "2.0.5"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.0.5.tgz#d6d56282455243f2f92cc1716692c08aa31522d4"
integrity sha512-7PtVymN48hGcO4fGjybyBSIWDsLU4H4XlvOHfq91pz9kkGlonzwTfYkaIEwiRg/dAJF9YlbsduBAgtYLi+8cFg==

pretty-bytes@^5.1.0, pretty-bytes@^5.3.0, pretty-bytes@^5.4.1:
version "5.4.1"
resolved "https://registry.yarnpkg.com/pretty-bytes/-/pretty-bytes-5.4.1.tgz#cd89f79bbcef21e3d21eb0da68ffe93f803e884b"
Expand Down

0 comments on commit 31d1952

Please sign in to comment.