Skip to content
This repository was archived by the owner on Apr 5, 2024. It is now read-only.

Commit b393158

Browse files
authored
Merge pull request #5 from FileFighter/feature/storybookSetup
storybook
2 parents f5aaf6d + f277444 commit b393158

26 files changed

+8915
-146
lines changed

webapp_frontend/.storybook/main.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
module.exports = {
2+
"stories": [
3+
"../src/**/*.stories.mdx",
4+
"../src/**/*.stories.@(js|jsx|ts|tsx)"
5+
],
6+
"addons": [
7+
"@storybook/addon-links",
8+
"@storybook/addon-essentials",
9+
"@storybook/preset-create-react-app"
10+
]
11+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
2+
export const parameters = {
3+
actions: { argTypesRegex: "^on[A-Z].*" },
4+
}

webapp_frontend/package-lock.json

Lines changed: 7804 additions & 145 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

webapp_frontend/package.json

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@
2424
"start": "react-scripts start",
2525
"build": "react-scripts build",
2626
"test": "react-scripts test",
27-
"eject": "react-scripts eject"
27+
"eject": "react-scripts eject",
28+
"storybook": "start-storybook -p 6006 -s public --no-dll",
29+
"build-storybook": "build-storybook -s public --no-dll"
2830
},
2931
"eslintConfig": {
3032
"extends": "react-app"
@@ -40,5 +42,18 @@
4042
"last 1 firefox version",
4143
"last 1 safari version"
4244
]
45+
},
46+
"devDependencies": {
47+
"@babel/core": "^7.12.3",
48+
"@storybook/addon-actions": "^6.0.28",
49+
"@storybook/addon-essentials": "^6.0.28",
50+
"@storybook/addon-links": "^6.0.28",
51+
"@storybook/addon-storyshots": "^6.0.28",
52+
"@storybook/node-logger": "^6.0.28",
53+
"@storybook/preset-create-react-app": "^3.1.5",
54+
"@storybook/react": "^6.0.28",
55+
"babel-loader": "8.1.0",
56+
"react-is": "^17.0.1",
57+
"react-test-renderer": "^17.0.1"
4358
}
4459
}

0 commit comments

Comments
 (0)