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
Can I add bourbon v5 (beta) to my project with Bower? #991
Comments
Add this to your bower.json "dependencies": {
"bourbon5":"bourbon#v5.0.0.beta.7",
} |
I’m going to close this issue, as it appears to be resolved. Couple things worth noting:
|
Thanks, that did the trick!Is there any way to specify the version in a way, that allows checking for updates? |
@tysongach I used "Background Image" mixin, and it resulted in two identical "background-image" rules appearing in my css. Not a deal-breaker but it bothered me. |
@Trost123 In my workflow i've a folder to store frameworks/libs and my projects load the stuff and tools from this place, so i can deal with multiple versions of bourbon, or others between my projects. Structure and gulp file is here, https://github.com/mistergraphx/Fragments_builder. |
@mistergraphx Thanks, but I think you misunderstood my second question there. |
I've understood but not really answered ;-).I gived you an example of switching between multiple versions during the pre-release period. That's why we add the specific tag You can try to download directly from the master branch using |
@mistergraphx |
@Trost123 I don’t use Bower a lot, so can’t speak from experience, but it appears that you can specify a range of versions: I just found this neat tool from npm which helps you visualize these SemVer qualifiers: https://semver.npmjs.com/. |
@tysongach Thanks, that's exactly what I needed! And that tool sure is handy. |
Ah, I think there are minor discrepancies between Bower and npm and how they handle SemVer with pre-releases. Some accept a hyphen ( |
@tysongach I don't think it's about that. |
Interesting. Yeah, it would be nice to confirm whether Bower does or does not include pre-release versions when listing. I think Bower piggy-backs a lot of Git/GitHub tags, so it is possible we didn’t properly tag things right before, or now? It’s very opaque, but I’m intrigued to learn more! |
@tysongach I think I found the pattern. Look at all "beta" and "rc" versions that are in my screenshot. |
So this goes back to my comment above on whether a hyphen or period was used to denote the pre-release. Unfortunately, npm and Bower handle this nomenclature differently than RubyGems (which we also publish to). The Semantic Versioning spec indicates that “A pre-release version MAY be denoted by appending a hyphen and a series of dot separated identifiers immediately following the patch version” (e.g. However—if I remember correctly—RubyGems throws an error and will not publish a pre-release denoted by a hyphen, only if it is a period. There is an open PR to Semantic Version that tries to clarify the correct method (hyphen) and I hope that RubyGems aligns with everyone else. I found all of this out through trial and error once I took over maintaining Bourbon. I plan to sit down and map all of this out with learnings and note the conflicts. I may have mistakingly versioned things incorrectly, and between Git/GitHub, npm, Bower and RubyGems, we have confusion. |
Here is some documentation from RubyGems on them indicating use of a period to denote pre-releases: http://guides.rubygems.org/patterns/#prerelease-gems I think the action here is that version number every but RubyGems, needs to utilize the hyphen, in accordance to SemVer. RubyGems appears to be the violator of that spec, so we’ll have to use the period for them here: https://github.com/thoughtbot/bourbon/blob/master/lib/bourbon/version.rb#L2. |
@tysongach so basically it's either RubyGems error or Bower without automated beta update channel. |
Nah, I’m curious what they say and see if our assumptions are correct. |
I guess guys at Bower can fix (workaround) it, because NPM actually transforms "." into "-" before "beta" |
I'm using Autoprefixer, so a lot of mixins from bourbon v4 conflict with it. Bourbon v5 (beta) fixed this issue, is there any way to add it to my project using Bower?
The text was updated successfully, but these errors were encountered: