Add CI format check script
This commit is contained in:
19
package.json
19
package.json
@@ -1,28 +1,33 @@
|
||||
{
|
||||
"name": "privacytools.io",
|
||||
"version": "1.0.0",
|
||||
"description": "[](https://www.privacytools.io/)",
|
||||
"devDependencies": {
|
||||
"glob": "^7.1.4",
|
||||
"husky": "^3.0.2",
|
||||
"js-beautify": "^1.10.1"
|
||||
"js-beautify": "^1.10.1",
|
||||
"lint-staged": "^9.2.1"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "bundle exec jekyll build",
|
||||
"serve": "bundle exec jekyll serve",
|
||||
"html-beautify": "node_modules/.bin/html-beautify --editorconfig .editorconfig -r '**/*.html'; git add \\*.html",
|
||||
"beautify-and-build": "npm run html-beautify && npm run build"
|
||||
"format:html": "node bin/get-html-ls.js | xargs node_modules/.bin/html-beautify -r",
|
||||
"format-test:html": "node bin/get-html-ls.js | xargs bash bin/html-beautify-check.sh"
|
||||
},
|
||||
"husky": {
|
||||
"hooks": {
|
||||
"pre-commit": "npm run html-beautify"
|
||||
"pre-commit": "node_modules/.bin/lint-staged"
|
||||
}
|
||||
},
|
||||
"lint-staged": {
|
||||
"**/*.html": [
|
||||
"bin/html-beautify-check.sh"
|
||||
]
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/privacytoolsIO/privacytools.io.git"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/privacytoolsIO/privacytools.io/issues"
|
||||
},
|
||||
"homepage": "https://github.com/privacytoolsIO/privacytools.io#readme"
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user