{ "name": "cataloguer", "version": "1.0.0", "description": "A media cataloguing site, made with Hugo.", "scripts": { "precommit": "npm run lint-staged", "dev": "hugo mod get -u && hugo server", "build": "hugo mod get -u && rm -rf ./public/ && hugo --environment production", "build:dev": "hugo mod get -u && rm -rf ./public_dev/ && hugo --environment staging", "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:fix": "npm run lint:js:fix; npm run lint:css:fix; npm run lint:md:fix; npm run lint:json:fix", "lint:js": "eslint", "lint:js:fix": "npm run lint:js -- --fix", "lint:css": "stylelint \"./assets/css/**/*.scss\" --cache --cache-location .cache/ .stylelintcache", "lint:css:fix": "npm run lint:css -- --fix", "lint:md": "markdownlint --rules sentences-per-line .", "lint:md:fix": "npm run lint:md -- --fix", "lint:html": "npm run build && { htmlhint ./public; html-validate ./public }", "lint:json": "for f in ./*.json; do jsonlint $f; done && for f in ./data/*.json; do jsonlint $f -s; done", "lint:json:fix": "for f in ./*.json; do jsonlint $f -i; done && for f in ./data/*.json; do jsonlint $f -s -i; done", "format": "npm run format:js; npm run format:html", "format:fix": "npm run format:js:fix; npm run format:html:fix", "format:js": "prettier --check ./**/*.js ./**/*.json", "format:js:fix": "npm run format:js -- --write", "format:html": "prettier --parser html ./**/*.html", "format:html:fix": "npm run format:html -- --write" }, "lint-staged": { "*.s?[ca]ss": [ "npm run spellcheck", "npm run lint:css", "git add" ], "*.md": [ "npm run spellcheck", "npm run format:md", "npm run lint:md", "git add" ], "*.html?": [ "npm run spellcheck", "npm run format:html", "git add" ], "*.json": [ "npm run spellcheck", "npm run lint:json", "git add" ] }, "devDependencies": { "cspell": "^8.17.1", "eslint": "^9.18.0", "eslint-config-prettier": "^9.1.0", "eslint-plugin-markdownlint": "^0.6.0", "html-validate": "^9.1.3", "htmlhint": "^1.1.4", "husky": "^9.1.7", "jsonlint": "^1.6.3", "lint-staged": "^15.3.0", "markdownlint": "^0.37.3", "markdownlint-cli": "^0.43.0", "prettier": "^3.4.2", "prettier-plugin-go-template": "^0.0.15", "sentences-per-line": "^0.3.0", "stylelint": "16.12", "stylelint-config-standard-scss": "^14.0.0", "stylelint-prettier": "^5.0.2", "stylelint-scss": "^6.10.0", "stylelint-selector-bem-pattern": "^4.0.1" } }