From 07d90fb6e06255a7d4525253035fb2a3aaa310ff Mon Sep 17 00:00:00 2001 From: Matthew McClure Date: Mon, 22 Apr 2013 18:48:34 -0700 Subject: [PATCH] grunt now adds copyright comment to top of video.js --- Gruntfile.js | 9 ++------- package.json | 2 +- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index 9e456e1d5..8bac0b7bb 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -127,7 +127,7 @@ module.exports = function(grunt) { + ' --js_output_file=' + dest + ' --create_source_map ' + dest + '.map --source_map_format=V3' + ' --jscomp_warning=checkTypes --warning_level=VERBOSE' - + ' --output_wrapper "(function() {%output%})();//@ sourceMappingURL=video.js.map"'; + + ' --output_wrapper "/*! ' + pkg.copyright + ' */\n (function() {%output%})();//@ sourceMappingURL=video.js.map"'; files.forEach(function(file){ command += ' --js='+file; @@ -158,12 +158,7 @@ module.exports = function(grunt) { // TODO: create semver folders (4.1.1, 4.1, 4, and latest) // grunt copy could be used but is currently broken and needs an update - // Add the copyright to minified before copying over - var original = grunt.file.read('build/files/minified.video.js'); - var copyright = '/** ' + pkg.copyright + ' **/\n'; - grunt.file.write('dist/video-js/video.js', copyright + original); - - // grunt.file.copy('build/files/minified.video.js', 'dist/video-js/video.js'); + grunt.file.copy('build/files/minified.video.js', 'dist/video-js/video.js'); grunt.file.copy('build/files/video-js.css', 'dist/video-js/video-js.css'); grunt.file.copy('build/files/video-js.png', 'dist/video-js/video-js.png'); grunt.file.copy('build/files/video-js.swf', 'dist/video-js/video-js.swf'); diff --git a/package.json b/package.json index 5095dd14f..51ec0a26c 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "video.js", "description": "An HTML5 and Flash video player with a common API and skin for both.", "version": "3.2.3", - "copyright": "© Copyright 2013 Brightcove, Inc. https://github.com/zencoder/video-js/blob/master/LICENSE", + "copyright": "Copyright 2013 Brightcove, Inc. https://github.com/zencoder/video-js/blob/master/LICENSE", "keywords": [ "html5", "flash",