Skip to content

Commit

Permalink
ui v2: storybook upgrade and config improvements (#695)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhochman authored Nov 19, 2020
1 parent 130a94c commit 1b49ada
Show file tree
Hide file tree
Showing 7 changed files with 987 additions and 453 deletions.
12 changes: 10 additions & 2 deletions frontend/.storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,17 @@ module.exports = {
stories: [
"../packages/**/*.stories.@(tsx|jsx)",
],
typescript: {
reactDocgen: 'react-docgen-typescript',
reactDocgenTypescriptOptions: {
compilerOptions: {
allowSyntheticDefaultImports: false,
esModuleInterop: false,
},
}
},
addons: [
"@storybook/addon-actions",
"@storybook/addon-links",
"@storybook/addon-essentials",
"@storybook/addon-links",
],
}
2 changes: 1 addition & 1 deletion frontend/.yarnrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
# yarn lockfile v1


yarn-path ".yarn/releases/yarn-1.22.4.js"
yarn-path ".yarn/releases/yarn-1.22.5.js"
12 changes: 6 additions & 6 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,13 @@
"devDependencies": {
"@babel/core": "^7.9.0",
"@material-ui/core": "^4.11.0",
"@storybook/addon-actions": "^6.0.21",
"@storybook/addon-essentials": "^6.0.21",
"@storybook/addon-links": "^6.0.21",
"@storybook/node-logger": "^6.0.21",
"@storybook/addon-actions": "^6.1.0",
"@storybook/addon-essentials": "^6.1.0",
"@storybook/addon-links": "^6.1.1",
"@storybook/node-logger": "^6.1.1",
"@storybook/preset-typescript": "^3.0.0",
"@storybook/react": "^6.0.21",
"@storybook/theming": "^6.0.22",
"@storybook/react": "^6.1.0",
"@storybook/theming": "^6.1.1",
"babel-loader": "^8.1.0",
"lerna": "^3.22.1",
"license-checker": "^25.0.1",
Expand Down
2 changes: 1 addition & 1 deletion frontend/packages/core/src/button.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from "react";
import * as React from "react";
import styled from "@emotion/styled";
import type { ButtonProps as MuiButtonProps, GridJustification } from "@material-ui/core";
import { Button as MuiButton, Grid, IconButton } from "@material-ui/core";
Expand Down
2 changes: 1 addition & 1 deletion frontend/packages/core/src/stories/button.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from "react";
import * as React from "react";
import type { Meta } from "@storybook/react";

import type { ButtonProps } from "../button";
Expand Down
1,408 changes: 967 additions & 441 deletions frontend/yarn.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion tools/install-yarn.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

YARN_VERSION="1.22.4"
YARN_VERSION="1.22.5"
ROOT_DEST_DIR="$PWD/frontend"
DEST_DIR="$ROOT_DEST_DIR/.yarn/releases"
DEST_FILE="${DEST_DIR}/yarn-${YARN_VERSION}.js"
Expand Down

0 comments on commit 1b49ada

Please sign in to comment.