Skip to content

iliakan/javascript-precommit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Installs git precommit hook for running lints & checks before git commit.

Usage

  1. Make sure your .git dir is on the same path as package.json. In other words, they share the same parent folder. Usually it is so.
  2. Edit your package.json, add precommit: <what to do>, e.g.
{ 
  "name": "My package.json",
  "precommit": "gulp lint"
}
  1. npm i javascript-precommit

Now every git commit will run gulp lint task and only pass if the task is successful.

About

Installs git precommit hook for running checks & lints before git commit

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published