1 | # \<kwc-share-player\>
|
2 |
|
3 | A set of players (viewers) for each category of kano app share.
|
4 |
|
5 | ## Installation
|
6 | Clone this repository.
|
7 | Run `bower i`
|
8 |
|
9 | This component contains the `kano-code` repo as a submodule to allow it to pull across some files on which it depends. The intetion is that this submodule will be reomved once the `kano-code` project is published as a library for use across the kano projects.
|
10 |
|
11 | In order to get the submodule up and running you need to run two git commands when you clone this repo.
|
12 | ```sh
|
13 | $ git submodule init
|
14 | $ git submodule update
|
15 | ```
|
16 |
|
17 | Finally there is a `bash` script that will pull across the files that this repo depends on from the submodule.
|
18 |
|
19 | ```sh
|
20 | $ ./scripts/build-kcode-lib.sh
|
21 | ```
|
22 |
|
23 | So the intention is not to directly use the `kano-code` submodule in the development on this component, but insted to have it available and set the the correct commit so that just the files that this components depends on can be pulled across in a manual process.
|
24 | ## Install the Polymer-CLI
|
25 |
|
26 | First, make sure you have the [Polymer CLI](https://www.npmjs.com/package/polymer-cli) installed. Then run `polymer serve` to serve your element locally.
|
27 |
|
28 | ## Viewing Your Element
|
29 |
|
30 | ```
|
31 | $ polymer serve
|
32 | ```
|
33 |
|
34 | ## Running Tests
|
35 |
|
36 | ```
|
37 | $ polymer test --skip-plugin junit-reporter
|
38 | ```
|
39 |
|
40 | Your application is already set up to be tested via [web-component-tester](https://github.com/Polymer/web-component-tester). Run `polymer test` to run your application's test suite locally.
|