gggeek/ezextensionbuilder
Composer 安装命令:
composer require gggeek/ezextensionbuilder
包简介
Provides tools to build (package) extensions for eZ Publish (4.x or Legacy Stack extensions only)
README 文档
README
What is the eZ Extension Builder?
A set of php files and tools to "build" eZ Publish extensions and deliverables (eZP 4.x or Legacy Stack extensions only). It is based on the Pake tool.
The build process consists currently of the following steps:
- getting a copy of the latest versions of the source code from the svn/git repository
- executing a series of conformity checks (eg. licensing info files must be in place)
- replacing some token strings inside some specific files (eg. version nr. and licensing info)
- generating end-user documentation from documentation sources (eg.html from rst files)
- creating tarballs of the extension
The steps are implemented via "pake tasks". Many other tasks are available as well - making this a swiss-army-knife tool of Quality Assurance as well as build.
License
This software is licensed under the GNU General Public License v2.0 . The complete license agreement is included in the LICENSE file. For more information or questions please contact info@ez.no
Requirements
- the php cli
- command line tools: svn and/or git, doxygen, tar, zip
- Pake version 1.7.4 or later. You can get it either from https://github.com/indeyets/pake or as part of the extension itself, using composer installation
- other php tools and libraries: all dependencies are managed automatically through composer
Installing and running
Read the INSTALL file to get started and for usage instructions
Directory structure
Let's call ROOT_DIR the directory where you will be running the build script. This directory will usually be the top-level directory of your extension, but it can in fact be anywhere else.::
ROOT_DIR/
|___pake the directory where the configuration file used for the build is expected to be
| |
| `___options-myext.yaml the configuration file
|
|___build/myext a copy of the extension myext will be downloaded here during the build
| NB: if you plan to produce an ezpackage out of the extension,
| this directory will change to build/ezextension/<myextension>
|
|___dist/ tarballs produced by the build will be made available here
|
`___vendor/gggeek/ezextensionbuilder
|
|___classes/ php classes with the bulk of the business logic for this tool
|___doc/ more documentation, such as changelogs, todos and known bugs
|___INSTALL installation instructions
|___LICENSE license file
|___README this file
|___composer.json configuration file for composer
|___doxyfile_master configuration file used when the generate-documentation task is set to create api docs via doxygen
|___ezextbuilder a shell-script wrapping execution of pakefile.php
|___options-ezextensionbuilder.yaml configuration file used to build this extension itself
|___options-sample.yaml a sample configuration file
|___package_master.xml template file used by the generate-sample-package-file task
|___pakefile.php the main build script
`___pakefile_bootstrap.php a php file used by the build script
As you can see, we try to pollute as little as possible the ROOT_DIR: everything is neatly stowed away in the vendor, pake, build and dist subdirectories.
FAQ
-
Can a standalone copy of pake be used with the pakefile instead of the bundled one? Yes: just use a different command line:
pake -f ./vendor/gggeek/ezextensionbuilder/pakefile.php build myext -
Can multiple extensions be built in the same ROOT_DIR? Yes. Just create an option file for each
-
Can the script use my ancient configuration files used with the previous ant-based version? Yes. Use the convert-configuration task for converting them to the new format
-
Can I download a complete zip of the tool instead of installing via composer? Maybe. But you will have to test by yourself if all include_path and autoloading stuff works
-
Interaction with git/svn: which files to commit in my repo, which ones not? If you plan to build in the root dir of your extension, you can very easily add a single file to your versioned source code: ./pake/options-myextension.yaml You should configure git / svn to ignore the complete ./vendor, ./build/ and ./dist/ directories
-
Help. After building the extension my eZ Publish is not working anymore! This is a very rare situation. It might happen if . you build the extension within a live eZ Publish installation, . you do not clean up the build directory after the build, and . you regenerate the eZ Publish autoload configuration (eg. by activating or deactivanting an extension) What is happening is that the autoload configuration is pointing to php classes in files inside the build directory instead of the files in the extension itself. The fix: just clean up the build dir and regenerate the autoload configuration
gggeek/ezextensionbuilder 适用场景与选型建议
gggeek/ezextensionbuilder 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 16 次下载、GitHub Stars 达 2, 最近一次更新时间为 2013 年 10 月 25 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 gggeek/ezextensionbuilder 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 gggeek/ezextensionbuilder 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 16
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 1
- 依赖项目数: 3
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0-or-later
- 更新时间: 2013-10-25