onlywatch v7.2.7
onlywatch 
web player core project
Installation
For npm user
$ npm install --save onlywatchFor yarn user
$ yarn add onlywatchUsage
var createVideoJsPlayer = require('onlywatch');
var player = createVideoJsPlayer(VIDEO_ID, 'hlsjs', VIDEO_OPTIONS);By using import
import createVideoJsPlayer from 'onlywatch'
var player = createVideoJsPlayer(VIDEO_ID, 'hlsjs', VIDEO_OPTIONS)Development Locally
$ yarn run dev # to start compiler and watching
$ yarn run dev:server # to start local http server that include some
# basic html and script to render the player.Development by module link
For jspm user
- do some changes, run
webpack --progress, commit them - modify package.json to upgrade the version property
- run
jspm link npm:onlywatch -y - go the package that used onlywatch, and run
jspm install npm:onlywatch --link
For yarn user
- do some changes, run
webpack --progress, commit them - modify package.json to upgrade the version property
- run
yarn linkin onlywatch package - go the package that used onlywatch, and run
yarn link onlywatch
Deploy Flow
do NOT change
versionproperty that inpackage.json(will update automatically)do NOT change
CHANGELOG.md(will update automatically)do NOT add tag (will add automatically)
do some changes, commit they, following Commit Message Guidelines
do
yarn run buildand commit it with messagechore: build dist(this can be done by runyarn run commit-dist)change to branch: master then do
yarn run changelogAccording to the content of commit, if have feat commits, will bump minor version. If bugfixs commits only, will bump patch version. If commit have
BREAKING CHANGE, will bump major version.do
git push --follow-tags origin masterandnpm publish
Step 1. Build and Publish
$ yarn run pre-publish
$ git push --follow-tags origin master; npm publishThese commands will
- build dist files
- commit changelog
- push to gitlab
- publish to npm
Step 2. Deploy to GCS
$ yarn deploy -- [-e {staging|rc|production}] [-r] [-s]- -e: environment
- -r: redirect to latest version
- -s: skip build dist (if you already did
yarn publishbefore, than you can skip build dist)
for example, deploy to staging with redirect to latest version and skip build
$ yarn deploy -- -e=staging -r -sStep 3. Redirect to Latest Version
Sometimes we don't want to redirect immediately after deploy. When you only want to redirect to certain version of player, you can use this command.
Default is redirect to current version in package.json.
$ yarn deploy:redirect -- [-e {staging|rc|production}] [-v {$version}]for example, redirect latest version to 6.21.4 on rc
$ yarn deploy:redirect -- -e rc -v 6.21.4Path to player assets
player assets will be deployed to google cloud storage and can be accessed by https://${straas-app-host}/player/.*
for example on staging, entries of latest version assets will be
https://app-staging.straas.net/player/player.js
https://app-staging.straas.net/player/player.cssand entries for versioning assets (for example 6.21.4) will be
https://app-staging.straas.net/player/6.21.4/standard/player.bundle.js
https://app-staging.straas.net/player/6.21.4/standard/player.bundle.cssLicense
ISC © ikala frontend team
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago