Skip to content

Commit

Permalink
Chore #49- Upgrade Storybook and dependencies (#50)
Browse files Browse the repository at this point in the history
* Chore #49 - Upgrade sb and deps to 6.0.10

* Chore #49 - Bump up version 0.1.7 --> 0.1.8

* Chore #49 - Add react-jss & update linkColor

* Chore #49 - Add normalize.css

Co-authored-by: Parth Shah <[email protected]>
  • Loading branch information
sam-dassana and parth-dassana authored Aug 18, 2020
1 parent c9825c0 commit a30c2d7
Show file tree
Hide file tree
Showing 18 changed files with 4,834 additions and 4,450 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/chromatic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@ jobs:
# the list of steps that the action will go through
steps:
- uses: actions/checkout@v1
- run: yarn
- name: Run npm install & delete tsconfig.rollup.json
run: |
rm -rf tsconfig.rollup.json
npm install
- uses: chromaui/action@v1
# options required to the GitHub chromatic action
with:
Expand Down
14 changes: 3 additions & 11 deletions .storybook/main.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,9 @@
module.exports = {
stories: ['../src/**/*.stories.(ts|tsx|js|jsx|mdx)'],
addons: [
'@storybook/preset-create-react-app',
'@storybook/addon-actions',
'@storybook/addon-links',
'@storybook/addon-knobs',
{
name: '@storybook/addon-docs',
options: {
configureJSX: true,
babelOptions: {},
sourceLoaderOptions: null
}
}
'@storybook/addon-essentials',
'@storybook/addon-actions',
'@storybook/preset-create-react-app'
]
}
15 changes: 15 additions & 0 deletions .storybook/manager.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { addons } from '@storybook/addons'

addons.setConfig({
isFullscreen: false,
showNav: true,
showPanel: true,
panelPosition: 'bottom',
sidebarAnimations: true,
enableShortcuts: true,
isToolshown: true,
theme: undefined,
selectedPanel: 'Controls',
initialActive: 'sidebar',
showRoots: false
})
24 changes: 24 additions & 0 deletions .storybook/preview.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import { INITIAL_VIEWPORTS } from '@storybook/addon-viewport'
import 'normalize.css'
import '../src/styles/index.css'

export const parameters = {
actions: { argTypesRegex: '^on[A-Z].*' },
// controls: { expanded: true }, // uncomment to display controls with description and defaults
viewport: {
viewports: INITIAL_VIEWPORTS
},
backgrounds: {
default: 'light',
values: [
{
name: 'dark',
value: '#212121'
},
{
name: 'light',
value: '#ffffff'
}
]
}
}
26 changes: 0 additions & 26 deletions .storybook/preview.tsx

This file was deleted.

Loading

0 comments on commit a30c2d7

Please sign in to comment.