1
0
mirror of https://github.com/videojs/video.js.git synced 2024-12-31 03:11:11 +02:00

grunt now adds copyright comment to top of video.js

This commit is contained in:
Matthew McClure 2013-04-22 18:48:34 -07:00
parent 953ae8abec
commit 07d90fb6e0
2 changed files with 3 additions and 8 deletions

View File

@ -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');

View File

@ -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",