straas-videojs-cta-card
v2.1.2
Published
StraaS SDK VideoJS CTA Card Plugin
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 installThen you should have 2 sessions of terminal and run below command severally:
$ yarn run dev
$ yarn run dev:serverAfter 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 publishDeploy Flow
You should always deploy at master branch, so do
$
git checkout master$
git reset --hard origin/masterbuild dist with
yarn run build(if you are runningyarn run dev, the dist exists, you can omit this step).$
yarn run buildproduce the changelog
$
yarn run changelognote: This command will produce a commit with message chore(release): {{version}}
and will add a version tag at master branch.
Edit
./demo/README.mdmap 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:examplenote: 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
