I recently incorporated Gruntjs into my site to improve my productivity as I have limited time to work on my site. Below is a gist of my
Although, Grunt, at first, may seem complicated, it is in fact generally easy to work with. It is dependent on your
package.json, so make sure you
npm install prior to trying to use
grunt. In addition, any plugin that you want to use and call in the
Gruntfile.js needs to also be included in the
Gruntfile.js I use the grunt-git plugin. I need it to make my life easier when it comes to pushing my site content to both my source and master branches. Currently I develop my site on the source branch and push my
_site from source to master. Although I am still working on the Gruntfile to do this perfectly.
If it isn’t obvious, I host my site from that master branch. In the past I relied on Github to compile my code; however, I now use modules that are not supported and such I am required to compile my own code and then push the data.
I just implemented a small bash script to do some of the grunt work. I call the script with the