diff options
Diffstat (limited to 'Gruntfile.js')
| -rw-r--r-- | Gruntfile.js | 62 |
1 files changed, 8 insertions, 54 deletions
diff --git a/Gruntfile.js b/Gruntfile.js index a4f4088..7e01c96 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -16,32 +16,12 @@ module.exports = function (grunt) { 'pages/faq.swig', 'pages/tools.swig', 'pages/other.swig', - 'pages/nojs.swig', - 'pages/indexca.swig', - 'pages/faqca.swig', - 'pages/toolsca.swig', - 'pages/otherca.swig', - 'pages/nojsca.swig' + 'pages/nojs.swig' ], siteUrl: 'https://pantsu.cat/', production: false, } }, - htmlmin: { - dist: { - options: { - removeComments: true, - collapseWhitespace: 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' + @@ -70,22 +50,6 @@ module.exports = function (grunt) { } } }, - mkdir: { - options: { - mode: 0700, - create: ['dist/img'] - } - }, - imagemin: { - dist: { - files: [{ - expand: true, - cwd: 'img/', - src: '**/*.{png,jpg,gif}', - dest: 'dist/img/' - }] - } - }, copy: { dist: { files: [{ @@ -93,31 +57,21 @@ module.exports = function (grunt) { cwd: 'static/', src: '**', dest: 'dist/' + }, + { + expand: true, + cwd: 'img/', + src: '**', + dest: 'dist/img/' }] } - }, - jshint: { - options: { - curly: true, - undef: true - }, - all: [ - '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.registerTask('default', ['mkdir', 'swig', 'htmlmin', 'cssmin', 'uglify', 'imagemin', 'copy']); - grunt.registerTask('test', ['jshint']); + grunt.registerTask('default', ['swig', 'cssmin', 'uglify', 'copy']); }; |
