-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
use node-sass for building sass #2483
Conversation
this is a great news. I thought about suggesting it the last time I had to build Chosen from source locally |
👍 |
How will this fit into the Travis => https://github.com/harvesthq/bower-chosen build system? Seamlessly? Also, Sass != Compass — were we not using any of the Compass-y bits of Compass? |
Just some css mixins which are covered by autoprefixer, and the $chosen-sprite: image-url('chosen-sprite.png');
$chosen-sprite-retina: image-url('chosen-sprite@2x.png');
@include "chosen"; |
Yes I think it does, just the ruby dependency is stripped and a few extra node modules are installed through npm. |
Although I'm not sure if the browser specification |
For the Ruby dependency => pure Node change, I have pretty much no opinion either way, so cool with me. @mlettini You have any thoughts on the Compass => pure Sass changes? |
@koenpunt I think it is OK for the browser specification |
Same boat. Compass was just a tool to allow us to write a property once and not all of it's prefixes for old browser support. Now, autoprefixer is that tool, and that's fine with me. Saves a dependency. I believe we made this change for Harvestapp internally too. |
I'm excited for this! 👍 |
This seems great to me. I compared the css before and after and they seem to be effectively the same. I really don't like My personal vote would be to change the @koenpunt do you mind merging master in? It's a pretty easy conflict in |
Should the formatting of the resulting CSS matter? Maybe we should go with convention over configuration here. I've updated the branch 🚀 |
I'll also squash |
While at it, we might consider upgrading our node version, 0.10 is a oldie https://semver.io/node/stable => v5.9.1 |
@@ -3,7 +3,7 @@ sudo: false | |||
language: node_js | |||
|
|||
node_js: | |||
- "0.10" | |||
- "5.9.1" |
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 suggest using 5.9
to get the latest patch release automatically
@stof good point, updated. |
I think we should either go fully |
@starzonmyarmz the minified version is also generated when building, and the resulting file isn't included in the repo anyway. |
The version we're shipping to https://github.com/harvesthq/bower-chosen/blob/master/chosen.css Plus, I think the nested thing looks worse! |
Replaced compass for node sass and added autoprefixer for automated vendor prefixes This removes the ruby dependency remove compass from package.json remove gem install from travis config update contributing guide accordingly
Replaced compass for node-sass and added autoprefixer for automated vendor prefixes.
This removes the ruby dependency, and makes building way faster.
This also resolves the issues people having when including the Chosen source into their rails projects.
Related #2368 #2474