• Stars
    star
    131
  • Rank 275,867 (Top 6 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created almost 4 years ago
  • Updated 7 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Quickly migrate your hooks from husky v4 to husky@latest

husky-4-to-8

Easily migrate your husky 4 config to husky 8

While it should cover most basic migrations, it's recommended to have a look at husky 8 documentation.

If your package.json is not at the same level as .git, please update manually.

Usage

npm

npm install husky@latest --save-dev \
  && npx husky-init \
  && npm exec -- github:typicode/husky-4-to-8 --remove-v4-config

yarn

Yarn 1

yarn add husky@latest --dev \
  && npx husky-init \
  && npm exec -- github:typicode/husky-4-to-8 --remove-v4-config

Yarn 2+

yarn add husky@latest --dev \
  && yarn dlx husky-init --yarn2 \
  && npm exec -- github:typicode/husky-4-to-8 --remove-v4-config

pnpm

pnpm install husky@8 --save-dev \
  && pnpx husky-init \
  && pnpx -- github:typicode/husky-4-to-8 --remove-v4-config

What each command does

husky init sets up Git hooks and updates your package.json scripts (you may want to commit your changes to package.json before running husky init).

husky-4-to-8 creates hooks based on your husky v4 config. If --remove-v4-config is passed, previous config will be deleted (recommended).

Revert

If there's an error during the process, you can clean things up by running:

rm -rf .husky && git config --unset core.hooksPath

More Repositories

1

json-server

Get a full fake REST API with zero coding in less than 30 seconds (seriously)
JavaScript
72,441
star
2

husky

Git hooks made easy 🐶 woof!
JavaScript
32,250
star
3

lowdb

Simple and fast JSON database
JavaScript
21,308
star
4

hotel

🏩 A simple process manager for developers. Start apps from your browser and access them using local domains
JavaScript
9,975
star
5

jsonplaceholder

A simple online fake REST API server
HTML
5,017
star
6

tlapse

📷 Create a timelapse of your web development... or just automatically take screenshots of your hard work ;)
JavaScript
2,024
star
7

xv

🙅‍♀️ ✌️ fastest test runner
JavaScript
832
star
8

mistcss

💧 Write atomic components using only CSS! (JS-from-CSS™)
JavaScript
788
star
9

pegasus

Load JSON while still loading other scripts
JavaScript
703
star
10

katon

(use hotel instead)
JavaScript
684
star
11

steno

Super fast async file writer with atomic write ⚡
JavaScript
678
star
12

react-fake-props

🔮 Magically generate fake props for your React tests
JavaScript
627
star
13

fetchival

Easy window.fetch requests
JavaScript
520
star
14

lodash-id

Makes it easy to manipulate id-based resources with lodash or lowdb
JavaScript
472
star
15

react-lodash

⚛️ 🔧 Lodash as React components
JavaScript
356
star
16

stop-server

📱 Shut down your computer with your phone
JavaScript
349
star
17

demo

A demo repository for My JSON Server (Alpha)
334
star
18

pinst

🍺 dev only postinstall hooks (package.json)
JavaScript
258
star
19

please-upgrade-node

💁 Show a message to your users to upgrade Node instead of a stacktrace
JavaScript
239
star
20

jsop

JSON file reader/writer (powered by Object.observe)
JavaScript
207
star
21

user-startup

Auto start commands when you log in (cross-platform)
JavaScript
125
star
22

cult

cult monitors gulpfile changes and reloads gulp
JavaScript
119
star
23

bg.nvim

Automatically sync your terminal background with your colorscheme 🎆
Lua
97
star
24

logan

Mini template system for the console and colors
JavaScript
81
star
25

minihost

Easily start and access servers
JavaScript
46
star
26

ghwn

Get desktop notifications for new issues, comments, stars... (no installation required)
HTML
42
star
27

shoutjs

Make your ShellJS commands explicit and get a beautiful output
JavaScript
30
star
28

homerun

Turn npm package scripts into CLI commands
JavaScript
23
star
29

server-ready

Know when a server is ready to receive requests
JavaScript
20
star
30

husky-init

JavaScript
20
star
31

backbone-pegasus

Load models and collections data while loading Backbone
JavaScript
20
star
32

server-ready-cli

Run commands only when a server is available
JavaScript
19
star
33

eslint-config

JavaScript
8
star
34

typicode.github.io

HTML
8
star