fs / static-base

A starter kit to help you develop static sites (or prototypes) faster. Middleman, Slim, Sass, CoffeeScript, Autoprefixer and Livereload.
http://www.flatstack.com/open-source/
4 stars 2 forks source link

Replace bootstrap with foundation #30

Open timurvafin opened 10 years ago

vast commented 10 years ago

Zurb Foundation isn't compatible with our middleman setup.

Consider the following Gemfile:

source 'https://rubygems.org'

ruby '2.1.0'

gem 'middleman'
gem 'foundation-rails', require: false

This will instal middleman-0.13.1 which is too old and doesn't support ruby 2.0. Middleman added full support for ruby 2.0 only in 3.2.0 version.

Let's try another Gemfile:

source 'https://rubygems.org'

ruby '2.1.0'

gem 'middleman', '~> 3.2.0'
gem 'foundation-rails', require: false

And here comes freaking dependency hell in foundation-rails:

Fetching gem metadata from https://rubygems.org/........
Fetching additional metadata from https://rubygems.org/..
Resolving dependencies.........
Bundler could not find compatible versions for gem "sprockets":
  In Gemfile:
    foundation-rails (>= 0) ruby depends on
      sprockets (~> 2.1.3) ruby

    middleman (~> 3.2.0) ruby depends on
      sprockets (2.10.1)

Bundler could not find compatible versions for gem "activesupport":
  In Gemfile:
    foundation-rails (>= 0) ruby depends on
      activesupport (= 3.1.0) ruby

    middleman (~> 3.2.0) ruby depends on
      activesupport (3.2.6)

More than that, foundation-rails is so open source, they don't even have "Issues" in repo: https://github.com/zurb/foundation-rails

I'd suggest putting this story aside for a while, since the only available solution requires bower.

See:

timurvafin commented 10 years ago

@vast what the current status of this issue?

vast commented 10 years ago

@timurvafin, I setup a wip branch with migration to Foundation 5 - https://github.com/fs/static-base/pull/43. In short: it works but produces some SASS warnings, see: https://github.com/zurb/foundation/pull/4392.

If that's ok then we can move forward and merge mentioned PR.