2014-12-15 19:18:27 +01:00
|
|
|
// 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: {
|
2015-01-18 23:53:06 +01:00
|
|
|
'dist/css/<%= pkg.name %>.css': 'scss/<%= pkg.name %>.scss'
|
2014-12-15 19:18:27 +01:00
|
|
|
}
|
|
|
|
},
|
2015-06-18 19:19:50 +02:00
|
|
|
extras: {
|
|
|
|
options: options,
|
|
|
|
files: {
|
|
|
|
'dist/css/<%= pkg.name %>-grid.css': 'scss/<%= pkg.name %>-grid.scss',
|
|
|
|
'dist/css/<%= pkg.name %>-reboot.css': 'scss/<%= pkg.name %>-reboot.scss'
|
|
|
|
}
|
|
|
|
},
|
2014-12-15 19:18:27 +01:00
|
|
|
docs: {
|
|
|
|
options: options,
|
|
|
|
files: {
|
2016-12-22 05:26:17 +01:00
|
|
|
'docs/assets/css/docs.min.css': 'docs/assets/scss/docs.scss'
|
2014-12-15 19:18:27 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
grunt.loadNpmTasks('grunt-contrib-sass');
|
|
|
|
};
|