@beyondwords/player 0.3.18 → 0.3.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -12,34 +12,46 @@ detailed explanation for each of the player's settings. You can see a demo of
12
12
  the player
13
13
  [here](https://beyondwords-io.github.io/player-demo).
14
14
 
15
- ## Documentation
16
-
17
- The [doc/](doc/) directory contains these useful resources:
18
-
19
- 1. [Getting started](./doc/getting-started.md): A guide for how
20
- to embed the player on your website using a `<script>` tag.
21
- 2. [NPM package](./doc/npm-package.md): A guide for how to add the
22
- player to your website using the NPM package.
23
- 3. [Player SDK](./doc/player-sdk.md): An explanation of how to control the
24
- player programmatically by using the SDK.
25
- 4. [Player settings](./doc/player-settings.md): A list of all supported player
26
- settings that can be set in the initializer or via the SDK.
27
- 5. [Client-side integration](./doc/client-side-integration.md): How to import
28
- content into the BeyondWords platform using the player
29
- 6. [Listening to events](./doc/listening-to-events.md): How to register event
30
- listeners that are called when player actions are performed.
31
- 7. [Player events](./doc/player-events.md): A list of all events emitted by
32
- the player that can be listened to.
33
- 8. [Segments playback](./doc/segments-playback.md): How to add support for
34
- the 'Playback from Segments' feature to your website.
35
- 9. [Custom analytics](./doc/custom-analytics.md): How to send player analytics
36
- events to a custom URL of your choosing.
37
- 10. [Building your own UI](./doc/building-your-own-ui.md): How to build your own
38
- user-interface on top of the BeyondWords player.
39
- 11. [Dev setup](./doc/dev-setup.md): How to run this project locally, e.g. if
40
- you are a developer at BeyondWords.
41
- 12. [Deployment](./doc/deployment.md): How to release a new version of the player
42
- to the public and details about caching.
15
+ Please refer to our **[official documentation](https://docs.beyondwords.io/docs-and-guides/distribution/player/overview)** for more information.
16
+
17
+ ## Development setup
18
+
19
+ We recommend you use nodenv for managing node versions. There is a `.nodenv`
20
+ file in the root of the repository. You will need to set this up first. Then,
21
+ run the following to install dependencies and start a server on port 8000:
22
+
23
+ ```sh
24
+ ./bin/setup
25
+ ./bin/server
26
+ ```
27
+
28
+ The player will live-reload when you make changes to the code.
29
+
30
+ ## Testing
31
+
32
+ You can run the tests with:
33
+
34
+ ```sh
35
+ ./bin/test_units
36
+ ./bin/test_screenshots
37
+ ./bin/test_accessibility
38
+ ./bin/lint
39
+ ```
40
+
41
+ The screenshot and accessibility tests use Playwright and are Dockerized to
42
+ avoid test failures as a result of browser version differences. You will need
43
+ Docker installed to run these tests. These tests run automatically when pushing
44
+ to GitHub.
45
+
46
+ ## Deployment
47
+
48
+ 1. Update the version with `./bin/version <version>`
49
+ 2. Commit the changes with `Release version <version>`
50
+ 3. Push the changes and wait for CI to pass
51
+ 4. Add a tag with the version: `git tag <version>`
52
+ 5. Push the tag with `git push --tags`
53
+ 6. Create a GitHub Release from the tag and wait for CD to pass
54
+ 7. Run `./bin/purge_cache` or wait ~12 hours for the cache to expire
43
55
 
44
56
  ## Contribution
45
57