jquery-lineup
Version:
Just fix heights of the cols in the same row.
57 lines (50 loc) • 1.17 kB
JavaScript
module.exports = function(grunt){
var info, options;
info = grunt.file.readJSON("./package.json");
options = {
splitBanners: true,
banner: grunt.template.process(
grunt.file.read("src/banner.js"),
{ data: info }
)
};
grunt.loadNpmTasks("grunt-contrib-concat");
grunt.loadNpmTasks("grunt-contrib-uglify");
grunt.loadNpmTasks("grunt-contrib-less");
grunt.loadNpmTasks("grunt-contrib-watch");
grunt.initConfig({
concat : {
options : options,
dist : {
src : "./src/lineup.js",
dest : "./dist/jquery-lineup.js"
}
},
uglify : {
options : options,
dist : {
src : "./src/lineup.js",
dest : "./dist/jquery-lineup.min.js"
}
},
less : {
demo : {
files : {
"./demo/css/normal.css" : "./demo/less/normal.less",
"./demo/css/liquid.css" : [
"./demo/less/normal.less",
"./demo/less/liquid.less"
],
"./demo/css/children.css": "./demo/less/children.less"
}
}
},
watch: {
less: {
files: "./demo/less/**/*.less",
tasks: ["less:demo"]
}
}
});
grunt.registerTask("default", ["concat", "uglify"]);
};