gateway
gateway copied to clipboard
support documentation
I'm sure this node module works great, and the instructions for installing the prerequisites is there ok, but I for one am having serious difficulty figuring out how I am supposed to use this to modify Yeoman's built-in server task to serve up PHP files. I tried it after installing and no joy, so I assume I may have to make some changes in the Gruntfile, but figuring what changes need to be made (alias the server task, perhaps?), is pretty opaque.
Is there any chance of some more complete documentation on how to make this work with Yeoman, please?
Cheers
D
This module is part of a (meanwhile closed) pull-request. Since the authors of Yeoman decided not to include this feature there is currently no way to make this work without forking and patching Yeoman manually. Once Yeoman switches to grunt-contrib-connect (which I think is planned) it will be possible to add custom middleware to the built-in server task as outlined here.
To bad... i was excited to get this working... thx for your work anyway. g
@fgnass Any update on this??
The Yeoman documentation progress is tracked here: https://github.com/yeoman/yeoman/issues/829
I have wrote a blog post on Using Yeoman 1.0beta3 with PHP.
My code is available on Github. You can look into the git commit for the whole set of changes required for serving php files.
Currently I updated only for connect/livereload tasks. I am working on updating it for build, usemin and other tasks.
It seems there is an easy workaround using grunt-php
What it comes down to is that Yeoman isn't going to be updated anymore. They have created a new tool named Yo that will scaffold your apps and then hand off the day to day tasks to Grunt and Bower.
Yo, unlike Yeoman, does use grunt-contrib-connect and works properly as the middleware. If you use Yo @revathskumar's guide will work perfectly.