Use Storybook to preview React components

This commit is contained in:
Yuya Ochiai 2018-04-11 21:55:29 +09:00
parent 0cd7f4d66e
commit 6fa479f24f
2 changed files with 2055 additions and 49 deletions

View file

@ -20,6 +20,7 @@
"build:main": "webpack --bail --config webpack.config.main.js",
"build:renderer": "webpack --bail --config webpack.config.renderer.js",
"start": "electron src --disable-dev-mode",
"storybook": "start-storybook -p 9001 -c src/.storybook",
"clean": "rm -rf release/ node_modules/ src/node_modules/ && find src -name '*_bundle.js' | xargs rm",
"watch": "run-p watch:*",
"watch:main": "node scripts/watch_main_and_preload.js",
@ -37,6 +38,7 @@
},
"devDependencies": {
"7zip-bin": "^2.4.1",
"@storybook/react": "^3.4.1",
"babel-core": "^6.26.0",
"babel-eslint": "^8.2.1",
"babel-loader": "^7.1.2",
@ -58,6 +60,8 @@
"mocha": "^5.0.0",
"mocha-circleci-reporter": "0.0.2",
"npm-run-all": "^4.1.2",
"react": "^16.2.0",
"react-dom": "^16.2.0",
"spectron": "~3.8.0",
"style-loader": "^0.20.1",
"url-loader": "^0.6.2",

2100
yarn.lock

File diff suppressed because it is too large Load diff