From 37c1a1acd310ecd88a61b851856406d48d4cc1bb Mon Sep 17 00:00:00 2001 From: Pierre Rudloff Date: Sat, 20 Aug 2016 13:54:14 +0200 Subject: [PATCH] grunt-fixpack --- Gruntfile.js | 8 +++++++- package.json | 1 + 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Gruntfile.js b/Gruntfile.js index 2b54d71..6e13bd6 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -85,6 +85,11 @@ module.exports = function (grunt) { format: true } } + }, + fixpack: { + package: { + src: 'package.json' + } } } ); @@ -99,9 +104,10 @@ module.exports = function (grunt) { grunt.loadNpmTasks('grunt-jslint'); grunt.loadNpmTasks('grunt-phpdocumentor'); grunt.loadNpmTasks('grunt-jsonlint'); + grunt.loadNpmTasks('grunt-fixpack'); grunt.registerTask('default', ['uglify', 'cssmin']); - grunt.registerTask('lint', ['phpcs', 'jslint', 'jsonlint']); + grunt.registerTask('lint', ['jslint', 'fixpack', 'jsonlint', 'phpcs']); grunt.registerTask('test', ['phpunit']); grunt.registerTask('doc', ['phpdocumentor']); grunt.registerTask('release', ['default', 'githash', 'compress']); diff --git a/package.json b/package.json index aafe5c1..fcaf214 100644 --- a/package.json +++ b/package.json @@ -14,6 +14,7 @@ "devDependencies": { "grunt-contrib-compress": "~1.3.0", "grunt-contrib-watch": "~1.0.0", + "grunt-fixpack": "~0.1.0", "grunt-githash": "~0.1.3", "grunt-jslint": "~1.1.14", "grunt-jsonlint": "~1.1.0",