dtgr3392 2013-01-05 00:29
浏览 61
已采纳

Yeoman和php文件?

Is there any way to configure Yeoman (latest version: v0.9.6) to serve php files?

I found this http://fgnass.github.com/2012/08/30/yeoman.html but couldn't get it working.

Installed https://github.com/fgnass/gateway, https://github.com/fgnass/tamper and made the required updates to Yeoman as shown here: https://github.com/fgnass/yeoman/commit/39faa07375ee49d56bd50d334dcfd6b5a4e96292.

All i got is the browser downloading each php file instead of rendering it.

Any help is greatly appreciated!

EDIT:

Yeoman 1.0 has been launched. I haven't tried using php with it yet but would still like to know if it is possible.

  • 写回答

2条回答 默认 最新

  • dongming6201 2013-04-03 13:32
    关注

    I just wrote a blog post on Using Yeoman 1.0beta3 with PHP. It seems http://fgnass.github.com/2012/08/30/yeoman.html is not updated for yeoman 1.0.

    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.

    UPDATE : 1

    It seems there is an easy workaround with grunt-php.
    I haven't used it, but will update once I used it.

    Thanks,
    Revath

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥100 set_link_state
  • ¥15 虚幻5 UE美术毛发渲染
  • ¥15 CVRP 图论 物流运输优化
  • ¥15 Tableau online 嵌入ppt失败
  • ¥100 支付宝网页转账系统不识别账号
  • ¥15 基于单片机的靶位控制系统
  • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度