Skip to content

Commit

Permalink
Added: Grunt task to put current version into minified source.
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasjbradley committed Sep 27, 2013
1 parent 799d544 commit 60fbe71
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
13 changes: 13 additions & 0 deletions Gruntfile.coffee
Expand Up @@ -35,9 +35,22 @@ module.exports = (grunt) ->
'jquery.signaturepad.js'
]

replace:
version:
src: [
'jquery.signaturepad.min.js'
]
overwrite: true
replacements: [{
from: /\{\{version\}\}/
to: '<%= pkg.version %>'
}]


require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks)

grunt.registerTask 'default', [
'jshint'
'uglify'
'replace'
]

0 comments on commit 60fbe71

Please sign in to comment.