Skip to content

Commit 431d1ad

Browse files
committed
move all storybooks and all its packages to a separate directory so as to keep the main root package.json clean
1 parent 0c35197 commit 431d1ad

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+21293
-80
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,7 @@
33

44
/node_modules/
55
/vendor/
6+
/src/storybook/stories/assets/
7+
68
.phpunit.result.cachecghooks.lock
79

package.json

-8
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,6 @@
5757
},
5858
"devDependencies": {
5959
"@babel/core": "^7.20.7",
60-
"@storybook/addon-actions": "^6.5.15",
61-
"@storybook/addon-essentials": "^6.5.15",
62-
"@storybook/addon-interactions": "^6.5.15",
63-
"@storybook/addon-links": "^6.5.15",
64-
"@storybook/builder-webpack5": "^6.5.15",
65-
"@storybook/manager-webpack5": "^6.5.15",
66-
"@storybook/react": "^6.5.15",
67-
"@storybook/testing-library": "^0.0.13",
6860
"@types/jest": "^29.5.0",
6961
"@wordpress/api-fetch": "^6.21.0",
7062
"@wordpress/babel-preset-default": "^7.8.0",

src/stories/docs/database-schema.md

-13
This file was deleted.

src/storybook/.npmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
legacy-peer-deps=true

.storybook/main.js renamed to src/storybook/.storybook/main.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
const stories = ['../src/stories/**/*.@(js|tsx|mdx)'].filter(Boolean);
1+
const stories = ['../stories/**/*.@(js|tsx|mdx)'].filter(Boolean);
22

33
module.exports = {
44
core: {
55
builder: 'webpack5',
66
},
77
stories,
88
addons: [
9-
'@storybook/addon-actions',
109
'@storybook/addon-essentials',
1110
'@storybook/addon-interactions',
1211
'@storybook/addon-links',
File renamed without changes.

src/storybook/.storybook/preview.js

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
export const parameters = {
2+
actions: { argTypesRegex: "^on[A-Z].*" },
3+
controls: {
4+
matchers: {
5+
color: /(background|color)$/i,
6+
date: /Date$/,
7+
},
8+
},
9+
}

.storybook/wp-notify-theme.js renamed to src/storybook/.storybook/wp-notify-theme.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { create } from '@storybook/theming';
2-
import Logo from '../src/stories/assets/logo.svg'
2+
import Logo from '../stories/assets/logo.svg';
33

44
export default create({
55
base: 'light',

0 commit comments

Comments
 (0)