You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This document describes tools, tasks and workflow that one needs to be familiar with in order to effectively maintain this project. If you use this package within your own software as is but don't plan on modifying it, this guide is **not** for you.
4
+
5
+
## Tools
6
+
7
+
This project is developed with [TypeScript](https://www.typescriptlang.org/) and uses [Webpack](https://webpack.js.org/) in conjunction with [Babel](https://babeljs.io/) to compile and bundle code into a browser-friendly UMD module. To install the dependencies required for development, simply run:
8
+
```
9
+
$ npm install
10
+
```
11
+
12
+
## Tasks
13
+
14
+
### Build
15
+
16
+
To compile and bundle the package:
17
+
```
18
+
$ npm run build
19
+
```
20
+
21
+
### Test
22
+
This project's tests are written with Karma and Jasmine. Before running the tests, you will need to create a `.env` file with the following values in the root directory of the repository.
23
+
```
24
+
TEST_API_KEY={OPENTOK_API_KEY}
25
+
TEST_API_SECRET={OPENTOK_API_SECRET}
26
+
```
27
+
*You can obtain a project key and secret from the TokBox [Account Portal](https://tokbox.com/account/).*
28
+
29
+
To run the tests:
30
+
```
31
+
$ npm run test
32
+
```
33
+
34
+
### Releasing
35
+
36
+
In order to create a release, the following should be completed in order.
37
+
38
+
1. Build the project and ensure that there are no `typescript` or `tslint` errors.
39
+
1. Ensure all the tests are passing.
40
+
1. Make sure you are on the `develop` branch of the repository, with all changes merged/commited
41
+
already.
42
+
1. Update the version number anywhere it appears in the source code and documentation. See [Versioning](#versioning) for information about selecting an appropriate version number. Files to check:
43
+
- package.json
44
+
1. Commit the version number change with the message "Update to version x.y.z", substituting the new
45
+
version number.
46
+
1. Create a git tag: `git tag -a vx.y.z -m "Release vx.y.z"`
0 commit comments