diff options
author | Thomas Park <thomas@thomaspark.me> | 2013-08-06 15:15:37 -0400 |
---|---|---|
committer | Thomas Park <thomas@thomaspark.me> | 2013-08-06 15:15:37 -0400 |
commit | 55f9c2cec0e48dc5190a1f81f297e469c2d5015b (patch) | |
tree | c6c9730b102c7d1239cf143c0ffd9d9de6a8d088 /Gruntfile.js | |
parent | a25e04ec97d3d08fb722a167f07150d9af9f1229 (diff) |
moves v2.3.2 to /2/
Diffstat (limited to 'Gruntfile.js')
-rw-r--r-- | Gruntfile.js | 113 |
1 files changed, 0 insertions, 113 deletions
diff --git a/Gruntfile.js b/Gruntfile.js deleted file mode 100644 index bde3d55d..00000000 --- a/Gruntfile.js +++ /dev/null @@ -1,113 +0,0 @@ -module.exports = function (grunt) { - grunt.loadNpmTasks('grunt-recess'); - grunt.loadNpmTasks('grunt-contrib-concat'); - grunt.loadNpmTasks('grunt-contrib-clean'); - - // Project configuration. - grunt.initConfig({ - pkg: grunt.file.readJSON('package.json'), - builddir: 'build', - meta: { - banner: '/**\n' + - ' * <%= pkg.description %>\n' + - ' * @version v<%= pkg.version %> - ' + - '<%= grunt.template.today("yyyy-mm-dd") %>\n' + - ' * @link <%= pkg.homepage %>\n' + - ' * @license <%= pkg.license %>' + ' */' - }, - swatch: { - amelia:{}, cerulean:{}, cosmo:{}, cyborg:{}, flatly:{}, journal:{}, readable:{}, - simplex:{}, slate:{}, spacelab:{}, spruce:{}, superhero:{}, united:{} - }, - clean: { - build: { - src: ['*/build.less', '*/build-responsive.less', - '!global/build.less', '!global/build-responsive.less'] - } - }, - concat: { - dist: { - src: [], - dest: '' - } - }, - recess: { - dist: { - options: { - compile: true, - compress: false - }, - files: {} - } - } - }); - - grunt.registerTask('none', function() {}); - - grunt.registerTask('build', 'build a regular theme', function(theme, compress) { - var compress = compress == undefined ? true : compress; - - var concatSrc; - var concatDest; - var recessDest; - var recessSrc; - var files = {}; - var dist = {}; - concatSrc = 'global/build.less'; - concatDest = theme + '/build.less'; - recessDest = '<%=builddir%>/' + theme + '/bootstrap.css'; - recessSrc = [ 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); - - grunt.task.run(['concat', 'recess:dist', 'clean:build', - compress ? 'compress:'+recessDest+':'+'<%=builddir%>/' + theme + '/bootstrap.min.css':'none']); - }); - - grunt.registerTask('build-responsive', 'build a responsive theme', function(theme, compress) { - var compress = compress == undefined ? true : compress; - - var concatSrc; - var concatDest; - var recessDest; - var recessSrc; - var files = {}; - var dist = {}; - - concatSrc = 'global/build-responsive.less'; - concatDest = theme + '/build-responsive.less'; - recessDest = '<%=builddir%>/' + theme + '/bootstrap-responsive.css'; - recessSrc = [ theme + '/' + 'build-responsive.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); - - grunt.task.run(['concat', 'recess:dist', 'clean:build', - compress ? 'compress:'+recessDest+':'+'<%=builddir%>/' + theme + '/bootstrap-responsive.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.registerMultiTask('swatch', 'build a theme, both not responsive and responsive', function() { - var t = this.target; - grunt.task.run('build:'+t, 'build-responsive:'+t); - }); - - grunt.registerTask('default', 'build a theme, both not responsive and responsive', function() { - grunt.task.run('swatch'); - }); -};
\ No newline at end of file |