diff --git a/.storybook/config.js b/.storybook/config.js index 3543021..639b168 100644 --- a/.storybook/config.js +++ b/.storybook/config.js @@ -1,7 +1,9 @@ import { configure } from '@storybook/react'; +// automatically import all files ending in *.stories.js +const req = require.context('../stories', true, /\.stories\.js$/); function loadStories() { - require('../src/stories'); + req.keys().forEach(filename => req(filename)); } configure(loadStories, module); diff --git a/package.json b/package.json index 5f88ce3..4f252b6 100644 --- a/package.json +++ b/package.json @@ -1,37 +1,44 @@ { "name": "create-material-ui-app", - "version": "0.9.0", + "version": "1.0.0", "private": true, "dependencies": { - "@material-ui/core": "^3.8.2", - "prop-types": "^15.6.2", - "react": "^16.7.0", - "react-dom": "^16.7.0", - "react-scripts": "1.1.5" + "@material-ui/core": "^3.9.3", + "react": "^16.8.6", + "react-dom": "^16.8.6", + "react-scripts": "3.0.0" }, "scripts": { "start": "react-scripts start", "build": "react-scripts build", - "test": "react-scripts test --env=jsdom", + "test": "react-scripts test", "eject": "react-scripts eject", - "storybook": "start-storybook -p 9001 -s public --ci", - "build-storybook": "build-storybook -s public" + "storybook": "start-storybook -p 6006", + "build-storybook": "build-storybook" }, - "devDependencies": { - "@babel/core": "^7.0.0", - "@storybook/addon-actions": "4.0.12", - "@storybook/addon-links": "4.0.12", - "@storybook/addon-storyshots": "4.0.12", - "@storybook/addons": "4.0.12", - "@storybook/react": "4.0.12", - "react-test-renderer": "^16.7.0", - "storybook-addon-material-ui": "0.9.0-alpha.17", - "babel-loader": "8.0.4" + "eslintConfig": { + "extends": "react-app" + }, + "browserslist": { + "production": [ + ">0.2%", + "not dead", + "not op_mini all" + ], + "development": [ + "last 1 chrome version", + "last 1 firefox version", + "last 1 safari version" + ] }, - "browserslist": [ - ">0.2%", - "not dead", - "not ie <= 11", - "not op_mini all" - ] + "devDependencies": { + "@babel/core": "^7.4.4", + "@storybook/addon-actions": "^5.0.11", + "@storybook/addon-links": "^5.0.11", + "@storybook/addons": "^5.0.11", + "@storybook/react": "^5.0.11", + "babel-loader": "^8.0.5", + "storybook-addon-material-ui": "0.9.0-alpha.18" + } } + diff --git a/public/index.html b/public/index.html index ed0ebaf..dd1ccfd 100644 --- a/public/index.html +++ b/public/index.html @@ -1,15 +1,15 @@
- - - + + + + - - +