quafzi / magento-core-installer

允许通过 Composer 安装后运行 Magento 核心组件

安装: 14

依赖项: 0

建议者: 1

安全: 0

星标: 2

关注者: 3

分支: 5

开放问题: 2

类型:composer-plugin

dev-master 2014-01-17 11:28 UTC

This package is not auto-updated.

Last update: 2024-09-23 13:47:18 UTC


README

想要启动一个新的 Magento 项目吗?考虑从您的项目仓库中移除所有的 Magento 核心组件如何?

使用方法

首先,您应该使用 (magento-composer-installer)[https://github.com/magento-hackathon/magento-composer-installer] 来解耦您的扩展。

现在,只需使用这个 Magento Core Installer 将 Magento 本身添加为新的依赖项。因此,您需要为您的 Magento 版本生成一个 modman 文件(或其他类型的映射),并提供一个依赖于 Magento Core Installer 的 composer.json 文件。

示例

{
  "name": "magento/core",
  "type": "magento-core",
  "description": "Magento Core",
  "require": {
    "quafzi/magento-core-installer": "dev-master"
  }
}

如何为整个 Magento 版本生成一个 modman 文件?

在您的 Magento 根目录中运行 mage_modman_generator.sh(这是此存储库的一部分)。