作曲家和Yii [英] Composer and Yii
问题描述
我使用composer作为我的依赖管理器,因为我需要开发与Yii框架我添加到我的composer.json文件,所以它看起来像这样:
//其他属性...
require:{
//其他依赖项...
yiisoft / yii:dev -master
}
Composer.json正常,Yii下载正确,一个功能,我认为作曲家错过。
我的yii目录现在充满了垃圾,演示文件夹,构建文件bla bla,我真的不需要。
有一种方法告诉作曲家只保留一些目录并丢弃其他目录?
完全相同的问题,所以我最后重新打包Yii ,以便它只包含框架夹。它减少了〜10Mb的包。这里有一个指向github库的链接。
只需将以下内容添加到您的composer.json文件中。
{
require:{
square1-io / yii-framework:1.1.14
}
}
然后运行:
$ composer install
pre>
我抛出了一个博客文章: http://blog.square1.io/post/60830077608/yii-1-1-14-via-composer
I'm using composer as my dependency manager and since I need to develop with Yii Framework I added it to my composer.json file, so it looks like this:
//other properties... "require": { //other dependencies... "yiisoft/yii": "dev-master" }
Composer.json is ok, Yii downloaded correctly, but there is a feature I think composer misses. My yii directory now is full of "rubbish", demo folders, build files bla bla that I don't really need. There is a way to tell composer to keep only some directory and throw away the others?
解决方案I had the exact same issue, so I ended up repackaging Yii so that it only contains the framework folder. It reduces the package by ~10Mb. Here's a link to the github repo.
Just add the following to your composer.json file.
{ "require": { "square1-io/yii-framework": "1.1.14" } }
Then run:
$ composer install
I've thrown up a blog post about it: http://blog.square1.io/post/60830077608/yii-1-1-14-via-composer
这篇关于作曲家和Yii的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!