mirror of
https://github.com/ChenQihan666/MyBlog-Next.git
synced 2026-08-14 11:29:33 +08:00
build: remove pre-commit git hook (#329)
Remove the pre-commit git hook and its related dependencies_ husky, lint-staged, commitizen and cz-conventional-changelog.
This commit is contained in:
@@ -1,4 +0,0 @@
|
|||||||
#!/usr/bin/env sh
|
|
||||||
. "$(dirname -- "$0")/_/husky.sh"
|
|
||||||
|
|
||||||
npx lint-staged
|
|
||||||
@@ -121,8 +121,8 @@ pnpm dlx create-astro --template satnaing/astro-paper
|
|||||||
Then start the project by running the following commands:
|
Then start the project by running the following commands:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# prepare commit hook & install dependencies
|
# install dependencies
|
||||||
npm run prepare && npm run install
|
npm run install
|
||||||
|
|
||||||
# start running the project
|
# start running the project
|
||||||
npm run dev
|
npm run dev
|
||||||
@@ -162,7 +162,6 @@ All commands are run from the root of the project, from a terminal:
|
|||||||
| `npm run format:check` | Check code format with Prettier |
|
| `npm run format:check` | Check code format with Prettier |
|
||||||
| `npm run format` | Format codes with Prettier |
|
| `npm run format` | Format codes with Prettier |
|
||||||
| `npm run sync` | Generates TypeScript types for all Astro modules. [Learn more](https://docs.astro.build/en/reference/cli-reference/#astro-sync). |
|
| `npm run sync` | Generates TypeScript types for all Astro modules. [Learn more](https://docs.astro.build/en/reference/cli-reference/#astro-sync). |
|
||||||
| `npm run cz` | Commit code changes with commitizen |
|
|
||||||
| `npm run lint` | Lint with ESLint |
|
| `npm run lint` | Lint with ESLint |
|
||||||
| `docker compose up -d` | Run AstroPaper on docker, You can access with the same hostname and port informed on `dev` command. |
|
| `docker compose up -d` | Run AstroPaper on docker, You can access with the same hostname and port informed on `dev` command. |
|
||||||
| `docker compose run app npm install` | You can run any command above into the docker container. |
|
| `docker compose run app npm install` | You can run any command above into the docker container. |
|
||||||
|
|||||||
Generated
+25
-1644
File diff suppressed because it is too large
Load Diff
@@ -11,8 +11,6 @@
|
|||||||
"astro": "astro",
|
"astro": "astro",
|
||||||
"format:check": "prettier --check . --plugin=prettier-plugin-astro",
|
"format:check": "prettier --check . --plugin=prettier-plugin-astro",
|
||||||
"format": "prettier --write . --plugin=prettier-plugin-astro",
|
"format": "prettier --write . --plugin=prettier-plugin-astro",
|
||||||
"cz": "cz",
|
|
||||||
"prepare": "husky install",
|
|
||||||
"lint": "eslint ."
|
"lint": "eslint ."
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
@@ -38,26 +36,12 @@
|
|||||||
"@types/react": "^18.3.3",
|
"@types/react": "^18.3.3",
|
||||||
"@typescript-eslint/parser": "^6.19.0",
|
"@typescript-eslint/parser": "^6.19.0",
|
||||||
"astro-eslint-parser": "^0.16.2",
|
"astro-eslint-parser": "^0.16.2",
|
||||||
"commitizen": "^4.3.0",
|
|
||||||
"cz-conventional-changelog": "^3.3.0",
|
|
||||||
"eslint": "^8.56.0",
|
"eslint": "^8.56.0",
|
||||||
"eslint-plugin-astro": "^0.31.3",
|
"eslint-plugin-astro": "^0.31.3",
|
||||||
"husky": "^8.0.3",
|
|
||||||
"lint-staged": "^15.2.0",
|
|
||||||
"prettier": "^3.3.3",
|
"prettier": "^3.3.3",
|
||||||
"prettier-plugin-astro": "^0.14.1",
|
"prettier-plugin-astro": "^0.14.1",
|
||||||
"prettier-plugin-tailwindcss": "^0.6.5",
|
"prettier-plugin-tailwindcss": "^0.6.5",
|
||||||
"react": "^18.3.1",
|
"react": "^18.3.1",
|
||||||
"react-dom": "^18.3.1"
|
"react-dom": "^18.3.1"
|
||||||
},
|
|
||||||
"config": {
|
|
||||||
"commitizen": {
|
|
||||||
"path": "./node_modules/cz-conventional-changelog"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"lint-staged": {
|
|
||||||
"*.{js,jsx,ts,tsx,md,mdx,json,astro}": [
|
|
||||||
"prettier --write --plugin=prettier-plugin-astro"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user