Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Vue ChromeCast plugin is a simple library using Google ChromeCast Web SDK to cast your website on supported devices and communicate with the remote web interface.

License

Notifications You must be signed in to change notification settings

xdemocle/vue-chromecast-plugin

Repository files navigation

vue-chromecast-plugin

Vue ChromeCast plugin is a simple library using Google ChromeCast Web SDK to cast your website on supported devices and communicate with the remote web interface.

Travis

WARNING

Vue ChromeCast plugin currently is using the deprecated SDK of ChromeCast, new ChromeCast API will be used soon in this plugin and more details on usage and installation will be also added in this README.

Features

Getting started

  1. Setting up the name of your library
  • Open webpack.config.js file and change the value of libraryName variable.
  • Open package.json file and change the value of main property so it matches the name of your library.
  1. Build your library
  • Run yarn install (recommended) or npm install to get the project's dependencies
  • Run yarn build or npm run build to produce minified version of your library.
  1. Development mode
  • Having all the dependencies installed run yarn dev or npm run dev. This command will generate an non-minified version of your library and will run a watcher so you get the compilation on file change.
  1. Running the tests
  • Run yarn test or npm run test

Scripts

  • yarn build or npm run build - produces production version of your library under the lib folder
  • yarn dev or npm run dev - produces development version of your library and runs a watcher
  • yarn test or npm run test - well ... it runs the tests :)
  • yarn test:watch or npm run test:watch - same as above but in a watch mode

Readings

Misc

An example of using dependencies that shouldn’t be resolved by webpack, but should become dependencies of the resulting bundle

In the following example we are excluding React and Lodash:

{
  devtool: 'source-map',
  output: {
    path: '...',
    libraryTarget: 'umd',
    library: '...'
  },
  entry: '...',
  ...
  externals: {
    react: 'react'
    // Use more complicated mapping for lodash.
    // We need to access it differently depending
    // on the environment.
    lodash: {
      commonjs: 'lodash',
      commonjs2: 'lodash',
      amd: '_',
      root: '_'
    }
  }
}

About

Vue ChromeCast plugin is a simple library using Google ChromeCast Web SDK to cast your website on supported devices and communicate with the remote web interface.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published