Skip to content

Commit 3ea328c

Browse files
committed
Added "serve-everyone" yarn command to listen to all IPs.
1 parent 3ef6fe7 commit 3ea328c

2 files changed

Lines changed: 10 additions & 6 deletions

File tree

README.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
<img src="https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square"/>
66
<img src="https://img.shields.io/github/size/mrin9/rapipdf/dist/rapipdf-min.js.svg?colorB=blue&label=minified&style=flat-square">
77
<img src="https://img.shields.io/github/size/mrin9/rapipdf/dist/rapipdf-min.js.gz.svg?colorB=blue&label=zip&style=flat-square">
8-
</p>
8+
</p>
99

1010
# RapiPDF
1111
Custom Eelement for Open-API to PDF generation
1212

1313
## Features
14-
- Supports Swagger 2.0 and OpenAPI 3.0
15-
- Generate PDF using Web-Component
14+
- Supports Swagger 2.0 and OpenAPI 3.0
15+
- Generate PDF using Web-Component
1616
- Works with any framework or with no framework
1717
- Plenty of customizing options, including selection of brand colors
1818
- Supported on Chrome, FireFox and Safari. (Not yet tested on Edge)
@@ -21,15 +21,18 @@ Custom Eelement for Open-API to PDF generation
2121
[Check out the usage and examples](https://mrin9.github.io/RapiPdf/)
2222

2323
## Build Process
24-
We recommend `yarn` over `npm` as we use yarn [resolutions](https://yarnpkg.com/lang/en/docs/selective-version-resolutions/) to keep the bundle size smaller. As of this writing this feature is not supported in npm natively
24+
We recommend `yarn` over `npm` as we use yarn [resolutions](https://yarnpkg.com/lang/en/docs/selective-version-resolutions/) to keep the bundle size smaller. As of this writing this feature is not supported in npm natively
2525
```bash
2626
# Clone / Download the project then
2727
yarn install
2828

2929
# build will generate rapidoc-min.js, this is the only file you will need.
3030
# use it in the script tag of your html <script type="text/javascript" src="rapidoc-min.js"></script></body>
31-
yarn build
31+
yarn build
3232

33-
# for developement use yarn serve (this will start an webserver at port 8080, then navigate to localhost:8080)
33+
# for developement use yarn serve (this will start an webserver at port 8080, then navigate to localhost:8080)
3434
yarn serve
35+
36+
# alternative to yarn serve: (this will start an webserver at port 8080 listening to all adapters)
37+
yarn serve-everyone
3538
```

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
"scripts": {
3838
"build": "NODE_ENV=production webpack",
3939
"serve": "webpack-dev-server --mode=development",
40+
"serve-everyone": "webpack-dev-server --mode=development --host 0.0.0.0",
4041
"lint": "./node_modules/eslint/bin/eslint.js ./src/**/*.js",
4142
"lint-fix": "./node_modules/eslint/bin/eslint.js --fix ./src/**/*.js"
4243
},

0 commit comments

Comments
 (0)