UNPKG

git-pre-commit

Version:

You can run the pre-commit with any build tool (Gulp, Grunt etc..) and it will ignore all the **unstaged changes** that wasn't added to the git index (using the command ```git add```).

10 lines (8 loc) 276 B
const yargs = require('yargs'); module.exports = { showProccesedFiles: yargs.argv.show || false, all: yargs.argv.all, path: yargs.argv.path, fix: yargs.argv.fix, env: yargs.argv.env ? yargs.argv.env : (process.env.NODE_ENV ? process.env.NODE_ENV : 'production') };