From 8d369769c099c706a12b4b1e1393f718593b20be Mon Sep 17 00:00:00 2001 From: WubTheCaptain Date: Sun, 20 Sep 2015 12:22:32 +0000 Subject: Indent Gruntfile from tabs to two spaces This creates consistency with the project's style. --- Gruntfile.js | 242 +++++++++++++++++++++++++++++------------------------------ 1 file changed, 121 insertions(+), 121 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index 7013c07..41feacc 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -1,125 +1,125 @@ module.exports = function (grunt) { - grunt.initConfig({ - pkg: grunt.file.readJSON('package.json'), - swig: { - dist: { - init: { - root: "pages/", - allowErrors: false, - autoescape: true - }, - banners: grunt.file.readJSON('pages/banners.json'), - max_upload_size: 120, - dest: "dist/", - cwd: "pages/", - generateSitemap: false, - generateRobotstxt: false, - src: [ - 'index.swig', - 'faq.swig', - 'tools.swig', - 'other.swig', - 'nojs.swig', - 'ca.swig' - ], - siteUrl: 'https://pantsu.cat/', - production: false, - } - }, - htmlmin: { - dist: { - options: { - removeComments: true, - collapseWhitespace: true, - conservativeCollapse: true, - removeEmptyAttributes: true - }, - files: [{ - expand: true, - cwd: 'dist/', - src: '**/*.html', - dest: 'dist/' - }] - } - }, - uglify: { - options: { - banner: '/*! <%= pkg.name %> (<%= pkg.repository.url %>) @ <%= grunt.template.today("yyyy-mm-dd") %> */\n' + - '// @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT\n', - footer: '\n// @license-end', - screwIE8: true - }, - dist: { - files: { - 'dist/pomf.min.js': [ - 'js/zepto.js', - 'js/cheesesteak.js', - 'js/cabinet.js', - 'js/pomf.js' - ] - } - } - }, - cssmin: { - options: { - banner: '/*! <%= pkg.name %> (<%= pkg.repository.url %>) @ <%= grunt.template.today("yyyy-mm-dd") %> */\n\n' - }, - dist: { - files: { - 'dist/pomf.min.css': [ - 'css/pomf.css' - ] - } - } - }, - mkdir: { - options: { - mode: 0700, - create: ['dist/img'] - } - }, - imagemin: { - dist: { - files: [{ - expand: true, - cwd: 'img/', - src: '**/*.{png,jpg,gif}', - dest: 'dist/img/' - }] - } - }, - copy: { - dist: { - files: [{ - expand: true, - cwd: 'static/', - src: '**', - dest: 'dist/' - }] - } - }, - jshint: { - options: { - curly: true, - undef: true - }, - all: [ - 'Gruntfile.js', - 'js/pomf.js', - 'js/cabinet.js', - 'js/cheesesteak.js' - ] - } - }); + grunt.initConfig({ + pkg: grunt.file.readJSON('package.json'), + swig: { + dist: { + init: { + root: "pages/", + allowErrors: false, + autoescape: true + }, + banners: grunt.file.readJSON('pages/banners.json'), + max_upload_size: 120, + dest: "dist/", + cwd: "pages/", + generateSitemap: false, + generateRobotstxt: false, + src: [ + 'index.swig', + 'faq.swig', + 'tools.swig', + 'other.swig', + 'nojs.swig', + 'ca.swig' + ], + siteUrl: 'https://pantsu.cat/', + production: false, + } + }, + htmlmin: { + dist: { + options: { + removeComments: true, + collapseWhitespace: true, + conservativeCollapse: true, + removeEmptyAttributes: true + }, + files: [{ + expand: true, + cwd: 'dist/', + src: '**/*.html', + dest: 'dist/' + }] + } + }, + uglify: { + options: { + banner: '/*! <%= pkg.name %> (<%= pkg.repository.url %>) @ <%= grunt.template.today("yyyy-mm-dd") %> */\n' + + '// @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT\n', + footer: '\n// @license-end', + screwIE8: true + }, + dist: { + files: { + 'dist/pomf.min.js': [ + 'js/zepto.js', + 'js/cheesesteak.js', + 'js/cabinet.js', + 'js/pomf.js' + ] + } + } + }, + cssmin: { + options: { + banner: '/*! <%= pkg.name %> (<%= pkg.repository.url %>) @ <%= grunt.template.today("yyyy-mm-dd") %> */\n\n' + }, + dist: { + files: { + 'dist/pomf.min.css': [ + 'css/pomf.css' + ] + } + } + }, + mkdir: { + options: { + mode: 0700, + create: ['dist/img'] + } + }, + imagemin: { + dist: { + files: [{ + expand: true, + cwd: 'img/', + src: '**/*.{png,jpg,gif}', + dest: 'dist/img/' + }] + } + }, + copy: { + dist: { + files: [{ + expand: true, + cwd: 'static/', + src: '**', + dest: 'dist/' + }] + } + }, + jshint: { + options: { + curly: true, + undef: true + }, + all: [ + 'Gruntfile.js', + 'js/pomf.js', + 'js/cabinet.js', + 'js/cheesesteak.js' + ] + } + }); - grunt.loadNpmTasks('grunt-swig'); - grunt.loadNpmTasks('grunt-mkdir'); - grunt.loadNpmTasks('grunt-contrib-uglify'); - grunt.loadNpmTasks('grunt-contrib-htmlmin'); - grunt.loadNpmTasks('grunt-contrib-cssmin'); - grunt.loadNpmTasks('grunt-contrib-imagemin'); - grunt.loadNpmTasks('grunt-contrib-jshint'); - grunt.loadNpmTasks('grunt-contrib-copy'); + grunt.loadNpmTasks('grunt-swig'); + grunt.loadNpmTasks('grunt-mkdir'); + grunt.loadNpmTasks('grunt-contrib-uglify'); + grunt.loadNpmTasks('grunt-contrib-htmlmin'); + grunt.loadNpmTasks('grunt-contrib-cssmin'); + grunt.loadNpmTasks('grunt-contrib-imagemin'); + grunt.loadNpmTasks('grunt-contrib-jshint'); + grunt.loadNpmTasks('grunt-contrib-copy'); - grunt.registerTask('default', ['jshint', 'mkdir', 'swig', 'htmlmin', 'cssmin', 'uglify', 'imagemin', 'copy']); + grunt.registerTask('default', ['jshint', 'mkdir', 'swig', 'htmlmin', 'cssmin', 'uglify', 'imagemin', 'copy']); }; -- cgit v1.2.3