@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 +40 -28
- package/dist/es.js +5860 -5667
- package/dist/es.js.map +1 -1
- package/dist/style.js +1 -1
- package/dist/umd.js +51 -51
- package/dist/umd.js.map +1 -1
- package/package.json +4 -4
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
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
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
|
|