File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change 1
1
"use strict" ;
2
2
3
3
module . exports = function ( grunt ) {
4
+ const currentYear = new Date ( ) . getFullYear ( ) ;
4
5
grunt . initConfig ( {
5
6
nodeunit : {
6
7
zones : [
@@ -12,16 +13,20 @@ module.exports = function(grunt) {
12
13
} ,
13
14
14
15
build : {
15
- 'moment-timezone-with-data' : true ,
16
- 'moment-timezone-with-data-2012-2022' : [ 2012 , 2022 ]
16
+ 'moment-timezone-with-data' : true ,
17
+ 'moment-timezone-with-data-1970-2030' : [ 1970 , 2030 ] ,
18
+ 'moment-timezone-with-data-2012-2022' : [ 2012 , 2022 ] ,
19
+ 'moment-timezone-with-data-10-year-range' : [ currentYear - 5 , currentYear + 5 ]
17
20
} ,
18
21
19
22
uglify : {
20
23
all : {
21
24
files : {
22
- 'builds/moment-timezone.min.js' : 'moment-timezone.js' ,
23
- 'builds/moment-timezone-with-data.min.js' : 'builds/moment-timezone-with-data.js' ,
24
- 'builds/moment-timezone-with-data-2012-2022.min.js' : 'builds/moment-timezone-with-data-2012-2022.js'
25
+ 'builds/moment-timezone.min.js' : 'moment-timezone.js' ,
26
+ 'builds/moment-timezone-with-data.min.js' : 'builds/moment-timezone-with-data.js' ,
27
+ 'builds/moment-timezone-with-data-1970-2030.min.js' : 'builds/moment-timezone-with-data-1970-2030.js' ,
28
+ 'builds/moment-timezone-with-data-2012-2022.min.js' : 'builds/moment-timezone-with-data-2012-2022.js' ,
29
+ 'builds/moment-timezone-with-data-10-year-range.min.js' : 'builds/moment-timezone-with-data-10-year-range.js'
25
30
}
26
31
} ,
27
32
options : {
You can’t perform that action at this time.
0 commit comments