定制 dreadlabs/typo3-build 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

dreadlabs/typo3-build

Composer 安装命令:

composer require dreadlabs/typo3-build

包简介

A project for building and deploying TYPO3.CMS project.

README 文档

README

Encapsulates build targets in order to build a TYPO3.CMS project.

Note: these steps are very custom but necessary in order to have a clean composer structure within a TYPO3.CMS project.

But this is another story... For now, this is just a container in order to clean up my projects a bit.

Installation

Composer

Edit your composer.json and add the following line to your require-dev section:

{
  "require-dev": {
    "dreadlabs/typo3-build": "dev-master"
  }
}

Buildfile

Now fire up your favourite text editor and add a build.xml file to your projects root directory and add the following content:

<?xml version="1.0" encoding="UTF-8"?>
<project name="example" default="run">

  <import file="./vendor/dreadlabs/typo3-build/build.xml" />

  <target name="run">
    <phingcall target="build.main:run" />
  </target>
</project>

Please note, the name attribute of the project root element MUST NOT be set to ''build'' as this namespace is allocated by this package already.

Properties

In your project directory, you have to create a build.[stage].properties file. The stage value can be later addressed by specifying the environment property while executing the build targets.

As a minimum, the following properties must be set:

distDir=${application.startdir}/www

Secret properties

To protect some sensitive data of the public eye a build properties file must be created in the project's root directory: ''build.[stage].secret.properties''. This is the template if you want to use the shipped build scripts:

ssh.host=
ssh.user=
ssh.port=
remote.path=

database.name=
database.host=
database.password=
database.port=
database.username=

basic_auth.user=
basic_auth.password=

Usage

Build

~ $ cd /vagrant
~ $ php vendor/bin/phing -Denvironment=[dev|prod]

QA

The QA toolchain contains the following tools:

  • PHP Mess Detector
  • PHP_Depend
  • PHPLOC
  • PHP Copy/Paste Detector
  • PHP_CodeSniffer
  • PHPUnit
~ $ cd /vagrant
~ $ php vendor/bin/phing qa:run

Hooks

Currently, the following hooks are implemented.

typo3.copy-extensions.project.preCopyDist

This hook is executed right before copying the project extensions form src/ to ${distDir}/typo3conf/ext/.

Use this, to run grunt or other things which should treat your project extension before distribution.

Usage example

In your project build.xml you have to define the hook-target mappings as properties and add your custom task:

<property name="typo3.copy-extensions.project.preCopyDist" value="runGrunt" />

<target name="runGrunt">
   <exec
         command="/usr/bin/env grunt build"
         passthru="true"
         checkreturn="true" />
</target>

License

GPL-2.0

dreadlabs/typo3-build 适用场景与选型建议

dreadlabs/typo3-build 是一款 基于 XSLT 开发的 Composer 扩展包,目前已累计 478 次下载、GitHub Stars 达 0, 最近一次更新时间为 2014 年 11 月 13 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「build」 「phing」 「typo3」 「build automation」 「TYPO3 CMS」 「project automation」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 dreadlabs/typo3-build 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 dreadlabs/typo3-build 我们能提供哪些服务?
定制开发 / 二次开发

基于 dreadlabs/typo3-build 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 478
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 17
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: XSLT

其他信息

  • 授权协议: GPL-2.0
  • 更新时间: 2014-11-13