Skip to content

Commit

Permalink
Modified package.json to include uglify. Added a Gruntfile.
Browse files Browse the repository at this point in the history
  • Loading branch information
TalAter committed Sep 7, 2013
1 parent e5ce302 commit bc42bd9
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
25 changes: 25 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
module.exports = function(grunt) {

// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
uglify: {
options: {
preserveComments: 'some'
},
my_target: {
files: {
'annyang.min.js': ['annyang.js'],
'sites/facebook.min.js': ['annyang.js', 'sites/facebook.js']
}
}
}
});

// Load the plugin that provides the "uglify" task.
grunt.loadNpmTasks('grunt-contrib-uglify');

// Default task(s).
grunt.registerTask('default', ['uglify']);

};
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,9 @@
"license": "MIT",
"bugs": {
"url": "https://github.com/TalAter/annyang/issues"
},
"devDependencies": {
"grunt": "~0.4.1",
"grunt-contrib-uglify": "~0.2.4"
}
}

0 comments on commit bc42bd9

Please sign in to comment.