mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-07-19 04:55:30 -04:00
lint all of the things
stylelint, markdownlint, linkinator
This commit is contained in:
33
package.json
33
package.json
@@ -21,23 +21,23 @@
|
||||
"hugo:dev": "hugo --environment development --baseURL \"${DEPLOY_PRIME_URL:-/}\" --buildDrafts --buildFuture --gc --cleanDestinationDir --verbose",
|
||||
"start": "hugo server --buildDrafts --buildFuture --port 1313 --bind 0.0.0.0 --verbose",
|
||||
"optimize": "run-s optimize:**",
|
||||
"optimize:html": "html-minifier --html5 --collapse-whitespace --preserve-line-breaks --minify-css --file-ext html --input-dir public --output-dir public **/*.html",
|
||||
"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:css": "postcss public/style.css --use autoprefixer --no-map --replace --verbose && sleep 10 && cleancss -O0 --format 'keep-breaks' -o public/style.css public/style.css",
|
||||
"optimize:img": "find public/ -type d | 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=svgo --plugin=gifsicle --out-dir={}",
|
||||
"lint": "run-p lint:**",
|
||||
"lint:markdown": "markdownlint content/notes/**/*.md",
|
||||
"lint:sass": "stylelint assets/sass/**/* --syntax scss",
|
||||
"lint:links": "linkinator http://localhost:1313/ --recurse --silent --skip https://www.shodan.io/ --skip https://archive.today/ --skip https://archive.is/",
|
||||
"lint:links": "linkinator http://localhost:1313/ --recurse --silent --skip https://www.shodan.io/ --skip https://images.shodan.io/ --skip https://archive.today/ --skip https://archive.is/ --skip https://www.linkedin.com/ --skip http://localhost:1313/y2k/ --skip 'asdfasdf404/?$'",
|
||||
"debug:hugo": "hugo version; hugo env",
|
||||
"debug:size": "get-folder-size --folder=public"
|
||||
},
|
||||
"dependencies": {},
|
||||
"devDependencies": {
|
||||
"autoprefixer": "^9.7.3",
|
||||
"clean-css-cli": "~4.3.0",
|
||||
"clean-css-cli": "^4.3.0",
|
||||
"cross-env": "^6.0.3",
|
||||
"get-folder-size": "^2.0.1",
|
||||
"html-minifier": "~4.0.0",
|
||||
"html-minifier": "^4.0.0",
|
||||
"hugo-bin": "0.50.1",
|
||||
"imagemin-cli": "^5.1.0",
|
||||
"imagemin-gifsicle": "^6.0.1",
|
||||
@@ -53,12 +53,13 @@
|
||||
"postcss-cli": "^7.0.0",
|
||||
"rimraf": "^3.0.0",
|
||||
"stylelint": "~12.0.1",
|
||||
"stylelint-config-recommended-scss": "~4.1.0",
|
||||
"stylelint-config-sass-guidelines": "~6.2.0",
|
||||
"stylelint-declaration-block-no-ignored-properties": "~2.2.0",
|
||||
"stylelint-scss": "~3.13.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=12.13.0",
|
||||
"npm": "*** Use Yarn instead, please! https://yarnpkg.com/en/docs/cli/install ***",
|
||||
"npm": "^6.13.0",
|
||||
"yarn": "^1.19.2"
|
||||
},
|
||||
"hugo-bin": {
|
||||
@@ -66,22 +67,10 @@
|
||||
},
|
||||
"postcss": {
|
||||
"plugins": {
|
||||
"autoprefixer": {}
|
||||
"autoprefixer": {},
|
||||
"stylelint": {
|
||||
"configFile": ".stylelintrc.json"
|
||||
}
|
||||
}
|
||||
},
|
||||
"browserslist": [
|
||||
">= 1%",
|
||||
"last 4 major versions",
|
||||
"not dead",
|
||||
"chrome >= 54",
|
||||
"firefox >= 49",
|
||||
"ie 11",
|
||||
"android >= 5",
|
||||
"ios_saf >= 9.3",
|
||||
"not ie_mob <= 11"
|
||||
],
|
||||
"stylelint": {
|
||||
"extends": "stylelint-config-recommended-scss",
|
||||
"rules": {}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user