-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate storybook to 6.2.9 #18693
Migrate storybook to 6.2.9 #18693
Changes from 15 commits
df00dc0
704f2e2
4e2898c
0501c6f
8050fae
fd72afd
528e246
0d1b1d9
1990505
4764ee5
c550c17
076a03b
b0d14fa
060fd1a
8a652de
573bdc8
0851937
0e2da26
74e02e3
05ad646
b6f4d2e
968ee6d
28da3c1
387d762
c466480
b5b9a94
26e055b
148907d
1d9acb6
63f3422
0e80abb
83ac9ed
8802131
7814d32
b337471
bb17948
677a750
4fbc960
14f7a08
5551645
a9cf49c
50d4cbf
0a03584
8797c07
2ebdab9
37bf1be
38e74b5
43ed940
d93c6ea
6c7d61c
7b9c974
640c4d3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||
---|---|---|---|---|---|---|---|---|
|
@@ -37,9 +37,9 @@ | |||||||
"@fluentui/react-theme-provider": "^9.0.0-alpha.44", | ||||||||
"@fluentui/scripts": "^1.0.0", | ||||||||
"@fluentui/storybook": "^1.0.0", | ||||||||
"@storybook/addons": "6.0.28", | ||||||||
"@storybook/channels": "6.0.28", | ||||||||
"@storybook/react": "6.0.28", | ||||||||
"@storybook/addons": "6.2.9", | ||||||||
"@storybook/channels": "6.2.9", | ||||||||
"@storybook/react": "6.2.9", | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove these since they're now declared at the root
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Removing these seems to have caused a build failure 🤔 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What's the error? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||||||||
"@types/react": "16.9.42", | ||||||||
"@types/react-dom": "16.9.10", | ||||||||
"babel-loader": "8.2.2", | ||||||||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"type": "patch", | ||
"comment": "fix: replace class with className in mdx file", | ||
"packageName": "@fluentui/react-examples", | ||
"email": "tristan.watanabe@gmail.com", | ||
"dependentChangeType": "patch" | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,7 +51,7 @@ | |
"rename-package": "node -r ./scripts/ts-node-register ./scripts/rename-package.ts", | ||
"run:published": "node ./scripts/monorepo/runPublished.js", | ||
"runto:lerna": "node ./scripts/monorepo/runTo.js", | ||
"satisfied": "satisfied --skip-invalid --ignore \"sass|@testing-library|vue\"", | ||
"satisfied": "satisfied --skip-invalid --ignore \"angular|builder-webpack5|sass|svelte|@testing-library|vue\"", | ||
"scrub": "node ./scripts/scrub.js", | ||
"start": "node scripts/start.js", | ||
"start:legacy": "yarn workspace @fluentui/public-docsite-resources start", | ||
|
@@ -82,16 +82,17 @@ | |
"@nrwl/node": "12.1.0", | ||
"@nrwl/tao": "12.1.0", | ||
"@nrwl/workspace": "12.1.0", | ||
"@storybook/addon-a11y": "6.0.28", | ||
"@storybook/addon-actions": "6.0.28", | ||
"@storybook/addon-docs": "6.0.28", | ||
"@storybook/addon-essentials": "6.0.28", | ||
"@storybook/addon-a11y": "6.2.9", | ||
"@storybook/addon-actions": "6.2.9", | ||
"@storybook/addon-docs": "6.2.9", | ||
"@storybook/addon-essentials": "6.2.9", | ||
"@storybook/addon-info": "6.0.0-alpha.2", | ||
"@storybook/addon-knobs": "6.0.28", | ||
"@storybook/addons": "6.0.28", | ||
"@storybook/channels": "6.0.28", | ||
"@storybook/core": "6.0.28", | ||
"@storybook/react": "6.0.28", | ||
"@storybook/addon-knobs": "6.2.9", | ||
"@storybook/addon-postcss": "2.0.0", | ||
"@storybook/addons": "6.2.9", | ||
"@storybook/channels": "6.2.9", | ||
"@storybook/core": "6.2.9", | ||
"@storybook/react": "6.2.9", | ||
"@testing-library/jest-dom": "5.11.9", | ||
"@testing-library/react": "10.4.9", | ||
"@testing-library/react-hooks": "5.0.3", | ||
|
@@ -108,6 +109,7 @@ | |
"@types/webpack-env": "1.16.0", | ||
"@types/yargs": "13.0.11", | ||
"ajv": "8.4.0", | ||
"autoprefixer": "^9.7.2", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. please use fixed versions in root devDependencies |
||
"babel-plugin-annotate-pure-calls": "0.4.0", | ||
"beachball": "1.53.1", | ||
"chalk": "4.1.0", | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,10 @@ const config = createConfig({ | |
setupFiles: [path.resolve(path.join(__dirname, 'config', 'tests.js'))], | ||
|
||
snapshotSerializers: [resolveMergeStylesSerializer()], | ||
|
||
moduleNameMapper: { | ||
'@storybook/addon-docs/blocks$': '@storybook/addon-docs/dist/cjs/blocks', | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. q: is this a know limitation (to explicitly provide CJS storybooks output) ? I mean we don't run tests on stories do we? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
}, | ||
}); | ||
|
||
module.exports = config; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
module.exports = { | ||
TristanWatanabe marked this conversation as resolved.
Show resolved
Hide resolved
|
||
plugins: [ | ||
require('autoprefixer')({ | ||
flexbox: 'no-2009', | ||
}), | ||
], | ||
}; |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,7 +47,7 @@ | |
"@types/puppeteer": "1.12.3", | ||
"@types/read-pkg-up": "^6.0.0", | ||
"async": "^2.6.1", | ||
"autoprefixer": "^10.2.1", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why the downgrade from autoprefixer 10 to 9? (looking at the root package.json) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Due to changes in 6.2 that required us to manually add Was also getting this error below when I used There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
So the next thing to look at is whether there's a newer version of There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah i agree about sticking to There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'd really like to get off anything using webpack 4 if possible, because overall that's likely to introduce more problems since the rest of our repo is on webpack 5. How are we using addon-info? Can we just remove it? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If you search for There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ok I'll remove There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Both tasks above have been completed |
||
"autoprefixer": "^9.7.2", | ||
TristanWatanabe marked this conversation as resolved.
Show resolved
Hide resolved
|
||
"babel-jest": "^24.5.0", | ||
"babel-plugin-annotate-pure-imports": "^1.0.0-1", | ||
"babel-plugin-iife-wrap-react-components": "^1.0.0-5", | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
q: why is this needed ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since we require postcss
8.2.4
, this needed to be added per document snippet below:There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm I don't think we need postcss for vNext (as styling is processed by make-styles - so vendor prefix etc are being properly added - am I right @layershifter ?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it's correct, we don't need PostCSS for vNext components
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got it - I will remove
addon-postcss
from the storybook addons and also remove thepostcss.config.js
file i created.