From 7a5bf5e17468f75d81fa0fd0c698b1081580de5e Mon Sep 17 00:00:00 2001 From: chimurai <655241+chimurai@users.noreply.github.com> Date: Wed, 29 Aug 2018 22:01:19 +0200 Subject: [PATCH] docs: update github templates --- .github/ISSUE_TEMPLATE.md | 136 +++++++++++++++++++++++++++++++ .github/PULL_REQUEST_TEMPLATE.md | 0 CONTRIBUTING.md | 3 - ISSUE_TEMPLATE.md | 21 ----- 4 files changed, 136 insertions(+), 24 deletions(-) create mode 100644 .github/ISSUE_TEMPLATE.md create mode 100644 .github/PULL_REQUEST_TEMPLATE.md delete mode 100644 ISSUE_TEMPLATE.md diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md new file mode 100644 index 00000000..a66cf26d --- /dev/null +++ b/.github/ISSUE_TEMPLATE.md @@ -0,0 +1,136 @@ + + +### Is this a question? + +(write your question here) + + + + +### Is this a bug report? + +(write your answer here) + + + + +### Is this a feature request? + +(write your answer here) + + + +### Steps to reproduce + + + +(Write your steps here:) + +1. +2. +3. + + +### Expected behavior + + +(Write what you thought would happen.) + + +### Actual behavior + + +(Write what happened.) + +### Setup + + +* http-proxy-middleware: _version_ +* http-proxy-middleware configuration +* server: _connect/express/browser-sync..._ + _version_ +* other relevant modules + +#### client info + +#### target server info + + +### Reproducible Demo + + + +(Paste the link to an example project and exact instructions to reproduce the issue.) diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md new file mode 100644 index 00000000..e69de29b diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 1158cc8a..d0b9cf49 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -10,9 +10,6 @@ If you have questions about http-proxy-middle usage; Please check if your questi Since Nodejitsu's `http-proxy` is providing the actual proxy functionality; You might find your answer in their [documentation](https://github.com/nodejitsu/node-http-proxy), [issue archive](https://github.com/nodejitsu/node-http-proxy/issues?utf8=%E2%9C%93&q=is%3Aissue) or [examples](https://github.com/nodejitsu/node-http-proxy/tree/master/examples). -Feel free to [ask a question](https://github.com/chimurai/http-proxy-middleware/issues) if the above resources didn't answer your question. - -Tips on how to ask: http://stackoverflow.com/help/how-to-ask ## Report Issues diff --git a/ISSUE_TEMPLATE.md b/ISSUE_TEMPLATE.md deleted file mode 100644 index 1b7aab9f..00000000 --- a/ISSUE_TEMPLATE.md +++ /dev/null @@ -1,21 +0,0 @@ -### Expected behavior - -### Actual behavior - -### Setup - -* http-proxy-middleware: _version_ -* server: _connect/express/browser-sync..._ + _version_ -* other relevant modules - -#### proxy middleware configuration -```javascript -var apiProxy = proxy('/api', {target:'http://www.example.org', changeOrigin:true}); -``` -#### server mounting -```javascript -var app = express(); - -app.use(apiProxy); -app.listen(3000); -```