build(npm): update theme on build

This commit is contained in:
Ben Goldsworthy 2025-02-21 18:44:19 +01:00
parent 398bf1653b
commit 0d736d2869
Signed by: Rumperuu
SSH key fingerprint: SHA256:v3uompaUiPqV2w1/AIRWBSQOxr2dntH9Xs/y8fDnUPU

View file

@ -4,9 +4,10 @@
"description": "A media cataloguing site, made with Hugo.", "description": "A media cataloguing site, made with Hugo.",
"scripts": { "scripts": {
"precommit": "npm run lint-staged", "precommit": "npm run lint-staged",
"dev": "hugo mod get -u && hugo server", "update:theme": "hugo mod get -u code.bengoldsworthy.net/Rumperuu/Cataloguer@main",
"build": "hugo mod get -u && rm -rf ./public/ && hugo --environment production", "dev": "npm run update:theme && hugo server",
"build:dev": "hugo mod get -u && rm -rf ./public_dev/ && hugo --environment staging", "build": "npm run update:theme && rm -rf ./public/ && hugo --environment production",
"build:dev": "npm run update:theme && rm -rf ./public_dev/ && hugo --environment staging",
"spellcheck": "cspell \"content/**/*.md\"", "spellcheck": "cspell \"content/**/*.md\"",
"lint": "npm run lint:js; npm run lint:css; npm run lint:md; npm run lint:html; npm run lint:json", "lint": "npm run lint:js; npm run lint:css; npm run lint:md; npm run lint:html; npm run lint:json",
"lint:fix": "npm run lint:js:fix; npm run lint:css:fix; npm run lint:md:fix; npm run lint:json:fix", "lint:fix": "npm run lint:js:fix; npm run lint:css:fix; npm run lint:md:fix; npm run lint:json:fix",