mirror of
https://github.com/mdbootstrap/mdb-ui-kit.git
synced 2024-11-22 09:36:55 +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/
|
||||
.build*
|
||||
/_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";
|
||||
|
||||
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",
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue
Block a user