包装依赖扩展的正确方法

时间:2019-01-10 15:08:01

标签: magento github magento2

我正在通过magento2的tinypng代码,但找不到任何链接到该API的文件。

无论如何,一旦安装,我可以在供应商文件夹中看到一个tinify文件夹已安装,而在我从magento市场下载的代码中却找不到该文件夹​​。

我知道在composer中我们可以定义外部存储库,并且在运行composer后可以下载外部存储库,但是在我从magento 2市场下载的tinypng代码中,没有这样的链接https://marketplace.magento.com/tinify-magento2.html 这里有作曲家

我们检查了所有文件https://marketplace.magento.com/tinify-magento2.html,但找不到单个文件链接到任何git存储库或缩小依赖关系。我们认为在单击magento仪表板中的install时正在下载它。所以我的问题是,当我们向magento提交扩展名时,我们可以选择链接外部依赖项??

如果是,那么手动上传如何。如何在手动安装中将依赖项链接在一起?任何帮助都会很棒

{
  "name": "tinify/magento2",
  "type": "magento2-module",
  "version": "1.1.1",
  "description": "Make your web shop faster by compressing your JPEG and PNG images. This plugin automatically optimizes your images by integrating with the popular image compression services TinyJPG and TinyPNG.",
  "keywords": [
    "tinify",
    "tinypng",
    "tinyjpg",
    "compress",
    "images",
    "api",
    "magento",
    "magento2",
    "plugin",
    "module"
  ],

  "homepage": "https://tinify.com/developers",
  "license": "MIT",

  "support": {
    "email": "support@tinify.com"
  },

  "authors": [{
    "name": "Rolf Timmermans",
    "email": "rolftimmermans@voormedia.com"
  }],

  "minimum-stability": "alpha",
  "require": {
    "php": ">=5.5.0",
    "ext-curl": "*",
    "ext-json": "*",
    "tinify/tinify": ">=1.5"
  },

  "require-dev": {
    "phpunit/phpunit": "~4.0",
    "mikey179/vfsstream": "~1",
    "squizlabs/php_codesniffer": "~2.0",
    "codeception/aspect-mock": "*"
  },

  "autoload": {
    "files": ["registration.php"],
    "psr-4": {"Tinify\\Magento\\": "src"}
  }
}

0 个答案:

没有答案