Skip to content
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

chore(Playroom): upgrade version #1016

Merged
merged 6 commits into from
Feb 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
37 changes: 37 additions & 0 deletions img/favicon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
"storybook-for-acceptance-tests": "cross-env NODE_ENV=production yarn storybook --ci 2>&1",
"playroom": "playroom start",
"gen-ts-defs": "rimraf dist-ts && tsc --project tsconfig.production.json --emitDeclarationOnly && cp -r dist-ts/src/* dist && rimraf dist-ts",
"vercel-build": "VERCEL_PROD_BUILD=1 yarn storybook-static && ./node_modules/.bin/playroom build && FORCE_MOBILE=1 ./node_modules/.bin/playroom build && FORCE_DESKTOP=1 ./node_modules/.bin/playroom build && cp img/favicon.ico public/",
"vercel-preview-build": "yarn storybook-static && ./node_modules/.bin/playroom build && cp img/favicon.ico public/",
"vercel-build": "VERCEL_PROD_BUILD=1 yarn storybook-static && ./node_modules/.bin/playroom build && FORCE_MOBILE=1 ./node_modules/.bin/playroom build && FORCE_DESKTOP=1 ./node_modules/.bin/playroom build && cp img/favicon.ico public/ && cp img/favicon.svg public/",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

when upgrading storybook to v7, the mistica's favicon stopped working. It seems that storybook replaced the .ico file with a .svg.

"vercel-preview-build": "yarn storybook-static && ./node_modules/.bin/playroom build && cp img/favicon.ico public/ && cp img/favicon.svg public/",
"storybook-static": "rimraf public && storybook build -s ./.storybook/css/fonts -o public --quiet",
"serve-static-storybook": "node ./scripts/serve-static-storybook.js",
"detect-circular-dependencies": "npx dpdm --circular src/index.tsx",
Expand Down Expand Up @@ -123,7 +123,7 @@
"lodash": "^4.17.21",
"mini-css-extract-plugin": "^1.6.2",
"node-fetch": "^2.6.7",
"playroom": "^0.31.0",
"playroom": "^0.34.2",
"postcss": "^8.4.18",
"postcss-loader": "^4.2.0",
"prettier": "^2.6.1",
Expand Down
2 changes: 1 addition & 1 deletion playroom.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ const config = {
type: 'asset/resource',
},
{
test: /\.vanilla\.css$/i,
test: /\.vanilla\.css/i,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After the upgrade, I was getting a lot of errors when trying to start playroom. It looks like there are some characters being added to the end of the filenames for vanilla css files.

MicrosoftTeams-image (1)

// Don't process vanilla files from Playroom as they are handled separately.
exclude: /node_modules\/playroom/,
use: [
Expand Down
Loading
Loading