Skip to content

Commit

Permalink
Updated loader of storybook to include context stories and 'All' stor…
Browse files Browse the repository at this point in the history
…ies (grommet#4658)

* Updated loader of storybook to include context stories and 'All' stories.

* Loaded missing typescript stories
  • Loading branch information
ShimiSun committed Oct 27, 2020
1 parent c4300ef commit 1e1f967
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion storybook/main.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
module.exports = {
addons: ['@storybook/addon-storysource'],
stories: ['../src/js/components/**/stories/*.(ts|tsx|js|jsx)'],
stories: [
'../src/js/components/**/stories/typescript/*.tsx',
'../src/js/components/**/stories/*.(ts|tsx|js|jsx)',
'../src/js/components/**/*stories.js',
'../src/js/contexts/**/*stories.js',
'../src/js/contexts/**/stories/typescript/*.tsx',
'../src/js/contexts/**/stories/*.(ts|tsx|js|jsx)',
'../src/js/all/**/stories/*.(ts|tsx|js|jsx)',
],
};

0 comments on commit 1e1f967

Please sign in to comment.