-
Notifications
You must be signed in to change notification settings - Fork 15
Restructured packages and using different sass-render #15
Conversation
@@ -14,7 +14,7 @@ | |||
font-size: 14px; | |||
font-weight: 500; | |||
line-height: 36px; | |||
color: rgb(var(--abm-primary-rgb, 33, 150, 243)); | |||
color: RGB(var(--abm-primary-rgb, 33, 150, 243)); |
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.
Please don't change the style of the CSS functions.
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.
Oh right. This is due to node-sass (if i'm not wrong) unable to compile rgb using css variables and default values. sass/node-sass#2251
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 existing script works, and we shouldn't change valid CSS because of weird bugs in tools.
@@ -9,14 +9,16 @@ | |||
"build": "yarn build-styling", | |||
"build-styling": "./scripts/build-styling.sh", | |||
"deploy-storybook": "storybook-to-ghpages", | |||
"dist": "lerna run dist", |
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.
Please don't remove this script and relevant @pika/pack
sections as they are 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.
Could you explain why you have choosen picka/pack packages. But anyway, was not my intention to remove them. Just to get this stuff running.
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.
These are needed to prepare ES module version and bundled version for CDN.
Check https://github.com/pikapkg/pack for more details.
And yes, the scss
files are in the separate folders intentionally, so as Pack doesn't attempt to process those (it only picks anything inside src
).
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.
-
Please remove any
.DS_Store
files from the PR -
Please restore the
dist
scripts and@pika/pack
sections, we need those for publishing. -
I don't see any need in committing
custom-elements-es5-adapter.js
to this repo, neitherwebcomponents-bundle.js
. You should be able to resolve those from thenode_modules
@web-padawan checked your comments, looks like all achievable. Overall do you see this PR going in a useful direction, though? |
@lkraav yes, the overall direction seems reasonable to me. The only thing what I would like to keep is folders structure. So basically .scss files should stay in |
@chanar did you push updates yet? Not seeing anything here. |
For this, I haven't. I'm still waiting for padawan comment on rgb. |
@chanar in addition to #15 (comment) or...? |
@chanar on feature branch development, |
@chanar I'm not understanding the need to introduce |
Yes, please use |
Quick overview of changes I have done:
Compilations are now super fast, support running in dev sever and builds.
So first install wc-sass-render globally yarn global add wc-sass-render and then npm run bootstrap