Skip to content

Commit

Permalink
Adding minified files
Browse files Browse the repository at this point in the history
  • Loading branch information
timrwood committed May 18, 2013
1 parent aa7c972 commit aa1f5be
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
11 changes: 11 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,16 @@ module.exports = function(grunt) {
"tests/**/*.js"
]
},
uglify : {
all: {
files: {
'min/moment-timezone.min.js' : 'moment-timezone.js'
}
},
options: {
report : 'gzip'
}
},
jshint: {
all: 'moment-timezone.js'
}
Expand All @@ -14,6 +24,7 @@ module.exports = function(grunt) {

grunt.loadNpmTasks('grunt-contrib-nodeunit');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-uglify');

grunt.registerTask('default', ['jshint', 'nodeunit']);
};
1 change: 1 addition & 0 deletions min/moment-timezone.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
"devDependencies" : {
"grunt" : "0.4.1",
"grunt-contrib-nodeunit" : "0.1.2",
"grunt-contrib-jshint" : "0.4.3"
"grunt-contrib-jshint" : "0.4.3",
"grunt-contrib-uglify" : "0.2.0"
},
"scripts": {
"test": "grunt"
Expand Down

0 comments on commit aa1f5be

Please sign in to comment.