summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Park <thomas@thomaspark.me>2014-02-02 22:43:24 -0500
committerThomas Park <thomas@thomaspark.me>2014-02-02 22:43:24 -0500
commit83543b62d8cb35d48f2ba8600e2e70ba33109757 (patch)
tree3afe29f3bcc5d6a83279057de416180bb6e05777
parent303ba425d14820c93528555c60b355fcc9e67df8 (diff)
build with less instead of recess
-rw-r--r--Gruntfile.js29
-rw-r--r--package.json2
2 files changed, 15 insertions, 16 deletions
diff --git a/Gruntfile.js b/Gruntfile.js
index f5b0c10d..96569119 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -1,5 +1,5 @@
module.exports = function (grunt) {
- grunt.loadNpmTasks('grunt-recess');
+ grunt.loadNpmTasks('grunt-contrib-less');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-contrib-watch');
@@ -32,10 +32,9 @@ module.exports = function (grunt) {
dest: ''
}
},
- recess: {
+ less: {
dist: {
options: {
- compile: true,
compress: false
},
files: {}
@@ -50,32 +49,32 @@ module.exports = function (grunt) {
var concatSrc;
var concatDest;
- var recessDest;
- var recessSrc;
+ var lessDest;
+ var lessSrc;
var files = {};
var dist = {};
concatSrc = 'global/build.less';
concatDest = theme + '/build.less';
- recessDest = '<%=builddir%>/' + theme + '/bootstrap.css';
- recessSrc = [ theme + '/' + 'build.less' ];
+ lessDest = '<%=builddir%>/' + theme + '/bootstrap.css';
+ lessSrc = [ theme + '/' + 'build.less' ];
dist = {src: concatSrc, dest: concatDest};
grunt.config('concat.dist', dist);
- files = {}; files[recessDest] = recessSrc;
- grunt.config('recess.dist.files', files);
- grunt.config('recess.dist.options.compress', false);
+ files = {}; files[lessDest] = lessSrc;
+ grunt.config('less.dist.files', files);
+ grunt.config('less.dist.options.compress', false);
- grunt.task.run(['concat', 'recess:dist', 'clean:build',
- compress ? 'compress:'+recessDest+':'+'<%=builddir%>/' + theme + '/bootstrap.min.css':'none']);
+ grunt.task.run(['concat', 'less:dist', 'clean:build',
+ compress ? 'compress:'+lessDest+':'+'<%=builddir%>/' + theme + '/bootstrap.min.css':'none']);
});
grunt.registerTask('compress', 'compress a generic css', function(fileSrc, fileDst) {
var files = {}; files[fileDst] = fileSrc;
grunt.log.writeln('compressing file ' + fileSrc);
- grunt.config('recess.dist.files', files);
- grunt.config('recess.dist.options.compress', true);
- grunt.task.run(['recess:dist']);
+ grunt.config('less.dist.files', files);
+ grunt.config('less.dist.options.compress', true);
+ grunt.task.run(['less:dist']);
});
grunt.registerMultiTask('swatch', 'build a theme', function() {
diff --git a/package.json b/package.json
index d0257961..d61f8f35 100644
--- a/package.json
+++ b/package.json
@@ -14,7 +14,7 @@
},
"devDependencies": {
"grunt": "~0.4.1",
- "grunt-recess": "~0.3.1",
+ "grunt-contrib-less": "~0.9.0",
"grunt-contrib-concat": "~0.1.3",
"grunt-contrib-clean": "~0.4.0",
"grunt-contrib-watch": "~0.5.1",