Merge pull request #1197 from XhmikosR/xmr/npm-scripts

Tweak npm scripts
This commit is contained in:
yubiuser
2025-03-30 15:47:38 +02:00
committed by GitHub
2 changed files with 6 additions and 7 deletions

View File

@@ -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

View File

@@ -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",