grunt-middleman icon indicating copy to clipboard operation
grunt-middleman copied to clipboard

Changing the middleman directory

Open johngrasty opened this issue 11 years ago • 1 comments

Hi,

First, I am a grunt noob. Sorry if this is elementary. I am using a few grunt tasks to process my files before they get placed in the middleman source directory. Is there a way to tell your plugin that the "bundle exec middleman" commands won't be run in . (relative to the Gruntfile.js) but rather should be run in ./middleman ?

Thanks so much for the help and the handy plugin!

johngrasty avatar Oct 28 '14 03:10 johngrasty

Hi, I know this isn't exactly answering the question, but I hope it helps anyway:

What I've done is to let Middleman look after it's own stuff, and get Grunt to manage other assets. Middleman is responsible for processing your source directory and then sending it to the build directory, and Grunt has the same responsibilities. Don't get Grunt to send your stuff to Middleman and then Middleman to do anything further with it. Get Grunt to send your assets to the right directory in the firstplace.

That's my approach anyway, good luck!

iparr avatar Oct 28 '14 11:10 iparr