https://github.com/fishme/jsprinciples
git hooks for javascript development
https://github.com/fishme/jsprinciples
git git-hooks
Last synced: about 2 months ago
JSON representation
git hooks for javascript development
- Host: GitHub
- URL: https://github.com/fishme/jsprinciples
- Owner: fishme
- License: gpl-3.0
- Created: 2018-08-08T05:32:06.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-08-08T10:30:23.000Z (almost 8 years ago)
- Last Synced: 2025-07-22T15:42:10.843Z (11 months ago)
- Topics: git, git-hooks
- Language: Shell
- Size: 32.2 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# JS Principles
Validation examples with git hooks.
## Getting Started
Well I guess you know that you will need git. :-)
## Installation
By default .git folder is hidden.
### Visual Studio Code
If you use Visual Code then set this setting. That will enable the hidden git folder.
```
"files.exclude": {
"**/.git": false
}
```
You can also open your project in the terminal and run `open .git/`
## How to use
* select a template from [templates/](https://github.com/fishme/JSprinciples/tree/master/templates)
replace this with a validation from [hooks/](https://github.com/fishme/JSprinciples/tree/master/hooks)
```
# !!!!!!
# paste from hooks/*
# !!!!!!
```
`cp templates/pre-commit ./.git/hooks/pre-commit && chmod +x .git/hooks/pre-commit`
If you want to know more about hooks read the [git documentation](https://git-scm.com/book/en/v2/Customizing-Git-Git-Hooks)
## None ZSH Users
If you don't use [zsh](https://ohmyz.sh/) then you have to change the fist 2 lines from the template
```
#!/bin/zsh
source ~/.zshrc
```
replace with `#!/bin/sh`
## Contributing
Please read [CONTRIBUTING.md](https://gist.github.com/PurpleBooth/b24679402957c63ec426) for details on our code of conduct, and the process for submitting pull requests to us.
## Authors
* **David Hohl** - *Initial work* - [Fishme](https://github.com/Fishme)
See also the list of [contributors](https://github.com/your/project/contributors) who participated in this project.
## License
This project is licensed under the GNU License - see the [LICENSE.md](LICENSE.md) file for details