Skip to content

Instantly share code, notes, and snippets.

@indefinit
Created July 28, 2014 01:54
Show Gist options
  • Save indefinit/7afd7dc062c4c81ea3fb to your computer and use it in GitHub Desktop.
Save indefinit/7afd7dc062c4c81ea3fb to your computer and use it in GitHub Desktop.
Snippets for using ruby gems as compass dependencies in Grunt
# A sample Gemfile
source "https://rubygems.org"
gem "breakpoint", "~>2.4.0"
gem "susy"
gem "compass", "1.0.0.alpha.21"
// Compiles Sass to CSS and generates necessary files if requested
// ...
compass: {
options: {
sassDir: '<%= yeoman.app %>/styles',
cssDir: '.tmp/styles',
generatedImagesDir: '.tmp/images/generated',
imagesDir: '<%= yeoman.app %>/images',
javascriptsDir: '<%= yeoman.app %>/scripts',
fontsDir: '<%= yeoman.app %>/styles/fonts',
importPath: '<%= yeoman.app %>/bower_components',
httpImagesPath: '/images',
httpGeneratedImagesPath: '/images/generated',
httpFontsPath: '/styles/fonts',
relativeAssets: false,
assetCacheBuster: false,
require: ['susy', 'breakpoint'], //requires extra gems
bundleExec: true // need this to run bundler. See Gemfile below.
},
dist: {
options: {
generatedImagesDir: '<%= yeoman.dist %>/images/generated'
}
},
server: {
options: {
debugInfo: true
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment