1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-04-27 07:18:26 -04:00
jarv.is/package.json

79 lines
2.7 KiB
JSON

{
"name": "jarv.is",
"version": "1.3.37",
"homepage": "https://jarv.is/",
"license": "MIT",
"private": true,
"author": {
"name": "Jake Jarvis",
"email": "jake@jarv.is",
"url": "https://github.com/jakejarvis"
},
"repository": {
"type": "git",
"url": "git+https://github.com/jakejarvis/jarv.is.git"
},
"scripts": {
"clean": "rimraf public/ resources/ builds/",
"build": "run-s clean hugo optimize",
"build:preview": "run-s clean hugo:dev",
"hugo": "hugo --gc --cleanDestinationDir --verbose",
"hugo:dev": "hugo --environment development --baseURL ${DEPLOY_PRIME_URL:-/} --buildDrafts --buildFuture --gc --cleanDestinationDir --verbose",
"start": "hugo server --disableFastRender --buildDrafts --buildFuture --port 1337 --bind 0.0.0.0 --verbose",
"optimize": "run-s optimize:**",
"optimize:html": "html-minifier --html5 --collapse-whitespace --collapse-boolean-attributes --preserve-line-breaks --minify-css --file-ext html --input-dir public --output-dir public **/*.html",
"optimize:js": "terser public/js/main.js --comments '/^!/' --output public/js/main.js",
"optimize:img": "find ./public -type d ! -path './public/vendor*' | xargs -n1 -P8 -I{} imagemin {}/* --plugin=jpegoptim --plugin.jpegoptim.progressive --plugin.jpegoptim.stripAll --plugin=pngquant --plugin.pngquant.quality={0.1,0.3} --plugin.pngquant.speed=1 --plugin.pngquant.strip --plugin=gifsicle --plugin=svgo --out-dir={}",
"lint": "run-s lint:**",
"lint:scss": "stylelint assets/sass/**/* --syntax scss",
"lint:js": "jshint assets/js/*.js",
"lint:md": "markdownlint content/**/*.md content/**/**/*.md",
"index": "run-s clean hugo index:** clean",
"index:algolia": "npx atomic-algolia"
},
"dependencies": {},
"devDependencies": {
"autoprefixer": "^9.7.6",
"cross-env": "^7.0.2",
"html-minifier": "^4.0.0",
"hugo-extended": "0.68.3",
"husky": "^4.2.5",
"imagemin-cli": "^5.1.0",
"imagemin-gifsicle": "^7.0.0",
"imagemin-jpegoptim": "^6.0.0",
"imagemin-pngquant": "^8.0.0",
"imagemin-svgo": "^7.1.0",
"jshint": "~2.11.0",
"lint-staged": "^10.1.7",
"markdownlint-cli": "~0.22.0",
"npm-run-all": "^4.1.5",
"postcss-clean": "^1.1.0",
"postcss-cli": "^7.1.0",
"postcss-reporter": "^6.0.1",
"rimraf": "^3.0.2",
"stylelint": "~13.3.3",
"stylelint-config-sass-guidelines": "~7.0.0",
"stylelint-scss": "~3.17.1",
"terser": "^4.6.12"
},
"resolutions": {
"postcss-clean/postcss": "^7.x"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.scss": [
"yarn lint:scss"
],
"*.js": [
"yarn lint:js"
],
"*.md": [
"yarn lint:md"
]
}
}