Be the first user to complete this post
|
Add to List |
Configuring jshint as a pre-commit hook for your nodejs applications
and you will get all your working-directory-only changes back.npm install grunt-githooks --save-dev
module.exports = {
all: {
'pre-commit': 'jshint',
}
};
grunt.config( 'githooks', require('./grunt/githooks.js') );
grunt.loadNpmTasks('grunt-githooks');
grunt githooks
git stash save --keep-index
git stash pop
Also Read:
- What is an npmignore file and what is it used for
- Configure The 'script' tag In package.json To Run Multiple Commands
- Resolved - Error: listen eaccess using nodejs and pm2
- Setup nginx with multi domain websites running on nodejs
- Dynamic module loading with require
- What does npm start do in nodejs
- Accessing the request body and session in nodejs using express
- Error: can not find module 'underscore'