Permalink
Browse files

Added gruntfile for uglify and simpler development down the road.

  • Loading branch information...
Sebobo committed Mar 12, 2013
1 parent 9c5ad74 commit 4407dde0ab24bb9a2f667fd382d3265b59a96057
Showing with 32 additions and 2 deletions.
  1. +2 −2 .gitignore
  2. +30 −0 Gruntfile.coffee
View
@@ -1,4 +1,4 @@
-
+node_modules
.project
-.DS_Store
+.DS_Store
View
@@ -0,0 +1,30 @@
+module.exports = (grunt) ->
+
+ grunt.loadNpmTasks 'grunt-contrib-uglify'
+
+ # Project configuration.
+ grunt.initConfig
+ pkg: grunt.file.readJSON 'wookmark.jquery.json'
+ meta:
+ banner: '/*!\n' +
+ 'jQuery <%= pkg.name %> plugin\n' +
+ '@name jquery.<%= pkg.name %>.js\n' +
+ '@author Christoph Ono (chri@sto.ph or @gbks)\n' +
+ '@author Sebastian Helzle (sebastian@helzle.net or @sebobo)\n' +
+ '@version <%= pkg.version %>\n' +
+ '@date <%= grunt.template.today("mm/dd/yyyy") %>\n' +
+ '@category jQuery plugin\n' +
+ '@copyright (c) 2009-2013 Christoph Ono (www.wookmark.com)\n' +
+ '@license Licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) license.\n' +
+ '*/\n'
+ uglify:
+ dist:
+ options:
+ banner: '<%= meta.banner %>'
+ files:
+ 'jquery.<%= pkg.name %>.min.js': ['jquery.<%= pkg.name %>.js']
+
+ # Default task which watches, sass and coffee.
+ #grunt.registerTask 'default', ['watch']
+ # Release task to run tests then minify js and css
+ grunt.registerTask 'release', ['uglify']

0 comments on commit 4407dde

Please sign in to comment.