mirror of
https://github.com/mdbootstrap/mdb-ui-kit.git
synced 2024-11-22 17:47:11 +03:00
prepare grunt-less-to-sass
This commit is contained in:
parent
3b4ffb728e
commit
856a321785
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -11,3 +11,4 @@ Thumbs.db
|
||||||
/bower_components/
|
/bower_components/
|
||||||
.build*
|
.build*
|
||||||
/_SpecRunner.html
|
/_SpecRunner.html
|
||||||
|
Gemfile.lock
|
||||||
|
|
1
.ruby-gemset
Normal file
1
.ruby-gemset
Normal file
|
@ -0,0 +1 @@
|
||||||
|
bootstrap-material-design
|
1
.ruby-version
Normal file
1
.ruby-version
Normal file
|
@ -0,0 +1 @@
|
||||||
|
2.2.2
|
18
Gruntfile.js
18
Gruntfile.js
|
@ -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",
|
||||||
|
|
|
@ -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",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user