-
Notifications
You must be signed in to change notification settings - Fork 195
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
feat(bundle): bundled css for dev/demos #3477
base: main
Are you sure you want to change the base?
Conversation
🦋 Changeset detectedLatest commit: b91e385 The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
File metricsSummaryTotal size: 4.27 MB* Table reports on changes to a package's main file. Other changes can be found in the collapsed Details section below.
Detailsactionbutton
alertbanner
button
closebutton
colorwheel
dial
logicbutton
picker
popover
stepper
textfield
tooltip
typography
* Results are not gzipped or minified. * An ASCII character in UTF-8 is 8 bits or 1 byte. |
3181e52
to
95f3730
Compare
637f836
to
c431cb0
Compare
🚀 Deployed on https://pr-3477--spectrum-css.netlify.app |
b7360e9
to
69b9894
Compare
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.
The clean command didn't work as expected, but otherwise I tested in a CodePen and styles seemed fully available 🙌
@@ -17,6 +17,7 @@ | |||
"build:docs": "nx build storybook --output-dir ../dist/", | |||
"build:preview": "nx build storybook", | |||
"builder": "nx run-many --target build report --projects", | |||
"bundle": "nx build bundle", |
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.
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.
It won't if it's cached but if I set clean commands to ignore the cache by default, they will run every build command every time, even if it should be cached. I could update the package.json clean command to skip cache though.
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.
I'm not sure it's a problem, just reporting since you had noted the command. Practically speaking, I'm not sure there's a reason to do this command adhoc so maybe it's not an issue worth spending time on?
b29b35b
to
4bc2886
Compare
I'm seeing the same issue. The |
4bc2886
to
8f892bf
Compare
8f892bf
to
b91e385
Compare
Description
This pull request adds a bundle package for Spectrum CSS so that customers can leverage these in demos, documentation, or development.
This also updates the Storybook package to use the bundle instead of loading individual components for documentation page styling.
During bundling, I also found that the minifier was removing the stylelint-disable comments before the stylelint plugin was run so some of the logical-property "fixes" were supposed to be skipped. This PR forces the build to maintain the stylelint-disable comments thus increasing the bundle size a smidge.
How and where has this been tested?
Please tag yourself on the tests you've marked complete to confirm the tests have been run by someone other than the author.
Validation steps
yarn clean:bundle
should remove the tools/bundle/dist directoryyarn bundle
should build the tools/bundle/dist output (expect to see index.css, index.min.css, and corresponding map files) (@5t3ph, @cdransf)yarn refresh:bundle
should update the tools/bundle/package.json to reflect the components/* directory accurately and the src/index.css to include the correct imports (@5t3ph, @cdransf)To-do list