From: Igor Lima Date: Tue, 19 Feb 2013 17:04:01 +0000 (-0300) Subject: Add grunt-contrib-concat plugin X-Git-Tag: 2.1.0~55^2~3^2^2~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5b6ebc5ef94600dda0548e1acaa0cf8389060c23;p=thirdparty%2Fmoment.git Add grunt-contrib-concat plugin --- diff --git a/Gruntfile.js b/Gruntfile.js index cb3fc5c8e..eec6bea87 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -22,7 +22,7 @@ module.exports = function (grunt) { grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), - concatlang : { + concat : { langs: { src: ['lang/*.js'], dest: 'min/langs.js' @@ -99,10 +99,11 @@ module.exports = function (grunt) { // These plugins provide necessary tasks. grunt.loadNpmTasks('grunt-contrib-nodeunit'); grunt.loadNpmTasks('grunt-contrib-jshint'); + grunt.loadNpmTasks('grunt-contrib-concat'); // Default task. grunt.registerTask('default', ['jshint', 'nodeunit']); // Task to be run when releasing a new version - grunt.registerTask('release', ['jshint', 'nodeunit', 'minwithcomments', 'concatlang', 'minlang']); + grunt.registerTask('release', ['jshint', 'nodeunit', 'minwithcomments', 'concat', 'minlang']); }; diff --git a/package.json b/package.json index 1faa8ef66..f7606bcb0 100755 --- a/package.json +++ b/package.json @@ -39,7 +39,8 @@ "uglify-js" : "1.3.4", "grunt" : "latest", "grunt-contrib-jshint" : "latest", - "grunt-contrib-nodeunit" : "latest" + "grunt-contrib-nodeunit" : "latest", + "grunt-contrib-concat" : "latest" }, "scripts": { "test": "grunt"