I've been working to integrate grunt for the work I'm doing on my personal site. However - it seems like it isn't designed to work well for my current implementation. In short, I am using a static site generator (Wintersmith). My desire is to have grunt to perform a series of actions (minify css, uglify for js, format HTML and remove empty lines) on this directory that was generated by the site generator.
In short here are my issues:
- Grunt plugins seem to always have a different source and destination for files. In my case, I just want it to take a file (for example, a CSS file) and have it be minified in the same file.
- Grunt doesn't seem to handle situations where you want to perform an action on a series of files where each action would have a different output. For example, if I want it to perform an action to format the generated HTML on all HTML files in a directory (without naming them each specifically) - then I can't.
I would like to use grunt in this case, but it seems like I'd just be better off writing a shell script for this task.