]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
Fix grunt release warning message
authorIskren Chernev <iskren.chernev@gmail.com>
Fri, 22 Aug 2014 13:32:07 +0000 (16:32 +0300)
committerIskren Chernev <iskren.chernev@gmail.com>
Fri, 22 Aug 2014 13:32:07 +0000 (16:32 +0300)
Gruntfile.js

index a67a70472aeff3fa8c14dd37c865dc2718afe84f..8cf93c4678688e76feb962de2833902100ec4568 100644 (file)
@@ -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'
     ]);
 };