straas-videojs-cta-card
v2.1.2
Published
StraaS SDK VideoJS CTA Card Plugin
Downloads
6
Readme
StraaS SDK VideoJS CTA Card Plugin
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
You should always deploy at master branch, so do
$
git checkout master
$
git reset --hard origin/master
build dist with
yarn run build
(if you are runningyarn run dev
, the dist exists, you can omit this step).$
yarn run build
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.
Edit
./demo/README.md
map the download zip link to next release versionfor 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)
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.
Finally, push your changes to origin/master and publish package with npm
$
git push --follow-tags origin master
$
npm publish