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) -> ...@@ -14,6 +14,13 @@ module.exports = (grunt) ->
14 files: 14 files:
15 'lib/rivets.js': 'src/rivets.coffee' 15 'lib/rivets.js': 'src/rivets.coffee'
16 16
17 concat:
18 all:
19 options:
20 banner: '<%= meta.banner %>'
21 files:
22 'lib/rivets.js': 'lib/rivets.js'
23
17 uglify: 24 uglify:
18 all: 25 all:
19 options: 26 options:
...@@ -34,10 +41,11 @@ module.exports = (grunt) -> ...@@ -34,10 +41,11 @@ module.exports = (grunt) ->
34 tasks: ['build', 'spec'] 41 tasks: ['build', 'spec']
35 42
36 grunt.loadNpmTasks 'grunt-contrib-coffee' 43 grunt.loadNpmTasks 'grunt-contrib-coffee'
44 grunt.loadNpmTasks 'grunt-contrib-concat'
37 grunt.loadNpmTasks 'grunt-contrib-uglify' 45 grunt.loadNpmTasks 'grunt-contrib-uglify'
38 grunt.loadNpmTasks 'grunt-contrib-jasmine' 46 grunt.loadNpmTasks 'grunt-contrib-jasmine'
39 grunt.loadNpmTasks 'grunt-contrib-watch' 47 grunt.loadNpmTasks 'grunt-contrib-watch'
40 48
41 grunt.registerTask 'default', ['watch'] 49 grunt.registerTask 'default', ['watch']
42 grunt.registerTask 'spec', ['jasmine'] 50 grunt.registerTask 'spec', ['jasmine']
43 grunt.registerTask 'build', ['coffee', 'uglify'] 51 grunt.registerTask 'build', ['coffee', 'concat', 'uglify']
......
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
18 "devDependencies": { 18 "devDependencies": {
19 "grunt": "~0.4.1", 19 "grunt": "~0.4.1",
20 "grunt-contrib-coffee": "~0.7.0", 20 "grunt-contrib-coffee": "~0.7.0",
21 "grunt-contrib-concat": "~0.3.0",
21 "grunt-contrib-uglify": "~0.2.0", 22 "grunt-contrib-uglify": "~0.2.0",
22 "grunt-contrib-jasmine": "~0.4.2", 23 "grunt-contrib-jasmine": "~0.4.2",
23 "grunt-contrib-watch": "~0.3.1" 24 "grunt-contrib-watch": "~0.3.1"
......