mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-04-27 06:58:28 -04:00
75 lines
2.7 KiB
JSON
75 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 optimize:emoji",
|
|
"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:emoji": "rimraf public/vendor/emoji/{*.html,72x72}",
|
|
"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: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.speed=5 --plugin.pngquant.strip --plugin=optipng --plugin.optipng.optimizationLevel=2 --plugin=gifsicle --plugin=svgo --out-dir={}",
|
|
"lint": "run-s lint:**",
|
|
"lint:scss": "stylelint assets/sass/**/* --syntax scss",
|
|
"lint:md": "markdownlint --rules markdownlint-rule-emphasis-style content/**/*.md content/**/**/*.md",
|
|
"index": "run-s clean hugo index:** clean",
|
|
"index:algolia": "atomic-algolia"
|
|
},
|
|
"dependencies": {},
|
|
"devDependencies": {
|
|
"atomic-algolia": "^0.3.17",
|
|
"autoprefixer": "^9.7.5",
|
|
"cross-env": "^7.0.2",
|
|
"html-minifier": "^4.0.0",
|
|
"hugo-extended": "0.68.3",
|
|
"husky": "^4.2.3",
|
|
"imagemin-cli": "^5.1.0",
|
|
"imagemin-gifsicle": "^7.0.0",
|
|
"imagemin-jpegoptim": "^6.0.0",
|
|
"imagemin-mozjpeg": "^8.0.0",
|
|
"imagemin-optipng": "^7.1.0",
|
|
"imagemin-pngquant": "^8.0.0",
|
|
"imagemin-svgo": "^7.1.0",
|
|
"lint-staged": "^10.1.1",
|
|
"markdownlint-cli": "~0.22.0",
|
|
"markdownlint-rule-emphasis-style": "~1.0.1",
|
|
"npm-run-all": "^4.1.5",
|
|
"percy": "^0.26.2",
|
|
"postcss-clean": "^1.1.0",
|
|
"postcss-cli": "^7.1.0",
|
|
"postcss-reporter": "^6.0.1",
|
|
"rimraf": "^3.0.2",
|
|
"stylelint": "~13.3.0",
|
|
"stylelint-config-sass-guidelines": "~7.0.0",
|
|
"stylelint-scss": "~3.16.0"
|
|
},
|
|
"husky": {
|
|
"hooks": {
|
|
"pre-commit": "lint-staged"
|
|
}
|
|
},
|
|
"lint-staged": {
|
|
"*.scss": [
|
|
"yarn lint:scss"
|
|
],
|
|
"*.md": [
|
|
"yarn lint:md"
|
|
]
|
|
}
|
|
}
|