forked from jackzhang1204/sewise-player
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c93afe4
commit 2772410
Showing
8 changed files
with
143 additions
and
42 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
module.exports = function(grunt) { | ||
var comments = '/*\n' + | ||
' * Name: SewisePlayer framework 2.4.1\n' + | ||
' * Author: Jack Zhang\n' + | ||
' * Website: http://player.sewise.com\n' + | ||
' * Date: June 20, 2014\n' + | ||
' * Copyright: 2013-2014, Sewise\n' + | ||
' * Mail: [email protected]\n' + | ||
' * \n */\n\n'; | ||
|
||
var srcFiles = [ | ||
'src/com/sewise/base/core/Base.js', | ||
'src/com/sewise/interfaces/player/IVodPlayer.js', | ||
'src/com/sewise/interfaces/skin/IVodSkin.js', | ||
'src/com/sewise/interfaces/player/ILivePlayer.js', | ||
'src/com/sewise/interfaces/skin/ILiveSkin.js', | ||
'src/com/sewise/base/globals/GlobalConst.js', | ||
'src/com/sewise/base/events/CommandDispatcher.js', | ||
'src/com/sewise/base/events/Events.js', | ||
'src/com/sewise/base/utils/Utils.js', | ||
'src/com/sewise/base/params/GlobalParams.js', | ||
'src/com/sewise/base/params/H5Params.js', | ||
'src/com/sewise/base/medias/PlayerSkinLoader.js', | ||
'src/com/sewise/base/medias/vod/VodVideo.js', | ||
'src/com/sewise/base/medias/vod/VodAudio.js', | ||
'src/com/sewise/base/medias/vod/VodMediaConsole.js', | ||
'src/com/sewise/base/medias/vod/VodMediaStreams.js', | ||
'src/com/sewise/base/medias/live/LiveVideo.js', | ||
'src/com/sewise/base/medias/live/LiveMediaConsole.js', | ||
'src/com/sewise/base/medias/live/LiveMediaStreams.js', | ||
'src/com/sewise/base/medias/PlayerCommon.js', | ||
'src/com/sewise/base/external/FlashExternalInterface.js', | ||
'src/com/sewise/base/external/Html5ExternalInterface.js', | ||
'src/com/sewise/base/dom/ContextMenu.js', | ||
'src/com/sewise/base/SewisePlayer.js' | ||
]; | ||
|
||
grunt.initConfig({ | ||
pkg: grunt.file.readJSON('package.json'), | ||
concat: { | ||
options: { | ||
banner: comments, | ||
stripBanners: true, | ||
separator: '\n\n' | ||
}, | ||
dist: { | ||
src: srcFiles, | ||
dest: 'bin/<%= pkg.name %>.js' | ||
} | ||
}, | ||
uglify: { | ||
options: { | ||
banner: comments, | ||
compress: { | ||
drop_console: true | ||
} | ||
}, | ||
my_target: { | ||
files: { | ||
'bin/<%= pkg.name %>.min.js': srcFiles | ||
} | ||
} | ||
}, | ||
jshint: { | ||
files: ['gruntfile.js', srcFiles], | ||
options: { | ||
globals: { | ||
jQuery: true, | ||
console: true, | ||
module: true | ||
} | ||
} | ||
}, | ||
watch: { | ||
files: ['<%= jshint.files %>'], | ||
tasks: ['jshint'] | ||
} | ||
|
||
|
||
}); | ||
|
||
grunt.loadNpmTasks('grunt-contrib-concat'); | ||
grunt.loadNpmTasks('grunt-contrib-uglify'); | ||
grunt.loadNpmTasks('grunt-contrib-jshint'); | ||
grunt.loadNpmTasks('grunt-contrib-watch'); | ||
|
||
grunt.registerTask('test', ['jshint']); | ||
grunt.registerTask('default', ['uglify', 'concat', 'jshint']); | ||
|
||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,45 @@ | ||
{ | ||
"name": "Sewise Player", | ||
"version": "1.0.0", | ||
"name": "sewise.player", | ||
"description": "The HTML5 Video Player Framework", | ||
"homepage": "http://player.sewise.com/", | ||
"version": "2.4.1", | ||
"keywords": [ | ||
"html5", | ||
"skins", | ||
"video", | ||
"player", | ||
"web player", | ||
"vod player", | ||
"live player", | ||
"html5 player", | ||
"flash player", | ||
"sewise player", | ||
"html5 css skins", | ||
"free html5 player", | ||
"javascript player", | ||
"stream media player", | ||
"opensource html5 player" | ||
"html5", | ||
"skins", | ||
"video", | ||
"player", | ||
"web player", | ||
"vod player", | ||
"live player", | ||
"html5 player", | ||
"flash player", | ||
"sewise player", | ||
"html5 css skins", | ||
"free html5 player", | ||
"javascript player", | ||
"stream media player", | ||
"opensource html5 player" | ||
], | ||
"dependencies": { | ||
"jquery": ">1.6.0", | ||
"sewise server": ">1.0.0" | ||
"homepage": "http://player.sewise.com/", | ||
"author": "Sewise, Inc.", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/jackzhang1204/sewise-player.git" | ||
}, | ||
"licenses": [ | ||
{ | ||
"type": "MIT", | ||
"url": "http://www.opensource.org/licenses/MIT" | ||
} | ||
], | ||
"repositories": [ | ||
{ | ||
"type": "git", | ||
"url": "https://github.com/jackzhang1204/sewise-player.git" | ||
} | ||
], | ||
"github": "https://github.com/jackzhang1204/sewise-player", | ||
"main": "player/sewise.player.min.js" | ||
"bugs": { | ||
"url": "https://github.com/jackzhang1204/sewise-player/issues" | ||
}, | ||
"license": { | ||
"type": "MIT", | ||
"url": "https://github.com/jackzhang1204/sewise-player/blob/master/LICENSE" | ||
}, | ||
"devDependencies": { | ||
"grunt": "~0.4.5", | ||
"grunt-contrib-concat": "~0.4.0", | ||
"grunt-contrib-uglify": "~0.5.0", | ||
"grunt-contrib-jshint": "~0.10.0", | ||
"grunt-contrib-watch": "~0.6.1" | ||
}, | ||
"engines": { | ||
"node": "~0.10.1" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters