From 8848b5d20d0bc27504cdc131635efe75dfe5bb90 Mon Sep 17 00:00:00 2001 From: Iskren Chernev Date: Fri, 22 Aug 2014 16:32:07 +0300 Subject: [PATCH] Fix grunt release warning message --- Gruntfile.js | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) 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' ]); }; -- 2.47.2