prepare grunt-less-to-sass

This commit is contained in:
Kevin Ross 2015-11-02 13:42:29 -06:00
parent 81f25a7629
commit 44d14470bc
6 changed files with 25 additions and 0 deletions

1
.gitignore vendored
View File

@ -11,3 +11,4 @@ Thumbs.db
/bower_components/ /bower_components/
.build* .build*
/_SpecRunner.html /_SpecRunner.html
Gemfile.lock

1
.ruby-gemset Normal file
View File

@ -0,0 +1 @@
bootstrap-material-design

1
.ruby-version Normal file
View File

@ -0,0 +1 @@
2.2.2

3
Gemfile Normal file
View File

@ -0,0 +1,3 @@
source 'https://rubygems.org'
gem 'sass'

View File

@ -2,9 +2,22 @@ module.exports = function(grunt) {
"use strict"; "use strict";
require("load-grunt-tasks")(grunt); require("load-grunt-tasks")(grunt);
grunt.loadNpmTasks('grunt-less-to-sass');
grunt.initConfig({ grunt.initConfig({
// Convert from less to sass
sass: {
convert: {
files: [{
expand: true,
cwd: 'less',
src: ['*.less'],
ext: '.scss',
dest: '../sass'
}]
}
},
// Compile less to .css // Compile less to .css
// Compile less to .min.css // Compile less to .min.css
@ -264,6 +277,11 @@ module.exports = function(grunt) {
"material:less", "material:less",
"material:js" "material:js"
]); ]);
grunt.registerTask("material:sass", [
"sass:convert"
]);
grunt.registerTask("material:less", [ grunt.registerTask("material:less", [
"less:material", "less:material",
"less:materialfullpalette", "less:materialfullpalette",

View File

@ -46,6 +46,7 @@
"grunt-csswring": "^1.1.0", "grunt-csswring": "^1.1.0",
"grunt-dependency-installer": "^0.2.0", "grunt-dependency-installer": "^0.2.0",
"grunt-exec": "^0.4.6", "grunt-exec": "^0.4.6",
"grunt-less-to-sass": "latest",
"grunt-newer": "^0.7.0", "grunt-newer": "^0.7.0",
"jquery": ">=1.9.1", "jquery": ">=1.9.1",
"jshint-stylish": "^1.0.0", "jshint-stylish": "^1.0.0",