Using Meteor js and grunt js together
meteor provides a lot of really cool build stuff right out of the box but at this point in it's development doesn't really let you dig into their build system and start adding your own build tasks.
grunt js is very good at build tasks so you might think hey.. why not.
if you follow all the general instructions on using grunt and apply them to your meteor project everything will work hunky dory, till you start up meteor again.
she'll spit errors like no one's business because grunt requires some node packages to added to the meteor app directory and that causes conflicts galore with meteors own build system.
there are a couple approaches you can try. the first is to put your entire meteor app in a directory below your grunt setup.
/myApp/Gruntfile.js /myApp/meteorApp/.meteor
this seems logical enough, since your working meteor app, is really the build product.
until you're half way through a project and need to add grunt. causing all manner of hell with git, and all your established directories.
there's also the question of how that affects deployment to sites like modulus--though, reasonably you'd probably just deploy from the "meteorApp" directory.
another approach, and the one I'm trying, is to throw your grunt related stuff into the /tests. by default meteor ignores this directory and doing it this way seems like a less breaky-the-whole-world way of quickly adding some grunt to your app.
happy grunting kids.













