LPLabs/wordpress-muplugin-installer

View on GitHub
composer.json

Summary

Maintainability
Test Coverage
{
  "name": "lplabs/wordpress-muplugin-installer",
  "description": "Install WordPress must-use plugins with Composer",
  "type": "composer-plugin",
  "license": "MIT",
  "keywords": [
    "WordPress",
    "plugin",
    "mustuse",
    "must-use",
    "composer",
    "installer",
    "LonelyPlanet",
    "LPLabs"
  ],
  "authors": [
    {
      "name": "Eric King",
      "email": "eric.king@lonelyplanet.com",
      "homepage": "http://webdeveric.com",
      "role": "Developer"
    }
  ],
  "support": {
    "source": "https://github.com/LPLabs/wordpress-muplugin-installer",
    "issues": "https://github.com/LPLabs/wordpress-muplugin-installer/issues"
  },
  "autoload": {
    "psr-4": {
      "LPLabs\\Composer\\": "src/"
    }
  },
  "autoload-dev": {
    "psr-4": {
      "LPLabs\\Composer\\Tests\\": "tests/"
    }
  },
  "extra": {
    "class": "LPLabs\\Composer\\WordPressMustUsePlugins"
  },
  "require": {
    "php": "^5.5 || ^7.0",
    "composer-plugin-api": "^1.0",
    "composer/installers": "^1.0"
  },
  "require-dev": {
    "phpunit/phpunit": "^5.4",
    "phpdocumentor/phpdocumentor": "^2.9",
    "composer/composer": "^1.0",
    "squizlabs/php_codesniffer": "^2.6",
    "phpmd/phpmd": "^2.4",
    "codeclimate/php-test-reporter": "dev-master"
  },
  "scripts": {
    "cs": "phpcs --standard=PSR2 --encoding=utf-8 ./src/ ./tests/",
    "md": "phpmd 'src,tests' text phpmd.xml",
    "test": "phpunit --colors=always",
    "pre-commit": [
      "@cs",
      "@md",
      "@test"
    ],
    "setup-hooks": [
      "php -r \"copy('./hooks/pre-commit', '.git/hooks/pre-commit');\"",
      "php -r \"chmod('.git/hooks/pre-commit', 0700);\""
    ]
  }
}