Updates to Storybook for home page makeover. (#6130)

This commit is contained in:
Nick Taylor 2020-02-18 09:42:37 -05:00 committed by GitHub
parent e4115e5781
commit a7dc893f50
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 16 additions and 2 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 470 KiB

View file

@ -1,5 +1,6 @@
import { configure } from '@storybook/react';
import '../../assets/stylesheets/minimal.scss';
import './storybook.scss';
// automatically import all files ending in *.stories.js
const req = require.context('../', true, /.stories.jsx$/);

View file

@ -0,0 +1,13 @@
body {
margin: 0;
padding: 0;
// This should be Storybook's root element.
& > :first-child {
display: grid;
grid-template-rows: 1fr;
grid-template-columns: 1fr;
justify-items: center;
align-items: center;
}
}

View file

@ -11,8 +11,8 @@
"scripts": {
"test": "jest app/javascript/ --coverage",
"test:watch": "jest app/javascript/ --watch",
"storybook": "start-storybook -p 6006 -c app/javascript/.storybook -s app/javascript/.storybook/assets",
"build-storybook": "build-storybook -c app/javascript/.storybook -s app/javascript/.storybook/assets",
"storybook": "start-storybook -p 6006 -c app/javascript/.storybook -s app/assets",
"build-storybook": "build-storybook -c app/javascript/.storybook -s app/assets",
"api-docs:serve": "yarn redoc-cli serve docs/api_v0.yml --options.pathInMiddlePanel --options.jsonSampleExpandLevel=all --options.menuToggle -t docs/api_template.hbs --watch"
},
"husky": {