From: Iskren Chernev Date: Fri, 22 Aug 2014 13:32:07 +0000 (+0300) Subject: Fix grunt release warning message X-Git-Tag: 2.8.2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8848b5d20d0bc27504cdc131635efe75dfe5bb90;p=thirdparty%2Fmoment.git Fix grunt release warning message --- diff --git a/Gruntfile.js b/Gruntfile.js index a67a70472..8cf93c467 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -100,14 +100,18 @@ module.exports = function (grunt) { }, uglify : { - target: { + main: { files: { - 'min/moment-with-locales.min.js' : 'min/moment-with-locales.js', - 'min/moment-with-customlocales.min.js' : 'min/moment-with-customlocales.js', - 'min/locales.min.js' : 'min/locales.js', + 'min/moment-with-locales.min.js' : 'min/moment-with-locales.js', + 'min/locales.min.js' : 'min/locales.js', 'min/moment.min.js' : 'moment.js' } }, + customlocales: { + files: { + 'min/moment-with-customlocales.min.js' : 'min/moment-with-customlocales.js' + } + }, options: { mangle: true, compress: { @@ -221,6 +225,6 @@ module.exports = function (grunt) { // Task to be run when releasing a new version grunt.registerTask('release', [ 'jshint', 'nodeunit', 'concat', 'embedLocales', - 'component', 'package_json', 'uglify' + 'component', 'package_json', 'uglify:main' ]); };