Git Product home page Git Product logo

videohub-player's Introduction

Videohub Player (js)

We're migrating our video players from <iframe> to <bulbs-video>.

In the transition we need to support both player types. So the javascript code that powers the video player must be available to theonion/videohub and to theonion/bulbs-elements.

This repository is that place.

Long-term, the plan is for videohub to use <bulbs-video> internally and then all the code in this project can fold directly into bulbs-elements.

Installation

This library expects a dependencies to exist globally.

  • jQuery: We're using 2.2.x

Notes on Build Artifacts

In theonion/videohub we're requiring dist/videohub-player-global. This build sets global.VideoPlayer = VideoPlayer. That works with the expectations of theonion/videohub.

In theonion/bulbs-elements we're requiring src/player. This way bulbs-elements bulids this code from source with webpack.

After the transition period the global bulid artifact should be removed.

Scripts

scripts/ci Runs a CI build. Runs through browser-stack on multiple browsers/devices.

scripts/dev-build Creates a dev build at dist/.

scripts/prod-build Creates a production build at dist/.

scripts/test Runs the test suite.

Cutting a Release

  1. Update version in package.json
  2. Run scripts/tag-and-release

Check the output, releasing will fail if you have a dirty git index or if tests fail. If the release succeeds this script will print out the version tag.

Release Candidates

The release process never commits the dist/ directory to master. The only commit that has dist/ is the tagged commit.

Before you're certain changes are production ready, release versions following this pattern: major.minor.patch-rc# (0.1.0-rc1, 0.1.0-rc2, etc.)

Only when you're ready to deploy to production finalize on the non-rc version.

videohub-player's People

Contributors

collin avatar mparent61 avatar spra85 avatar jmelvnsn avatar

Stargazers

SeungJu Lee avatar

Watchers

 avatar Michael Butkovic avatar James Cloos avatar  avatar Cameron Lowe avatar  avatar  avatar

Forkers

neuralnoise

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.