json 作曲家-示例-hacked.json

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了json 作曲家-示例-hacked.json相关的知识,希望对你有一定的参考价值。

{
  "name": "mynamespace/myproject",
  "description": "Example composer file with provides",
  "repositories": [
    {
      "type": "composer",
      "url": "http://drupal-packagist.webflo.io/"
    },
    {
      "type": "package",
      "package": {
        "name": "mynamespace/entityreference",
        "version": "7.1.1",
        "type": "drupal-module",
        "dist": {
          "url": "http://ftp.drupal.org/files/projects/entityreference-7.x-1.1.tar.gz",
          "type": "tar"
        },
        "require": {
          "drupal/drupal": "7.34",
          "drupal/ctools": "7.*"
        }
      }
    },
    {
      "type": "package",
      "package": {
        "name": "mynamespace/rules",
        "version": "7.2.7",
        "type": "drupal-module",
        "dist": {
          "url": "http://ftp.drupal.org/files/projects/rules-7.x-2.7.tar.gz",
          "type": "tar"
        },
        "require": {
          "drupal/drupal": "7.34"
        }
      }
    }
  ],
  "require": {
    "mynamespace/entityreference": "7.1.1",
    "mynamespace/rules": "7.2.7"
  },
  "provide": {
    "drupal/entity": "7.*"
  },
  "extra": {
    "custom-installer": {
      "drupal-module": "back-dr/sites/all/modules/contrib/{$name}/",
      "drupal-theme": "back-dr/sites/all/themes/contrib/{$name}/",
      "drupal-library": "back-dr/sites/all/libraries/{$name}/",
      "drupal-drush": "back-dr/sites/all/drush/{$name}/",
      "drupal-profile": "back-dr/profiles/{$name}/",
      "drupal-core": "back-dr/"
    },
    "preserve-paths": [
      "back-dr/sites/all/modules/contrib",
      "back-dr/sites/all/modules/custom",
      "back-dr/sites/all/modules/features",
      "back-dr/sites/all/themes/contrib",
      "back-dr/sites/all/themes/custom",
      "back-dr/sites/all/libraries",
      "back-dr/sites/all/drush",
      "back-dr/sites/default/settings.php",
      "back-dr/sites/default/files"
    ]
  }
}

以上是关于json 作曲家-示例-hacked.json的主要内容,如果未能解决你的问题,请参考以下文章

在 composer.json 中运行命令行命令

如何在 Windows 上使用作曲家?

json 作曲家example.json

json 作曲家example.json

作曲家 - 指定 `composer.json` 路径

作曲家找不到 composer.json