straas-videojs-cta-card

2.1.2 • Public • Published

StraaS SDK VideoJS CTA Card Plugin

Standard Version

Development locally

Expected you are prepared node@^6 and yarn@~0.16, and ran below in order:

$ nvm use # (optional) 
$ yarn
$ typings install

Then you should have 2 sessions of terminal and run below command severally:

$ yarn run dev
$ yarn run dev:server

After watchers running, open ./src start to development.

Open http://127.0.0.1:8183/demo/ to see the demo page.

Deploy

TL;DR

$ git checkout master
$ git reset --hard origin/master
$ yarn run build
$ yarn run changelog
$ vi ./demo/README.md # edit the download zip link map to next version 
$ yarn run deploy:example
$ git push --follow-tags origin master
$ npm publish

Deploy Flow

  1. You should always deploy at master branch, so do

    $ git checkout master

    $ git reset --hard origin/master

  2. build dist with yarn run build (if you are running yarn run dev, the dist exists, you can omit this step).

    $ yarn run build

  3. produce the changelog

    $ yarn run changelog

    note: This command will produce a commit with message chore(release): {{version}}

    and will add a version tag at master branch.

  4. Edit ./demo/README.md map the download zip link to next release version

    for instance:

    replace

    [download zip](https://registry..../-/straas-videojs-cta-card-1.0.9.tgz)

    with

    [download zip](https://registry..../-/straas-videojs-cta-card-1.0.10.tgz)

  5. you may want to deploy example to the github pages.

    $ yarn run deploy:example

    note: This command will produce a commit with message update demo

    since dist bundles will copied to demo in order to host by github pages.

  6. Finally, push your changes to origin/master and publish package with npm

    $ git push --follow-tags origin master

    $ npm publish

Readme

Keywords

none

Package Sidebar

Install

npm i straas-videojs-cta-card

Weekly Downloads

17

Version

2.1.2

License

none

Last publish

Collaborators

  • ikalatv
  • pleasurazy
  • poolpeggy
  • tzuroan