summaryrefslogtreecommitdiff
path: root/2
diff options
context:
space:
mode:
authorXhmikosR <xhmikosr@users.sourceforge.net>2014-02-11 19:03:45 +0200
committerXhmikosR <xhmikosr@users.sourceforge.net>2014-02-11 19:06:40 +0200
commit0a7985a31018b34eaa700a6f63836868a262f3c8 (patch)
tree544430596549ee170598edfc0b27daa6628c2465 /2
parent9df3e5227b82a2632c54575a213d077f445b1e67 (diff)
More tabs to spaces.
Diffstat (limited to '2')
-rw-r--r--2/Gruntfile.js194
1 files changed, 97 insertions, 97 deletions
diff --git a/2/Gruntfile.js b/2/Gruntfile.js
index bde3d55d..ca2182ca 100644
--- a/2/Gruntfile.js
+++ b/2/Gruntfile.js
@@ -1,113 +1,113 @@
module.exports = function (grunt) {
- grunt.loadNpmTasks('grunt-recess');
- grunt.loadNpmTasks('grunt-contrib-concat');
- grunt.loadNpmTasks('grunt-contrib-clean');
+ 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: {}
- }
- }
- });
+ // 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('none', function() {});
- grunt.registerTask('build', 'build a regular theme', function(theme, compress) {
- var compress = compress == undefined ? true : compress;
+ 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' ];
+ 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);
+ 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.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;
+ 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 = {};
+ 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' ];
+ 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);
+ 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.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.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('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');
- });
+ 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