mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-04-26 16:08:26 -04:00
104 lines
3.8 KiB
JSON
104 lines
3.8 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": "hugo mod 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 --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 --no-cache -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 'assets/js/**/*.js' 'functions/**/*.js'",
|
|
"lint:md": "markdownlint 'content/**/*.md'",
|
|
"lint:prettier": "prettier --check ."
|
|
},
|
|
"dependencies": {
|
|
"normalize.css": "8.0.1",
|
|
"twemoji": "13.0.1",
|
|
"twemoji-parser": "13.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"autoprefixer": "^9.8.5",
|
|
"cross-env": "^7.0.2",
|
|
"eslint": "~7.5.0",
|
|
"eslint-config-prettier": "~6.11.0",
|
|
"eslint-plugin-compat": "~3.8.0",
|
|
"eslint-plugin-prettier": "~3.1.4",
|
|
"html-minifier": "^4.0.0",
|
|
"hugo-extended": "0.74.3",
|
|
"husky": "^4.2.5",
|
|
"imagemin-cli": "^6.0.0",
|
|
"lint-staged": "^10.2.11",
|
|
"markdownlint-cli": "~0.23.2",
|
|
"netlify-lambda": "^2.0.1",
|
|
"netlify-plugin-cache": "*",
|
|
"netlify-plugin-debug-cache": "*",
|
|
"npm-run-all": "^4.1.5",
|
|
"postcss": "^7.x",
|
|
"postcss-clean": "^1.1.0",
|
|
"postcss-cli": "^7.1.1",
|
|
"postcss-color-rgba-fallback": "^4.0.0",
|
|
"postcss-focus": "^4.0.0",
|
|
"postcss-reporter": "^6.0.1",
|
|
"prettier": "^2.0.5",
|
|
"rimraf": "^3.0.2",
|
|
"stylelint": "~13.6.1",
|
|
"stylelint-config-prettier": "~8.0.2",
|
|
"stylelint-config-sass-guidelines": "~7.0.0",
|
|
"stylelint-no-unsupported-browser-features": "~4.0.0",
|
|
"stylelint-prettier": "~1.1.2",
|
|
"stylelint-scss": "~3.18.0",
|
|
"terser": "^4.8.0"
|
|
},
|
|
"optionalDependencies": {
|
|
"gifsicle": "jakejarvis/gifsicle-bin#master",
|
|
"imagemin-gifsicle": "^7.0.0",
|
|
"imagemin-jpegoptim": "^7.0.0",
|
|
"imagemin-pngquant": "^9.0.0",
|
|
"imagemin-svgo": "^8.0.0"
|
|
},
|
|
"resolutions": {
|
|
"imagemin-gifsicle/gifsicle": "jakejarvis/gifsicle-bin#master",
|
|
"postcss-clean/postcss": "^7.x"
|
|
},
|
|
"husky": {
|
|
"hooks": {
|
|
"pre-commit": "lint-staged"
|
|
}
|
|
},
|
|
"lint-staged": {
|
|
"*.scss": [
|
|
"stylelint --syntax scss",
|
|
"prettier --write"
|
|
],
|
|
"*.js": [
|
|
"eslint",
|
|
"prettier --write"
|
|
],
|
|
"*.md": [
|
|
"markdownlint",
|
|
"prettier --write"
|
|
]
|
|
}
|
|
}
|