-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Just run build or start scripts to start hacking for now
- Loading branch information
Showing
10 changed files
with
6,104 additions
and
0 deletions.
There are no files selected for viewing
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,14 @@ | ||
{ | ||
"presets": ["es2015"], | ||
"plugins": [ | ||
"transform-flow-strip-types", | ||
"transform-class-properties" | ||
], | ||
"env": { | ||
"test": { | ||
"plugins": [ | ||
"istanbul" | ||
] | ||
} | ||
} | ||
} |
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,10 @@ | ||
# http://editorconfig.org | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
indent_size = 2 | ||
end_of_line = lf | ||
indent_style = space | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true |
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,6 @@ | ||
/flow-typed/**/*.js | ||
/coverage | ||
/dist | ||
karma.conf.js | ||
webpack.config.js | ||
|
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,28 @@ | ||
{ | ||
"parser": "babel-eslint", | ||
"extends": [ | ||
"eslint:recommended", | ||
"plugin:flowtype/recommended" | ||
], | ||
"plugins": [ | ||
"import", | ||
"flowtype", | ||
"mocha-no-only" | ||
], | ||
"env": { | ||
"browser": true, | ||
"es6": true, | ||
"mocha": true, | ||
"amd": true, | ||
"commonjs": true | ||
}, | ||
"globals": { | ||
"should": true, | ||
"sinon": true | ||
}, | ||
"rules": { | ||
"mocha-no-only/mocha-no-only": [ | ||
"error" | ||
] | ||
} | ||
} |
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,43 @@ | ||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
|
||
# Runtime data | ||
pids | ||
*.pid | ||
*.seed | ||
|
||
# Directory for instrumented libs generated by jscoverage/JSCover | ||
lib-cov | ||
|
||
# Coverage directory used by tools like istanbul | ||
coverage | ||
|
||
# nyc test coverage | ||
.nyc_output | ||
|
||
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) | ||
.grunt | ||
|
||
# node-waf configuration | ||
.lock-wscript | ||
|
||
# Compiled binary addons (http://nodejs.org/api/addons.html) | ||
build/Release | ||
|
||
# Dependency directories | ||
node_modules | ||
jspm_packages | ||
|
||
# Optional npm cache directory | ||
.npm | ||
|
||
# Optional REPL history | ||
.node_repl_history | ||
|
||
dist | ||
|
||
.idea | ||
|
||
|
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,83 @@ | ||
{ | ||
"name": "KalturaPlayerJS", | ||
"version": "0.1.0", | ||
"main": "dist/kaltura-player.js", | ||
"scripts": { | ||
"clean": "rm -rf ./dist", | ||
"prebuild": "npm run clean", | ||
"build": "webpack", | ||
"dev": "webpack --progress --colors --watch", | ||
"test": "NODE_ENV=test ./node_modules/.bin/karma start --single-run", | ||
"test:watch": "NODE_ENV=test ./node_modules/.bin/karma start --auto-watch", | ||
"start": "webpack-dev-server", | ||
"release": "NODE_ENV=production npm run build -- -p && git add --all dist && git commit -m'Update dist' && standard-version", | ||
"eslint": "eslint . --color", | ||
"flow": "flow check", | ||
"prepush": "npm run eslint & npm run test & npm run flow" | ||
}, | ||
"dependencies": { | ||
"hls.js": "^0.7.9", | ||
"playkit-js": "https://github.com/kaltura/playkit-js.git#develop", | ||
"playkit-js-dash": "https://github.com/kaltura/playkit-js-dash.git#develop", | ||
"playkit-js-hls": "https://github.com/kaltura/playkit-js-hls.git#develop", | ||
"playkit-js-providers": "https://github.com/kaltura/playkit-js-providers.git#develop", | ||
"playkit-js-ui": "https://github.com/kaltura/playkit-js-ui.git#develop", | ||
"shaka-player": "^2.1.3" | ||
}, | ||
"devDependencies": { | ||
"babel-cli": "^6.18.0", | ||
"babel-core": "^6.18.2", | ||
"babel-eslint": "^7.1.1", | ||
"babel-loader": "^6.2.7", | ||
"babel-plugin-istanbul": "^4.0.0", | ||
"babel-plugin-transform-class-properties": "^6.22.0", | ||
"babel-plugin-transform-flow-strip-types": "^6.22.0", | ||
"babel-preset-es2015": "^6.18.0", | ||
"babel-register": "^6.23.0", | ||
"chai": "^3.5.0", | ||
"cross-env": "^3.1.4", | ||
"css-loader": "^0.28.4", | ||
"eslint": "^3.10.0", | ||
"eslint-loader": "^1.6.1", | ||
"eslint-plugin-flowtype": "^2.30.0", | ||
"eslint-plugin-import": "^2.2.0", | ||
"eslint-plugin-mocha-no-only": "^0.0.5", | ||
"expose-loader": "^0.7.3", | ||
"flow-bin": "latest", | ||
"imports-loader": "^0.7.1", | ||
"istanbul": "^0.4.5", | ||
"karma": "^1.5.0", | ||
"karma-chai": "^0.1.0", | ||
"karma-chrome-launcher": "^2.0.0", | ||
"karma-cli": "^1.0.1", | ||
"karma-coverage": "^1.1.1", | ||
"karma-mocha": "^1.3.0", | ||
"karma-sourcemap-loader": "^0.3.7", | ||
"karma-webpack": "^2.0.2", | ||
"mocha": "^3.2.0", | ||
"mocha-cli": "^1.0.1", | ||
"nyc": "^10.1.2", | ||
"sinon": "^2.0.0", | ||
"sinon-chai": "^2.8.0", | ||
"source-map-loader": "^0.2.1", | ||
"standard-version": "^4.0.0", | ||
"style-loader": "^0.18.2", | ||
"uglifyjs-webpack-plugin": "^0.4.3", | ||
"webpack": "latest", | ||
"webpack-dev-server": "latest" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/kaltura/KalturaPlayerJS" | ||
}, | ||
"keywords": [ | ||
"kaltura", | ||
"player", | ||
"html5 player" | ||
], | ||
"license": "AGPLV3", | ||
"bugs": { | ||
"url": "https://github.com/kaltura/KalturaPlayerJS/issues" | ||
}, | ||
"homepage": "https://github.com/kaltura/KalturaPlayerJS" | ||
} |
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,11 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>Title</title> | ||
<script src="./Kaltura-player.js" type="text/javascript"></script> | ||
<div id="root"></div> | ||
</head> | ||
<body> | ||
</body> | ||
</html> |
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,9 @@ | ||
import Provider from 'playkit-js-providers/dist/ovpProvider'; | ||
import * as Playkit from 'playkit-js'; | ||
import PlaykitUI from 'playkit-js-ui/dist/playkit-js-ui'; | ||
import '../node_modules/playkit-js-ui/src/styles/style.css'; | ||
import 'playkit-js-hls'; | ||
import 'playkit-js-dash'; | ||
|
||
export {Playkit, Provider, PlaykitUI}; | ||
|
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,51 @@ | ||
'use strict'; | ||
|
||
const webpack = require("webpack"); | ||
const path = require("path"); | ||
const libraryName = "KalturaPlayer"; | ||
const PROD = (process.env.NODE_ENV === 'production'); | ||
|
||
let plugins = 1 ? [ | ||
new webpack.optimize.UglifyJsPlugin({sourceMap: true}) | ||
] : []; | ||
const sourceMaps = 'source-map'; | ||
module.exports = { | ||
context: __dirname + "/src", | ||
entry: { | ||
"Kaltura-player": "index.js" | ||
}, | ||
output: { | ||
path: __dirname + "/dist", | ||
filename: '[name].js', | ||
library: libraryName, | ||
libraryTarget: 'umd', | ||
umdNamedDefine: true | ||
}, | ||
devtool: sourceMaps, | ||
plugins: plugins, | ||
module: { | ||
rules: [{ | ||
test: /\.js$/, | ||
use: [{ | ||
loader: "babel-loader", | ||
// options: { presets: ["es2015"] } | ||
}], | ||
exclude: [/node_modules/] | ||
}, { | ||
test: /\.js$/, | ||
use: ["source-map-loader"], | ||
enforce: "pre" | ||
}, | ||
{ | ||
test: /\.css$/, | ||
use: ['style-loader', 'css-loader'] | ||
} | ||
] | ||
}, | ||
devServer: { | ||
contentBase: __dirname + "/src" | ||
}, | ||
resolve: { | ||
modules: [path.resolve(__dirname, "src"), "node_modules"] | ||
} | ||
}; |
Oops, something went wrong.