forked from germanysbestkeptsecret/Wookmark-jQuery
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.coffee
30 lines (27 loc) · 1.09 KB
/
Gruntfile.coffee
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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 ([email protected] or @gbks)\n' +
'@author Sebastian Helzle ([email protected] 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']