mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
0da53a1444
The purpose of the PR is to add the simplest possible integration with Storybook.
It leaves the default Storybook and also adds a custom component to show how it would be used in both the app and Storybook.
Update:
Tested with latest 👉 6.1.1
27 lines
610 B
JSON
27 lines
610 B
JSON
{
|
|
"name": "with-storybook",
|
|
"version": "1.0.0",
|
|
"main": "index.js",
|
|
"scripts": {
|
|
"dev": "next",
|
|
"build": "next build",
|
|
"start": "next start",
|
|
"storybook": "start-storybook -p 6006",
|
|
"build-storybook": "build-storybook"
|
|
},
|
|
"dependencies": {
|
|
"next": "latest",
|
|
"react": "^16.0.0",
|
|
"react-dom": "^16.0.0"
|
|
},
|
|
"license": "ISC",
|
|
"devDependencies": {
|
|
"@storybook/react": "^3.4.7",
|
|
"@storybook/addon-actions": "^3.4.7",
|
|
"@storybook/addon-links": "^3.4.7",
|
|
"@storybook/addons": "^3.4.7",
|
|
"babel-core": "^6.26.3",
|
|
"babel-runtime": "^6.26.0"
|
|
}
|
|
}
|