Skip to content

Commit b9afb94

Browse files
author
Mateus Nardo
committed
chore: create dev command
1 parent 02c0d22 commit b9afb94

File tree

3 files changed

+4
-48
lines changed

3 files changed

+4
-48
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66

77
```
88
npm install
9-
npm start
9+
npm dev
1010
```
1111

12-
The start command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.
12+
The dev command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.
1313

1414
## Deployment
1515

@@ -22,7 +22,7 @@ When documenting your APIs, it's possible to perform changes and eval how they l
2222
For that, all you need to do is follow the instructions below:
2323

2424
1. Point your API spec on the file `docusaurus.config.js` to your localhost: `http://localhost:3001/openapi.json`
25-
2. `npm start` to run the docs portal locally
25+
2. `npm dev` to run the docs portal locally
2626
3. `npm run swagger-ui:watch` to serve your api docs locally on your API project
2727
4. Finally to bypass CORS you will want to get this Chrome [extension](https://chrome.google.com/webstore/detail/moesif-origin-cors-change/digfbfaphojjndkpccljibejjbppifbc)
2828

package-lock.json

Lines changed: 0 additions & 45 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"private": true,
55
"scripts": {
66
"docusaurus": "docusaurus",
7+
"dev": "npm run graphql:generate && docusaurus start",
78
"start": "npm run graphql:generate && npm run fetch-changelogs && docusaurus start",
89
"build": "npm run graphql:generate && npm run fetch-changelogs && docusaurus build",
910
"swizzle": "docusaurus swizzle",

0 commit comments

Comments
 (0)