Annoto Kaltura Plugin
npm install
npm i -g gulpnpm run startnpm run buildnpm run build:stagingMake sure to set environmental variables:
AWS_S3_ACCESS_ID
AWS_S3_SECRETTo upload run:
gulp publish
gulp publish --prodgulp pagespeed
kWidget.addReadyCallback( function(playerId){
var kdp = document.getElementById(playerId);
kdp.kBind( 'annotoPluginReady', function(api) {
console.log('Annoto is ready and the API can now be used');
kdp.kUnbind('annotoPluginReady');
});
});.babelrc contains the transpiler configuration.
It uses the babel-preset-env.
To find out the list of browsers for the browserlist configuration check out browserl.ist
As an alternative configuration (instead of using the env preset):
{
"presets": [
[
"es2015",
{
"modules": false,
"loose": true
}
],
"stage-1"
],
"plugins": [
"syntax-flow",
"transform-flow-strip-types",
"transform-class-properties"
],
"retainLines": true
}Airbnb does not allow for of loops: Issue.
Airbnb does not allow underscore variables no-underscore-dangle but override it in .eslintc to use convention of internal class methods. Nothing to do with privacy.