1 module.exports = function (grunt) {
2 grunt.loadNpmTasks('grunt-recess');
3 grunt.loadNpmTasks('grunt-contrib-concat');
4 grunt.loadNpmTasks('grunt-contrib-clean');
5 // grunt.loadNpmTasks('grunt-contrib-uglify');
7 // Project configuration.
10 pkg: grunt.file.readJSON('package.json'),
13 ' * <%= pkg.description %>\n' +
14 ' * @version v<%= pkg.version %> - ' +
15 '<%= grunt.template.today("yyyy-mm-dd") %>\n' +
16 ' * @link <%= pkg.homepage %>\n' +
17 ' * @license <%= pkg.license %>' + ' */'
20 amelia: {}, cerulean:{}, cosmo:{}, cyborg:{}, journal:{}, readable:{},
21 shamrock:{}, simplex:{}, slate:{}, spacelab:{}, spruce:{}, superhero:{},
26 src: ['*/build.less', '*/build-responsive.less',
27 '!global/build.less', '!global/build-responsive.less']
32 src: ['global/build.less'],
46 src: ['<banner:meta.banner>', '<config:concat.build.dest>'],
47 dest: '<%= builddir %>/<%= pkg.name %>.min.js'
52 grunt.registerMultiTask('build', 'build a theme', function() {
53 var theme = this.target;
54 grunt.log.writeln('building theme ' + this.target);
56 var concatDest = theme + '/build.less';
58 var recessDest = theme + '/' + theme + '.css';
59 var recessSrc = [ theme + '/' + 'build.less' ];
61 grunt.config('concat.dist.dest', concatDest);
62 var files = {}; files[recessDest] = recessSrc;
63 grunt.config('recess.dist.files', files);
65 grunt.task.run(['concat', 'recess:dist', 'clean:build']);