mdb-ui-kit/gruntfile.js

74 lines
2.2 KiB
JavaScript
Raw Normal View History

2014-10-02 13:36:05 +04:00
module.exports = function(grunt) {
"use strict";
grunt.initConfig({
less: {
production: {
options: {
paths: ["less"]
},
files: {
"css-compiled/material.css": "less/material.less",
"css-compiled/material-wfont.css": "less/material-wfont.less",
"css-compiled/ripples.css": "less/ripples.less"
}
}
},
2014-10-03 15:58:24 +04:00
sass: {
production: {
files: {
"css-compiled/material.css": "sass/material.scss",
"css-compiled/material-wfont.css": "sass/material-wfont.scss",
"css-compiled/ripples.css": "sass/ripples.scss"
}
}
},
2014-10-02 13:36:05 +04:00
autoprefixer: {
options: {
browsers: ["last 3 versions", "ie 8", "ie 9", "ie 10", "ie 11"]
},
dist: {
files: {
"css-compiled/material.css": "css-compiled/material.css",
"css-compiled/material-wfont.css": "css-compiled/material-wfont.css",
"css-compiled/ripples.css": "css-compiled/ripples.css"
}
},
},
cssmin: {
minify: {
expand: true,
cwd: "css-compiled/",
src: ["*.css", "!*.min.css"],
dest: "css-compiled/",
ext: ".min.css"
}
},
copy: {
css: {
src: "css-compiled/*.min.css",
dest: "template/material/"
},
js: {
src: "scripts/*.js",
dest: "template/material/"
}
}
});
grunt.loadNpmTasks("grunt-contrib-less");
2014-10-03 15:58:24 +04:00
grunt.loadNpmTasks("grunt-contrib-sass");
2014-10-02 13:36:05 +04:00
grunt.loadNpmTasks("grunt-autoprefixer");
grunt.loadNpmTasks("grunt-contrib-cssmin");
grunt.loadNpmTasks("grunt-contrib-copy");
grunt.registerTask("default", ["less", "autoprefixer", "cssmin", "copy"]);
2014-10-03 15:58:24 +04:00
grunt.registerTask("scss", ["sass", "autoprefixer", "cssmin", "copy"]);
2014-10-02 13:36:05 +04:00
};