-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add repository support / contribution docs (#1960)
* Add new community files * Add text to community documents * Add Pull Request template * Add line about updating CHANGELOG.md * Apply change recommendations * Update CONTRIBUTING and root README.md * Clean up README.md
- Loading branch information
Corina
authored
May 3, 2019
1 parent
9bd6867
commit 5e38b84
Showing
8 changed files
with
140 additions
and
88 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
# Building the project | ||
|
||
> If you need to build this project for customization purposes, we strongly advise you to refer to our [samples](https://github.com/Microsoft/BotFramework-WebChat/tree/master/samples). If you cannot find any samples that fulfill your customization needs and you don't know how to do that, please [send your dream to us](https://github.com/Microsoft/BotFramework-WebChat/issues/). | ||
> | ||
> Forking Web Chat to make your own customizations means you will lose access to our latest updates. Maintaining forks also introduces chores that are substantially more complicated than a version bump. | ||
To build Web Chat, you will need to make sure both your Node.js and NPM is latest version (either LTS or current). | ||
|
||
```sh | ||
npm install | ||
npm run bootstrap | ||
npm run build | ||
``` | ||
|
||
## Build tasks | ||
|
||
There are 3 types of build tasks in the build process. | ||
|
||
- `npm run build`: Build for development (instrumented code for code coverage) | ||
- Will bundle as `webchat-instrumented*.js` | ||
- `npm run watch`: Build for development with watch mode loop | ||
- `npm run prepublishOnly`: Build for production | ||
- Will bundle as `webchat*.js` | ||
|
||
## Testing Web Chat for development purpose | ||
|
||
We built a playground app for testing Web Chat so we can test certain Web Chat specific features. | ||
|
||
```sh | ||
cd packages/playground | ||
npm start | ||
``` | ||
|
||
Then browse to http://localhost:3000/, and click on one of the connection options on the upper right corner. | ||
|
||
- Official MockBot: we hosted a live demo bot for testing Web Chat features | ||
- Emulator Core: it will connect to http://localhost:5000/v3/directline for [emulated Direct Line service](https://github.com/Microsoft/BotFramework-Emulator/tree/master/packages/emulator/cli/) | ||
|
||
You are also advised to test the CDN bundles by copying the test harness from our samples. | ||
|
||
## Building CDN bundle in development mode | ||
|
||
Currently, the standard build script does not build the CDN bundle (`webchat*.js`). | ||
|
||
```sh | ||
cd packages/bundle | ||
npm run webpack-dev | ||
``` | ||
|
||
> By default, this script will run in watch mode. | ||
## Building CDN bundle in production mode | ||
|
||
If you want to build a production CDN bundle with minification, you can follow these steps. | ||
|
||
```sh | ||
cd packages/bundle | ||
npm run prepublishOnly | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
### [GitHub issues](https://github.com/Microsoft/botframework-webchat/issues) should be used for bugs and feature requests. See the Support section to get support related to Bot Framework and Web Chat. | ||
|
||
## Screenshots | ||
<!-- If applicable, add screenshots to help explain your problem. --> | ||
<!-- Be sure to remove or obscure personally identifiable information from your code and screenshots --> | ||
|
||
## Version | ||
<!-- What version of Web Chat are you using? Are you using the CDN? NPM package? Or embedding Web Chat to your site via `<iframe>`? --> | ||
<!-- The fastest way to find your Web Chat version is by checking the meta tag on your deployed site. --> | ||
|
||
## Describe the bug | ||
<!-- Give a clear and concise description of what the bug is. --> | ||
<!-- Please be sure to add screenshots of the console errors in your browser, if there are any --> | ||
|
||
## To Reproduce | ||
Steps to reproduce the behavior: | ||
1. Go to '...' | ||
2. Click on '....' | ||
3. Scroll down to '....' | ||
4. See error | ||
|
||
## Expected behavior | ||
<!-- Give a clear and concise description of what you expect to happen when following the reproduction steps above. --> | ||
|
||
## Additional context | ||
<!-- Add any other context about the problem here.--> | ||
|
||
[Bug] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
## Feature Request | ||
|
||
### Use the ['Enhancement' query](https://github.com/Microsoft/botframework-Webchat/issues?utf8=%E2%9C%93&q=is%3Aissue+is%3Aopen+label%3Aenhancement) to search for the most popular feature requests. | ||
### The [Sample tag](https://github.com/Microsoft/botframework-Webchat/issues?q=is%3Aissue+is%3Aopen+label%3ASample) also lists examples and implementations that have already been requested. | ||
|
||
**Is your feature request related to a problem? Please describe.** | ||
<!-- A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] --> | ||
|
||
**Describe the suggestion or request in detail** | ||
<!-- A clear and concise description of what you want to happen. --> | ||
|
||
**Describe alternatives you have considered** | ||
<!-- A clear and concise description of any alternative solutions or features you've considered. --> | ||
|
||
**Additional context** | ||
<!-- Add any other context or screenshots about the feature request here. --> | ||
|
||
[Enhancement] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
|
||
🚨 The issue tracker is not for implementation questions 🚨 | ||
|
||
<!-- If you have other questions on implementation of Web Chat or about other features of Bot Framework, please see the support page on where to direct your question. --> | ||
|
||
|
||
[Question] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
Fixes #<!-- If this addresses a specific issue, please provide the issue number here --> | ||
|
||
## Changelog Entry | ||
<!-- Please paste your new entry from CHANGELOG.MD here --> | ||
|
||
## Description | ||
<!-- Please discuss the changes you have worked on. What do the changes do; why is this PR needed? --> | ||
|
||
## Specific Changes | ||
<!-- Please list the changes in a concise manner. --> | ||
|
||
- | ||
- | ||
- | ||
|
||
- [ ] Testing Added | ||
<!-- If you are adding a new feature to a library, you must include tests for your new code. --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# BotFramework Web Chat Support | ||
|
||
This repo focuses on the development of Web Chat, a client/channel for Bot Framework. We welcome feature requests and bug reports related to Web Chat. If you have other questions on implementation or about other features of Bot Framework, please see the below list to direct your questions to the correct repo or site. | ||
|
||
| Topic | Description | Link | | ||
|-----------------------------|--------------------------------------------------------------|---------------------------------------------------------| | ||
| Web Chat 'How to' Questions | Ask implementation questions about Web Chat | https://stackoverflow.com/questions/tagged/web-chat | | ||
| Bot Framework Questions | Ask implementation questions related to the BotFramework SDK | https://stackoverflow.com/questions/tagged/botframework | | ||
| Bot Builder | A comprehensive list of Bot Framework SDKs and tools | https://github.com/Microsoft/BotBuilder | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters