grunt-workflow-hooks
v0.1.0
Published
The best Grunt plugin ever.
Downloads
2
Readme
#grunt-workflow-hooks
A streamlined NPM module to use in conjunction with grunt-githooks module so that portable OS agnostic githooks scripts are a reality.
Getting Started
First off you'll want to have grunt-githooks installed and configured in your project Gruntfile.js after that it's as easy as npm install workflow-hooks
or adding the package to your package.json
file and your good to go.
The scripts
archive-feature-branch.js
Ideally you want to get rid of that branch when you merge it right? I know do. Whatever I don't care what you think we are archiving that thing! But it will ask you again just to make sure when you do. This script will tag, archive, and delete that branch on a branch merge into master.
automatic-git-comments.js
So like you know how you waste a ton of time writing up witty commit messages and trying to remember what the hell you were working on 8 hours ago? If you made comments along the way like your supposed to then this will automatically parse them and add them to your git message. Eazy Cheezy.
commented-out-code.js
You really shouldn't be doing that... You know leaving commented out code in your commits. It looks sloppy and 10 months from now nobody will care what the heck you figured out even you.
forgotten-todos.js
If you want to be reminded of straggling forgotten todos or @TODO when you go to commit a file into version control history this will do just that. It will build a comprehensive list of todos in your current git diff and wait for instructions. You won't forget todo the todo ever again.
keywords-check.js
Let's clean up your code quality by checking for code that we almost never want to commit. Like var_dump()
or console.log()
. No more forehead slaps when you accidentally commit your code for a review and you look like a jerk because your xdebug_break()
ing all over the place.
mixed-tabs-spaces.js
YUNO set your spacing profile? It looks like crap when you open that up in an editor that's setup "right" and screws up the tabs/spacing. Let's not do that you seem like a chump.
prepend-feature-branch.js
Oh yeah no more copy-pasting your feature branch name into your commit messages. Why is that useful to have in your commit message? Because you can track that crap down later even after it's been merged 1000xgrep the git logs or whatever.