60 lines
1.9 KiB
JSON
60 lines
1.9 KiB
JSON
|
{
|
||
|
"name": "cataloguer",
|
||
|
"version": "1.0.0",
|
||
|
"description": "A theme for my personal static site incorporating a blog, various portfolios and a CV searcher.",
|
||
|
"scripts": {
|
||
|
"precommit": "npm run lint-staged",
|
||
|
"dev": "snap run hugo serve",
|
||
|
"lint": "npm run lint:css; npm run lint:md; npm run lint:html; npm run lint:json",
|
||
|
"lint:fix": "npm run lint:css:fix; npm run lint:md:fix; npm run lint:html:fix; npm run lint:json:fix",
|
||
|
"lint:css": "stylelint \"./assets/css/**/*.scss\" --cache --cache-location .cache/ .stylelintcache",
|
||
|
"lint:css:fix": "npm run lint:css -- --fix",
|
||
|
"lint:js": "eslint \"./assets/js/*.js\" \"./content/**/*.js\"",
|
||
|
"format:html": "prettier --parser html --check \"public/**/*.{htm,html}\"",
|
||
|
"format:html:fix": "npm run format:html -- --write",
|
||
|
"format:md": "prettier --parser markdown \"*/**/*.md\"",
|
||
|
"format:md:fix": "npm run format:md -- --write",
|
||
|
"lint:md": "markdownlint --rules sentences-per-line \"*/**/*.md\"",
|
||
|
"lint:md:fix": "npm run lint:md -- --fix",
|
||
|
"lint:json": "jsonlint ./**/*.json -s",
|
||
|
"lint:json:fix": "npm run lint:json -- -i"
|
||
|
},
|
||
|
"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": {
|
||
|
"eslint": "^9.17.0",
|
||
|
"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",
|
||
|
"stylelint": "^16.12.0",
|
||
|
"stylelint-config-standard-scss": "^14.0.0",
|
||
|
"stylelint-prettier": "^5.0.2",
|
||
|
"stylelint-scss": "^6.10.0",
|
||
|
"stylelint-selector-bem-pattern": "^4.0.1"
|
||
|
}
|
||
|
}
|