1 Star 0 Fork 0

王宏 / swoft

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
phar.build.inc 853 Bytes
一键复制 编辑 原始数据 按行查看 历史
15310819874@189.cn 提交于 2018-08-21 14:55 . 初始化项目
<?php
/**
* Created by PhpStorm.
* - the is a config file for compile phar package.
* User: Inhere
* Date: 2018/1/26 0026
* Time: 22:11
* @var \Swoft\Devtool\PharCompiler $compiler
*/
// config
$compiler
->stripComments(true)
->setShebang(true)
->addSuffix('.json')// for add composer.json
->addExclude([
'test',
'tests',
'runtime',
'eaglewu',
])
->addFile([
'LICENSE',
'README.md',
])
->setCliIndex('bin/swoft')
// ->setWebIndex('web/index.php')
// ->setVersionFile('config/config.php')
;
// Command Controller 命令类不去除注释,注释上是命令帮助信息
$compiler->setStripFilter(function ($file) {
/** @var \SplFileInfo $file */
$path = $file->getPath();
if (strpos($path, 'swoft')) {
return false;
}
return false === strpos($file->getFilename(), 'Command.php');
});
1
https://gitee.com/chen_code/swoft.git
git@gitee.com:chen_code/swoft.git
chen_code
swoft
swoft
master

搜索帮助