mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-04-26 11:25:22 -04:00
108 lines
3.9 KiB
JSON
108 lines
3.9 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/ _vendor/ .netlify/{cache,functions}/ $TMPDIR/hugo_cache/ || true",
|
|
"build": "run-s build:hugo build:functions minify",
|
|
"build:hugo": "hugo --gc --cleanDestinationDir --verbose",
|
|
"build:functions": "netlify-lambda build functions",
|
|
"start": "run-p start:hugo start:functions",
|
|
"start:hugo": "hugo server --disableFastRender --buildDrafts --buildFuture --port=1337 --baseURL=/ --appendPort=false --bind=0.0.0.0 --verbose",
|
|
"start:functions": "netlify-lambda serve --port 9337 functions",
|
|
"start:docker": "docker run --rm -v $(pwd):/src -p 1337:1337 $(docker build -q .)",
|
|
"minify": "run-s minify:**",
|
|
"minify:html": "html-minifier --html5 --collapse-whitespace --collapse-boolean-attributes --preserve-line-breaks --minify-css --remove-comments --file-ext html --input-dir public --output-dir public **/*.html",
|
|
"minify:js": "terser --compress passes=3,negate_iife=false,keep_fargs=false,sequences=false,reduce_vars=false --mangle reserved=['sa','sa_event'] --output public/js/app.js -- public/js/app.js",
|
|
"minify: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='{}' > /dev/null 2>&1 || true",
|
|
"lint": "run-s lint:**",
|
|
"lint:scss": "stylelint 'assets/sass/**/*.scss' --syntax scss",
|
|
"lint:js": "eslint '**/*.js'",
|
|
"lint:md": "markdownlint 'content/**/*.md'",
|
|
"lint:prettier": "prettier --check ."
|
|
},
|
|
"dependencies": {
|
|
"@algolia/algoliasearch-netlify-frontend": "1.0.5",
|
|
"axios": "^0.21.1",
|
|
"dotenv": "^8.2.0",
|
|
"normalize.css": "8.0.1",
|
|
"twemoji": "13.0.2",
|
|
"twemoji-emojis": "13.0.2"
|
|
},
|
|
"devDependencies": {
|
|
"@algolia/netlify-plugin-crawler": "^1.0.5",
|
|
"autoprefixer": "^10.2.5",
|
|
"cross-env": "^7.0.3",
|
|
"eslint": "~7.22.0",
|
|
"eslint-config-prettier": "~8.1.0",
|
|
"eslint-plugin-compat": "~3.9.0",
|
|
"eslint-plugin-prettier": "~3.3.1",
|
|
"html-minifier": "^4.0.0",
|
|
"hugo-extended": "0.79.1",
|
|
"husky": "^4.3.8",
|
|
"imagemin-cli": "^6.0.0",
|
|
"lint-staged": "^10.5.4",
|
|
"markdownlint-cli": "~0.27.1",
|
|
"netlify-lambda": "^2.0.3",
|
|
"netlify-plugin-cache": "*",
|
|
"netlify-plugin-debug-cache": "*",
|
|
"npm-run-all": "^4.1.5",
|
|
"postcss": "^8.x",
|
|
"postcss-clean": "^1.2.2",
|
|
"postcss-cli": "^8.3.1",
|
|
"postcss-color-rgba-fallback": "^4.0.0",
|
|
"postcss-focus": "^5.0.1",
|
|
"postcss-import": "^14.0.0",
|
|
"postcss-reporter": "^7.0.2",
|
|
"postcss-svgo": "^4.0.2",
|
|
"prettier": "^2.2.1",
|
|
"rimraf": "^3.0.2",
|
|
"stylelint": "~13.12.0",
|
|
"stylelint-config-prettier": "~8.0.2",
|
|
"stylelint-config-sass-guidelines": "~8.0.0",
|
|
"stylelint-no-unsupported-browser-features": "~4.1.4",
|
|
"stylelint-prettier": "~1.2.0",
|
|
"stylelint-scss": "~3.19.0",
|
|
"terser": "^5.6.0"
|
|
},
|
|
"optionalDependencies": {
|
|
"imagemin-gifsicle": "^7.0.0",
|
|
"imagemin-jpegoptim": "^7.0.0",
|
|
"imagemin-pngquant": "^9.0.2",
|
|
"imagemin-svgo": "^9.0.0"
|
|
},
|
|
"resolutions": {
|
|
"postcss-clean/postcss": "^8.x"
|
|
},
|
|
"husky": {
|
|
"hooks": {
|
|
"pre-commit": "lint-staged"
|
|
}
|
|
},
|
|
"lint-staged": {
|
|
"*.scss": [
|
|
"stylelint --syntax scss",
|
|
"prettier --write"
|
|
],
|
|
"*.js": [
|
|
"eslint",
|
|
"prettier --write"
|
|
],
|
|
"*.md": [
|
|
"markdownlint",
|
|
"prettier --write"
|
|
]
|
|
}
|
|
}
|