7.2.7 • Published 6 years ago

onlywatch v7.2.7

Weekly downloads
6
License
ISC
Repository
gitlab
Last release
6 years ago

onlywatch NPM version

web player core project

Installation

For npm user

$ npm install --save onlywatch

For yarn user

$ yarn add onlywatch

Usage

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 link in onlywatch package
  • go the package that used onlywatch, and run yarn link onlywatch

Deploy Flow

  • do NOT change version property that in package.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 build and commit it with message chore: build dist (this can be done by run yarn run commit-dist)

  • change to branch: master then do yarn run changelog

    According 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 master and npm publish

Step 1. Build and Publish

$ yarn run pre-publish
$ git push --follow-tags origin master; npm publish

These 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 publish before, than you can skip build dist)

for example, deploy to staging with redirect to latest version and skip build

$ yarn deploy -- -e=staging -r -s

Step 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.4

Path 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.css

and 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.css

License

ISC © ikala frontend team

7.2.7

6 years ago

7.2.6

6 years ago

7.2.5

6 years ago

7.2.4

6 years ago

7.2.3

6 years ago

7.2.2

6 years ago

7.2.1

6 years ago

7.2.0

6 years ago

7.1.19

6 years ago

7.1.18

6 years ago

7.1.17

6 years ago

7.1.16

6 years ago

7.1.15

6 years ago

7.1.14

6 years ago

7.1.10-correct

6 years ago

7.1.9-correct

6 years ago

7.1.12

6 years ago

7.1.11

6 years ago

7.1.10

6 years ago

7.1.8

6 years ago

7.1.7

6 years ago

7.1.13

6 years ago

7.1.9

7 years ago

7.1.6

7 years ago

7.1.5

7 years ago

7.1.4

7 years ago

7.1.3

7 years ago

7.1.2

7 years ago

7.1.1

7 years ago

7.1.0

7 years ago

7.0.0

7 years ago

6.21.5

7 years ago

6.21.4

7 years ago

6.21.3

7 years ago

6.21.2

7 years ago

6.21.1

7 years ago

6.21.0

7 years ago

6.20.1

7 years ago

6.20.0

7 years ago

6.19.1

7 years ago

6.19.0

7 years ago

6.18.4

7 years ago

6.18.3

7 years ago

6.18.2

7 years ago

6.18.1

7 years ago

6.18.0

7 years ago

6.17.2

7 years ago

6.17.1

7 years ago

6.17.0

7 years ago

6.16.3

7 years ago

6.16.2

7 years ago

6.16.1

7 years ago

6.16.0

7 years ago

6.15.1

7 years ago

6.15.0

7 years ago

6.14.0

7 years ago

6.13.1

7 years ago

6.13.0

7 years ago

6.12.1

7 years ago

6.12.0

7 years ago

6.11.0

7 years ago

6.10.14

7 years ago

6.10.13

7 years ago

6.10.12

7 years ago

6.10.11

7 years ago

6.10.10

7 years ago

6.10.9

7 years ago

6.10.8

7 years ago

6.10.7

7 years ago

6.10.6

7 years ago

6.10.5

7 years ago

6.10.4

7 years ago

6.10.3

7 years ago

6.10.2

7 years ago

6.10.1

7 years ago

6.10.0

7 years ago

6.9.0

7 years ago

6.8.0

7 years ago

6.7.0

7 years ago

6.6.1

7 years ago

6.6.0

7 years ago

6.5.0

7 years ago

6.4.0

7 years ago

6.3.1

7 years ago

6.3.0

7 years ago

6.2.1

7 years ago

6.2.0

7 years ago

6.1.5

7 years ago

6.1.4

7 years ago

6.1.3

7 years ago

6.1.2

7 years ago

6.1.1

7 years ago

6.1.0

7 years ago

6.0.0

7 years ago

5.3.1

7 years ago

5.3.0

7 years ago

5.2.2

7 years ago

5.2.1

7 years ago

5.2.0

7 years ago

5.1.1

7 years ago

5.1.0

7 years ago

5.0.5

7 years ago

5.0.4

7 years ago

5.0.3

7 years ago

5.0.2

7 years ago

5.0.1

7 years ago

4.0.8

7 years ago

5.0.0

7 years ago

4.0.7

7 years ago

4.0.6

7 years ago

4.0.5

7 years ago

4.0.4

7 years ago

4.0.3

7 years ago

4.0.2

7 years ago

4.0.1

7 years ago

4.0.0

7 years ago

3.0.0

7 years ago

1.0.12

7 years ago

1.0.11

7 years ago

1.0.10

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago

2.0.0

8 years ago