From 9dc4d12e2d1b0690604c5412c09e55498881e148 Mon Sep 17 00:00:00 2001 From: Baoshuo Ren Date: Thu, 1 Sep 2022 08:01:41 +0800 Subject: [PATCH 1/3] Remove david-dm from README The `david-dm.org` website is down for 3 months, and the project `alanshaw/david` is not actively maintained anymore. `david-dm.org` should be considered dead, thus badges should be removed from README. --- readme.md | 4 ---- 1 file changed, 4 deletions(-) diff --git a/readme.md b/readme.md index ba6536f..dcec226 100644 --- a/readme.md +++ b/readme.md @@ -1,5 +1,4 @@ [![NPM][npm]][npm-url] -[![Deps][deps]][deps-url] [![Tests][build]][build-url] [![Coverage][cover]][cover-url] [![Standard Code Style][code-style]][code-style-url] @@ -392,9 +391,6 @@ Thank you to all our backers! 🙏 [[Become a backer](https://opencollective.com [npm]: https://img.shields.io/npm/v/posthtml.svg [npm-url]: https://npmjs.com/package/posthtml -[deps]: https://david-dm.org/posthtml/posthtml.svg -[deps-url]: https://david-dm.org/posthtml/posthtml - [build]: https://github.com/posthtml/posthtml/workflows/Actions%20Status/badge.svg?style=flat-square [build-url]: https://github.com/posthtml/posthtml/actions?query=workflow%3A%22CI+tests%22 From 1fc2a0978c5c09ad5f3c00e1d6ff765526554899 Mon Sep 17 00:00:00 2001 From: chimurai <655241+chimurai@users.noreply.github.com> Date: Sun, 12 Dec 2021 22:40:16 +0000 Subject: [PATCH 2/3] build: fix husky hooks --- .husky/commit-msg | 4 ++++ .husky/pre-commit | 4 ++++ .husky/pre-push | 4 ++++ .huskyrc | 7 ------- package.json | 1 + 5 files changed, 13 insertions(+), 7 deletions(-) create mode 100755 .husky/commit-msg create mode 100755 .husky/pre-commit create mode 100755 .husky/pre-push delete mode 100644 .huskyrc diff --git a/.husky/commit-msg b/.husky/commit-msg new file mode 100755 index 0000000..9078cf7 --- /dev/null +++ b/.husky/commit-msg @@ -0,0 +1,4 @@ +#!/bin/sh +. "$(dirname "$0")/_/husky.sh" + +npx --no-install commitlint --extends=@commitlint/config-angular --edit $1 diff --git a/.husky/pre-commit b/.husky/pre-commit new file mode 100755 index 0000000..d37daa0 --- /dev/null +++ b/.husky/pre-commit @@ -0,0 +1,4 @@ +#!/bin/sh +. "$(dirname "$0")/_/husky.sh" + +npx --no-install lint-staged diff --git a/.husky/pre-push b/.husky/pre-push new file mode 100755 index 0000000..e8ecc9a --- /dev/null +++ b/.husky/pre-push @@ -0,0 +1,4 @@ +#!/bin/sh +. "$(dirname "$0")/_/husky.sh" + +npm t diff --git a/.huskyrc b/.huskyrc deleted file mode 100644 index 52557c1..0000000 --- a/.huskyrc +++ /dev/null @@ -1,7 +0,0 @@ -{ - "hooks": { - "pre-push": "npm t", - "pre-commit": "lint-staged", - "commit-msg": "commitlint --extends=@commitlint/config-angular -e" - } -} \ No newline at end of file diff --git a/package.json b/package.json index 0b091e4..68de4b0 100644 --- a/package.json +++ b/package.json @@ -41,6 +41,7 @@ "standard": "^16.0.2" }, "scripts": { + "prepare": "husky install", "version": "conventional-changelog -i changelog.md -s -r 0 && git add changelog.md", "test": "c8 mocha", "docs:api": "jsdoc2md lib/api.js > docs/api.md", From b161177ef63edfc3f36d4e86aa9dab9718be33a1 Mon Sep 17 00:00:00 2001 From: Ivan Voischev Date: Thu, 1 Jun 2023 17:29:12 +0300 Subject: [PATCH 3/3] fix #395 --- readme.md | 4 ---- 1 file changed, 4 deletions(-) diff --git a/readme.md b/readme.md index dcec226..abbe3e3 100644 --- a/readme.md +++ b/readme.md @@ -2,7 +2,6 @@ [![Tests][build]][build-url] [![Coverage][cover]][cover-url] [![Standard Code Style][code-style]][code-style-url] -[![Twitter][twitter]][twitter-url] # PostHTML @@ -400,9 +399,6 @@ Thank you to all our backers! 🙏 [[Become a backer](https://opencollective.com [code-style]: https://img.shields.io/badge/code%20style-standard-yellow.svg [code-style-url]: http://standardjs.com/ -[twitter]: https://badgen.net/twitter/follow/posthtml -[twitter-url]: https://twitter.com/PostHTML - [chat]: https://badges.gitter.im/posthtml/PostHTML.svg [chat-url]: https://gitter.im/posthtml/posthtml?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge" [docs-url]: https://github.com/posthtml/posthtml/tree/master/docs