Move Husky to devDependencies and update notes in readme

This commit is contained in:
kitajchuk
2021-04-30 07:13:43 -07:00
parent 171f330261
commit 1b94024677
2 changed files with 3 additions and 3 deletions

View File

@@ -16,11 +16,11 @@ This app can easily be deployed to multiple targets including Vercel, Netlify or
Clone this repository and install [yarn](https://yarnpkg.com/getting-started/install). From app root:
***Important for developers: Run a fresh `yarn install` and make sure Husky installs on your local machine***
- `yarn install`
- Installs node packages
- Installs [husky](https://typicode.github.io/husky/) for git `pre-commit` hooks
- If the `prepare` script doesn't run (issue with yarn v2+) you can run `npx husky install`
- Be warned this code-base is NOT tested with `yarn` v2+ (breaking changes)
- Husky will run `yarn lint` before a git commit and stop the commit if `ESLint` fails
- `yarn dev`
- Serves local dev at [localhost:3000](http://localhost:3000)

View File

@@ -16,7 +16,6 @@
"license": "MIT",
"dependencies": {
"classnames": "^2.2.6",
"husky": "^6.0.0",
"nanoid": "^3.1.22",
"next": "^10.0.8-canary.9",
"prismjs": "^1.23.0",
@@ -30,6 +29,7 @@
"eslint": "^7.25.0",
"eslint-plugin-react": "^7.23.2",
"gray-matter": "^4.0.2",
"husky": "^6.0.0",
"remark": "^13.0.0",
"remark-gfm": "^1.0.0",
"remark-html": "^13.0.1",