f68cbe80 by Michael Richards

Add grunt-contrib-concat. Used only to add a banner to the compiled coffeescript…

… file since grunt-contrib-coffee doesn't have that feature.
1 parent 6a53c401
......@@ -14,6 +14,13 @@ module.exports = (grunt) ->
files:
'lib/rivets.js': 'src/rivets.coffee'
concat:
all:
options:
banner: '<%= meta.banner %>'
files:
'lib/rivets.js': 'lib/rivets.js'
uglify:
all:
options:
......@@ -34,10 +41,11 @@ module.exports = (grunt) ->
tasks: ['build', 'spec']
grunt.loadNpmTasks 'grunt-contrib-coffee'
grunt.loadNpmTasks 'grunt-contrib-concat'
grunt.loadNpmTasks 'grunt-contrib-uglify'
grunt.loadNpmTasks 'grunt-contrib-jasmine'
grunt.loadNpmTasks 'grunt-contrib-watch'
grunt.registerTask 'default', ['watch']
grunt.registerTask 'spec', ['jasmine']
grunt.registerTask 'build', ['coffee', 'uglify']
grunt.registerTask 'build', ['coffee', 'concat', 'uglify']
......
......@@ -18,6 +18,7 @@
"devDependencies": {
"grunt": "~0.4.1",
"grunt-contrib-coffee": "~0.7.0",
"grunt-contrib-concat": "~0.3.0",
"grunt-contrib-uglify": "~0.2.0",
"grunt-contrib-jasmine": "~0.4.2",
"grunt-contrib-watch": "~0.3.1"
......