Skip to content

Commit ac1bbb8

Browse files
committedMar 1, 2023
Add preview command
1 parent a04a7bd commit ac1bbb8

File tree

3 files changed

+360
-1
lines changed

3 files changed

+360
-1
lines changed
 

‎README.md

+11-1
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,18 @@ Balancer documentation built using Vuepress and extension of a custom theme. Ful
44

55
## Local Setup
66

7-
```
7+
```bash
88
npm install
99
npm run build-theme
1010
npm run dev
1111
```
12+
13+
## Build preview
14+
15+
Useful to test only-production features like metadata
16+
17+
```bash
18+
npm run build-theme
19+
npm run build
20+
npm run build:preview
21+
```

‎package-lock.json

+346
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

+3
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@
99
"scripts": {
1010
"dev": "vuepress dev docs",
1111
"build": "vuepress build docs",
12+
"build:preview": "npx http-server docs/.vuepress/dist/",
1213
"build-theme": "(cd theme; npm run build; npm run copy)",
14+
"build:all": "npm run build-theme && npm run build",
1315
"lint": "eslint . --ext .js,.ts,.vue --max-warnings 0"
1416
},
1517
"license": "MIT",
@@ -27,6 +29,7 @@
2729
"eslint-plugin-vue": "^9.6.0",
2830
"feather-icons": "^4.29.0",
2931
"glob": "^8.0.3",
32+
"http-server": "^14.1.1",
3033
"lodash": "^4.17.21",
3134
"markdown-it-meta": "^0.0.1",
3235
"titleize": "^3.0.0",

0 commit comments

Comments
 (0)
Please sign in to comment.