mirror of
https://github.com/seigler/dash-website
synced 2025-07-26 23:06:09 +00:00
add pre-commit pkg, to run eslint & htmlproofer
This commit is contained in:
parent
8c55cdd3d5
commit
dffe2f9d13
3 changed files with 3646 additions and 20 deletions
13
package.json
13
package.json
|
@ -9,7 +9,7 @@
|
|||
"uglify:dist": "mkdir -p dist/js/ && ./node_modules/uglify-js/bin/uglifyjs src/js/*.js -m -o dist/js/main.min.js",
|
||||
"uglify:dev": "mkdir -p dist/js/ && ./node_modules/uglify-js/bin/uglifyjs src/js/*.js -c -o dist/js/main.min.js",
|
||||
"uglify": "npm run uglify:dist",
|
||||
"htmlproof": "htmlproofer ./_site --disable-external --allow-hash-href --assume-extension --alt-ignore '/.*/' --file-ignore /assets/,/dist/,/style-guide/,/blog/ --url-ignore '/^\/binaries\/.+$/,/^\/forum\/?.*$/'",
|
||||
"htmlproof": "htmlproofer ./_site --disable-external --allow-hash-href --assume-extension --alt-ignore '/.*/' --file-ignore /assets/,/dist/,/style-guide/,/blog/ --url-ignore '/^/binaries/.+$/,/^/forum/?.*$/'",
|
||||
"test": "echo \"No Tests.\" && exit 0",
|
||||
"clean:dist": "rm -rf dist && rm -rf _site",
|
||||
"clean": "npm run clean:dist",
|
||||
|
@ -37,7 +37,8 @@
|
|||
"watch": "run-p serve watch:jekyll watch:css watch:js",
|
||||
"serve": "browser-sync start --server _site -f '_site/dist/css'",
|
||||
"start": "npm run build -s && npm run watch",
|
||||
"postinstall": "gem install bundler && bundle install"
|
||||
"postinstall": "gem install bundler && bundle install",
|
||||
"validate": "npm ls"
|
||||
},
|
||||
"author": "0xfff <0xfff@protonmail.com>",
|
||||
"license": "MIT",
|
||||
|
@ -52,6 +53,7 @@
|
|||
"onchange": "3.0.2",
|
||||
"postcss": "5.0.14",
|
||||
"postcss-cli": "2.5.0",
|
||||
"precommit-hook": "^3.0.0",
|
||||
"uglify-js": "2.7.3",
|
||||
"watch": "0.19.2"
|
||||
},
|
||||
|
@ -59,5 +61,10 @@
|
|||
"no-scroll": "^2.0.0",
|
||||
"sass-burger": "^1.3.1",
|
||||
"slick-carousel": "^1.6.0"
|
||||
}
|
||||
},
|
||||
"jshintConfig": {},
|
||||
"pre-commit": [
|
||||
"eslint",
|
||||
"htmlproof"
|
||||
]
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue