Skip to content

Commit 0e60f9f

Browse files
authored
docs(examples): move example dependencies from root (#994)
1 parent f424cef commit 0e60f9f

File tree

5 files changed

+1324
-488
lines changed

5 files changed

+1324
-488
lines changed

examples/README.md

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,29 +4,33 @@ View working examples of `http-proxy-middleware` implemented in popular servers.
44

55
To run and view the [examples](https://github.com/chimurai/http-proxy-middleware/tree/master/examples); Clone the `http-proxy-middleware` repo and install the dependencies:
66

7-
```bash
8-
$ git clone https://github.com/chimurai/http-proxy-middleware.git
9-
$ cd http-proxy-middleware
10-
$ yarn
11-
$ yarn build
7+
## Install
8+
9+
```shell
10+
# git clone https://github.com/chimurai/http-proxy-middleware.git
11+
12+
yarn install:all
13+
yarn build
1214
```
1315

16+
## Run examples
17+
1418
Run the example from root folder:
1519

16-
```bash
17-
$ node examples/browser-sync
20+
```shell
21+
node examples/browser-sync
1822
```
1923

20-
```bash
21-
$ node examples/connect
24+
```shell
25+
node examples/connect
2226
```
2327

24-
```bash
25-
$ node examples/express
28+
```shell
29+
node examples/express
2630
```
2731

28-
```bash
29-
$ node examples/websocket
32+
```shell
33+
node examples/websocket
3034
```
3135

3236
## Server recipes

examples/package.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"name": "examples",
3+
"version": "1.0.0",
4+
"private": "true",
5+
"description": "View working examples of `http-proxy-middleware` implemented in popular servers.",
6+
"scripts": {
7+
"test": "echo \"Error: no test specified\" && exit 1"
8+
},
9+
"keywords": [],
10+
"author": "chimurai",
11+
"license": "MIT",
12+
"devDependencies": {
13+
"browser-sync": "3.0.2",
14+
"connect": "3.7.0",
15+
"express": "4.19.2"
16+
}
17+
}

0 commit comments

Comments
 (0)