Microsoft Teams JavaScript client library
Welcome to the Teams client library monorepo! For breaking changes, please refer to our changelog in the <root>/packages/teams-js
directory. This repository contains the core teams-js package as well as tools and applications for analyzing and testing.
Getting Started
The following guide references steps to build the entire project including TeamsJS and all of the included apps. For guidelines on just building an individual app please look at the Apps.
Building this Project
- Clone this repository
git clone https://github.com/OfficeDev/microsoft-teams-library-js.git
- Run
pnpm install
from repo root - Run
pnpm build
from repo root - To run Unit tests, run
pnpm test
Submitting a Pull Request
Please look through our Contributing Guide for important details on how to submit a pull request and contribute to this repository.
NOTE: Make sure [email protected]
is installed as a global tool, by running npm install -g [email protected]
.
TIP: whenever building or testing the Teams client library, you can run pnpm build
or pnpm test
from the packages/teams-js
directory.
This JavaScript library is part of the Microsoft Teams developer platform. See full library reference documentation.
Packages
Contain the core exports for the repository.
teams-js
Used to integrate custom services and applications with Teams, Outlook, and Office.
Apps
The apps folder contains applications used to test various aspects of the library.
Teams Perf Test App
React application used to locally test the loading times of the library.
Teams Test App
Application used to test the functionality of the various library APIs.
SSR Test App
Application used to ensure library changes do not break server-side rendering capabilities.
Locally generating reference documentation
If you would like to locally generate reference documentation for TeamsJS v2, simply utilize the script pnpm run docs
either from the monorepo root or inside the teams-js project root (packages/teams-js
). This should output the generated documentation to packages/teams-js/docs
.
Contributing
We strongly welcome and encourage contributions to this project. Please read the contributor's guide which contains important information.
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.