diff --git a/.gitignore b/.gitignore index 200ea389..2287a9f4 100644 --- a/.gitignore +++ b/.gitignore @@ -11,3 +11,4 @@ Thumbs.db /bower_components/ .build* /_SpecRunner.html +Gemfile.lock diff --git a/.ruby-gemset b/.ruby-gemset new file mode 100644 index 00000000..c63acfdc --- /dev/null +++ b/.ruby-gemset @@ -0,0 +1 @@ +bootstrap-material-design diff --git a/.ruby-version b/.ruby-version new file mode 100644 index 00000000..b1b25a5f --- /dev/null +++ b/.ruby-version @@ -0,0 +1 @@ +2.2.2 diff --git a/Gemfile b/Gemfile new file mode 100644 index 00000000..92ee8961 --- /dev/null +++ b/Gemfile @@ -0,0 +1,3 @@ +source 'https://rubygems.org' + +gem 'sass' diff --git a/Gruntfile.js b/Gruntfile.js index 0b2cbbb9..9e51357c 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -2,9 +2,22 @@ module.exports = function(grunt) { "use strict"; require("load-grunt-tasks")(grunt); + grunt.loadNpmTasks('grunt-less-to-sass'); 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 .min.css @@ -264,6 +277,11 @@ module.exports = function(grunt) { "material:less", "material:js" ]); + + grunt.registerTask("material:sass", [ + "sass:convert" + ]); + grunt.registerTask("material:less", [ "less:material", "less:materialfullpalette", diff --git a/package.json b/package.json index 2f50b068..5b8bca4d 100644 --- a/package.json +++ b/package.json @@ -46,6 +46,7 @@ "grunt-csswring": "^1.1.0", "grunt-dependency-installer": "^0.2.0", "grunt-exec": "^0.4.6", + "grunt-less-to-sass": "latest", "grunt-newer": "^0.7.0", "jquery": ">=1.9.1", "jshint-stylish": "^1.0.0",