diff --git a/gruntFile.js b/gruntFile.js index 2b4a5f6..96ad6e2 100644 --- a/gruntFile.js +++ b/gruntFile.js @@ -9,7 +9,7 @@ module.exports = function(grunt) { // Default task. grunt.registerTask('default', ['jshint', 'karma:unit']); grunt.registerTask('serve', ['karma:continuous', 'dist', 'build:gh-pages', 'connect:continuous', 'watch']); - grunt.registerTask('dist', ['ngmin', 'surround', 'uglify' ]); + grunt.registerTask('dist', ['ngmin', 'surround:main', 'uglify', 'surround:banner' ]); grunt.registerTask('coverage', ['jshint', 'karma:coverage']); grunt.registerTask('junit', ['jshint', 'karma:junit']); @@ -141,16 +141,25 @@ module.exports = function(grunt) { }, surround: { - options: { - prepend: ['(function(window, angular, undefined) {', - '\'use strict\';'].join('\n'), - append: '})(window, window.angular);' - }, main: { expand: true, cwd: 'src', src: ['*.js'], - dest: 'dist' + dest: 'dist', + options: { + prepend: ['(function(window, angular, undefined) {', + '\'use strict\';'].join('\n'), + append: '})(window, window.angular);' + } + }, + banner: { + expand: true, + cwd: 'dist', + src: ['*.js'], + dest: 'dist', + options: { + prepend: '<%= meta.banner %>' + } } },