• Gleb Mazovetskiy's avatar
    Compile with Ruby Sass or libsass. · 8a51daf2
    Gleb Mazovetskiy authored
    * Separate configs for libsass and sass.
    * Sass compiler selected based on `process.env.TWBS_SASS`.
    * Travis:
      * Use Gemfile to manage ruby dependencies.
      * Run core tests with both Sass compilers.
      * Only install/cache ruby gems required by the test subset.
    * Grunt: `update-gemfile-lock` task a la `update-shrinkwrap`.
    8a51daf2
sass.js 750 bytes
// Compile Bootstrap with [Ruby Sass][1] using [grunt-contrib-sass][2]
// [1]: https://github.com/sass/sass
// [2]: https://github.com/gruntjs/grunt-contrib-sass
module.exports = function configureRubySass(grunt) {
  var options = {
    loadPath: ['scss'],
    precision: 6,
    sourcemap: 'auto',
    style: 'expanded',
    trace: true,
    bundleExec: true
  grunt.config.merge({
    sass: {
      core: {
        options: options,
        files: {
          'dist/css/<%= pkg.name %>.css': 'scss/<%= pkg.name %>.scss'
      docs: {
        options: options,
        files: {
          'docs/assets/css/docs.min.css': 'docs/assets/scss/docs.scss'
  });
  grunt.loadNpmTasks('grunt-contrib-sass');