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 - name: Install npm dependencies
run: npm ci run: npm ci
- name: Build docs - name: Build and test
run: mkdocs build --strict
- name: Test
run: npm test run: npm test

View File

@@ -16,11 +16,13 @@
}, },
"homepage": "https://docs.pi-hole.net/", "homepage": "https://docs.pi-hole.net/",
"scripts": { "scripts": {
"build": "mkdocs build --clean", "build": "mkdocs build --clean --strict",
"markdownlint": "markdownlint-cli2 \"**/*.md\" \"!**/node_modules/**\"", "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", "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": { "devDependencies": {
"linkinator": "^6.1.2", "linkinator": "^6.1.2",