Grunt Added
Hey Dan,
Codekit is great, but I've outgrown it.
Grunt.js is the heavy duty taskrunner, for folks who need a little more elbow grease than Codekit has. I created the gruntfiles necessary for brew. Please consider adding them into the master.
Added Grunt functionality for: -js concatenation and minification -image optimization -css to less
Thank you for this. I will review. Grunt was one thing I wanted to make sure was implemented for 1.0
I had to disable the imagemin function in the gruntfile. Turns out it's not stable and sometimes instead of optimizing images, will instead nuke them.
Any news on approving this for master?
I updated the .gitignore to ignore the /node_modules folder. That folder is all grunt dependencies that get downloaded the first time you run grunt. No reason for it to be included in the git repo.
Hello! Soon :) I've been away on business. I'm back and plan to start reviewing pull requests and pushing on towards 1.0. Thanks!
Dan
Not sure where to put this, maybe in the read me. For those not familiar with grunt, make sure you install it, I suggest this guide: http://www.ghosthorses.co.uk/production-diary/installing-grunt-on-os-x-and-windows-7/ Once installed a few steps to set it up for brew:
- from your terminal navigate to the brew theme directory
- run the command 'npm install' (this will download grunt dependencies)
- run a grunt command: -'grunt' to compile once -'grunt watch' to watch for changes and compile on each save
@colinsteinmann or @slightlyoffbeat - How would i go about grabbing these files so i run grunt on my vagrant box?
Hey Tanner,
Are you just asking how to grab the fork of the brew theme with grunt files included? The un-merged fork is located here: https://github.com/colinsteinmann/brew
Or are you asking something specific about using these files with Vagrant? The procedure for setting up Grunt and the procedure for installing a new Wordpress theme (such as brew) are not changed by using Vagrant. It's no different from running Ampps, or Xampp, or whatever dev environment:
-
Setup up a new Wordpress install, and put the directory folder in your theme directory.
-
Make sure Grunt is installed locally (not on your Vagrant VM). See the link to instructions in an earlier thread comment I made.
-
Open a terminal and cd to the brew theme directory, then type in 'grunt watch'.
P.S. The grunt fork is no doubt a little bit behind the master fork at this point, so be aware of this tradeoff.
Hey Slightlyoffbeat,
Any idea when you plan to merge the pull request?
- Aadesh