gateway icon indicating copy to clipboard operation
gateway copied to clipboard

support documentation

Open djeglin opened this issue 12 years ago • 7 comments

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

djeglin avatar Nov 12 '12 15:11 djeglin

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.

fgnass avatar Nov 12 '12 15:11 fgnass

To bad... i was excited to get this working... thx for your work anyway. g

FloNeu avatar Nov 22 '12 15:11 FloNeu

@fgnass Any update on this??

revathskumar avatar Apr 03 '13 06:04 revathskumar

The Yeoman documentation progress is tracked here: https://github.com/yeoman/yeoman/issues/829

fgnass avatar Apr 03 '13 09:04 fgnass

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.

revathskumar avatar Apr 03 '13 13:04 revathskumar

It seems there is an easy workaround using grunt-php

revathskumar avatar Apr 03 '13 14:04 revathskumar

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.

brodkin avatar May 29 '13 17:05 brodkin