Difference between revisions of "Installation Requirements"
Jump to navigation
Jump to search
(Created page with "== Required installations == * gem install compass -- pre * gem list // will list all installed gems * gem install susy * gem install breakpoint * gem install n...") |
|||
(8 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
== Required installations == | == Required installations == | ||
* gem install compass -- pre | |||
* gem list // will list all installed gems | |||
* gem install susy | |||
* gem install breakpoint | |||
* gem install normalize | |||
* gem install bundler | |||
* gem outdated // will display outdated gems | |||
* gem update // will update gems | |||
* rvm use --default 2.2 // will get and error ignore | |||
== To update Ruby == | == To update Ruby == | ||
curl -sSL https://get.rvm.io | bash -s stable --ruby | |||
== Run bundle init // will create a gemfile == | == Run bundle init // will create a gemfile == | ||
Line 37: | Line 37: | ||
<pre> | <pre> | ||
compass create foldername -r susy -u susy | |||
compass create | |||
</pre> | </pre> | ||
== config.rb file == | == config.rb file == | ||
<pre> | <pre> | ||
require 'susy' | require 'susy' | ||
require 'compass/import-once/activate' // may have to be | require 'compass/import-once/activate' // may have to be commented out. see troubleshooting article | ||
require 'breakpoint' | require 'breakpoint' | ||
# Require any additional compass plugins here. | # Require any additional compass plugins here. | ||
Line 52: | Line 51: | ||
# Set this to the root of your project when deployed: | # Set this to the root of your project when deployed: | ||
http_path = " | http_path = "/" | ||
css_dir = " | css_dir = "css" | ||
sass_dir = "sass" | sass_dir = "sass" | ||
images_dir = "images" | images_dir = "images" | ||
javascript_dir | javascript_dir = "js" | ||
# You can select your preferred output style here (can be overridden via the command line): | # You can select your preferred output style here (can be overridden via the command line): | ||
Line 75: | Line 74: | ||
</pre> | </pre> | ||
---- | |||
==[[#Required installations|Back To Top]]-[[Main_Page| Home]] - [[Css|Category]]== |
Latest revision as of 20:28, 10 September 2016
Required installations
- gem install compass -- pre
- gem list // will list all installed gems
- gem install susy
- gem install breakpoint
- gem install normalize
- gem install bundler
- gem outdated // will display outdated gems
- gem update // will update gems
- rvm use --default 2.2 // will get and error ignore
To update Ruby
curl -sSL https://get.rvm.io | bash -s stable --ruby
Run bundle init // will create a gemfile
Edit Gem file // you can get versions by running gem list
# frozen_string_literal: true # A sample Gemfile source "https://rubygems.org" gem 'compass', '~>1.1.0.alpha.3' gem 'sass', '3.4.22' gem 'susy', '2.2.2' gem 'breakpoint', '2.7.0' gem 'normalize', '0.0.3' # gem "rails"
Terminal
compass create foldername -r susy -u susy
config.rb file
require 'susy' require 'compass/import-once/activate' // may have to be commented out. see troubleshooting article require 'breakpoint' # Require any additional compass plugins here. # Set this to the root of your project when deployed: http_path = "/" css_dir = "css" sass_dir = "sass" images_dir = "images" javascript_dir = "js" # You can select your preferred output style here (can be overridden via the command line): output_style = :expanded # To enable relative paths to assets via compass helper functions. Uncomment: relative_assets = true # To disable debugging comments that display the original location of your selectors. Uncomment: line_comments = false # If you prefer the indented syntax, you might want to regenerate this # project again passing --syntax sass, or you can uncomment this: # preferred_syntax = :sass # and then run: # sass-convert -R --from scss --to sass sass scss && rm -rf sass && mv scss sass