mirror of
https://github.com/pi-hole/docs.git
synced 2025-12-20 03:08:45 +00:00
Merge pull request #1197 from XhmikosR/xmr/npm-scripts
Tweak npm scripts
This commit is contained in:
5
.github/workflows/ci.yml
vendored
5
.github/workflows/ci.yml
vendored
@@ -40,8 +40,5 @@ jobs:
|
||||
- name: Install npm dependencies
|
||||
run: npm ci
|
||||
|
||||
- name: Build docs
|
||||
run: mkdocs build --strict
|
||||
|
||||
- name: Test
|
||||
- name: Build and test
|
||||
run: npm test
|
||||
|
||||
@@ -16,11 +16,13 @@
|
||||
},
|
||||
"homepage": "https://docs.pi-hole.net/",
|
||||
"scripts": {
|
||||
"build": "mkdocs build --clean",
|
||||
"build": "mkdocs build --clean --strict",
|
||||
"markdownlint": "markdownlint-cli2 \"**/*.md\" \"!**/node_modules/**\"",
|
||||
"linkinator": "npm run build && linkinator site --recurse --silent --skip \"^(?!http://localhost)\"",
|
||||
"linkinator": "linkinator site --recurse --silent --skip \"^(?!http://localhost)\"",
|
||||
"pretest": "npm run build",
|
||||
"test": "npm run markdownlint && npm run linkinator",
|
||||
"serve": "mkdocs serve --dev-addr 0.0.0.0:8000"
|
||||
"serve": "mkdocs serve --dev-addr 0.0.0.0:8000",
|
||||
"start": "npm run serve"
|
||||
},
|
||||
"devDependencies": {
|
||||
"linkinator": "^6.1.2",
|
||||
|
||||
Reference in New Issue
Block a user