How can I specify the version of the frame in compass creation?

I have two versions of the base frame. I want to indicate the version of the framework before creating the project.

compass create <project-name> -r zurb-foundation --using foundation 

Now I can only create the current version of the frame.

+4
source share
1 answer

You can run several versions of the foundation. There are several documents on how to do this:

http://foundation.zurb.com/docs/sass.html

in the section Starting multiple versions

I wanted to have the latest version of Foundation 3, as well as the latest version 4. Here you can check the available versions:

https://rubygems.org/gems/zurb-foundation/versions

I saw that version 3.2.5 was the latest. You can install it by running gem.

gem install zurb-foundation --version 3.2.5

now if you run gem list

you will see something like zurb-foundation (4.0.3, 4.0.2, 3.2.5) at the end

Now, if you run the compass, it will automatically use the latest version, so we will need to use the package. Create a new directory and create a gemfile.

 mkdir myApp cd myApp touch Gemfile 

then edit the Gemfile with your editor so that it looks like this:

 source "https://rubygems.org" # Replace 4.0.3 with the version of Foundation you want to use gem "zurb-foundation", "3.2.5" gem "compass" 

then run bundler for compass comp:

bundle exec compass create . -r zurb-foundation --using foundation

this will create everything, as usual, like a compass, but with the specific version that you specified.

+10
source

All Articles