Skip to content

Commit

Permalink
Generate multiple truncated files of different sizes
Browse files Browse the repository at this point in the history
Closes #614 & #697
  • Loading branch information
mattjohnsonpint committed Apr 18, 2019
1 parent 9e3a9b8 commit b2fc011
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"use strict";

module.exports = function(grunt) {
const currentYear = new Date().getFullYear();
grunt.initConfig({
nodeunit : {
zones : [
Expand All @@ -12,16 +13,20 @@ module.exports = function(grunt) {
},

build : {
'moment-timezone-with-data' : true,
'moment-timezone-with-data-2012-2022' : [2012, 2022]
'moment-timezone-with-data' : true,
'moment-timezone-with-data-1970-2030' : [1970, 2030],
'moment-timezone-with-data-2012-2022' : [2012, 2022],
'moment-timezone-with-data-10-year-range' : [currentYear - 5, currentYear + 5]
},

uglify : {
all: {
files: {
'builds/moment-timezone.min.js' : 'moment-timezone.js',
'builds/moment-timezone-with-data.min.js' : 'builds/moment-timezone-with-data.js',
'builds/moment-timezone-with-data-2012-2022.min.js' : 'builds/moment-timezone-with-data-2012-2022.js'
'builds/moment-timezone.min.js' : 'moment-timezone.js',
'builds/moment-timezone-with-data.min.js' : 'builds/moment-timezone-with-data.js',
'builds/moment-timezone-with-data-1970-2030.min.js' : 'builds/moment-timezone-with-data-1970-2030.js',
'builds/moment-timezone-with-data-2012-2022.min.js' : 'builds/moment-timezone-with-data-2012-2022.js',
'builds/moment-timezone-with-data-10-year-range.min.js' : 'builds/moment-timezone-with-data-10-year-range.js'
}
},
options: {
Expand Down

0 comments on commit b2fc011

Please sign in to comment.