gocodebox/lifterlms-rest

View on GitHub
composer.json

Summary

Maintainability
Test Coverage
{
  "name": "lifterlms/lifterlms-rest",
  "description": "REST API feature plugin for the LifterLMS Core.",
  "type": "wordpress-plugin",
  "license": "GPL-3.0",
  "authors": [
    {
      "name": "Team LifterLMS",
      "email": "team@lifterlms.com"
    }
  ],
  "minimum-stability": "dev",
  "require": {
    "php": ">=7.3"
  },
  "require-dev": {
    "lifterlms/lifterlms-tests": "^4.1.1",
    "lifterlms/lifterlms-cs": "dev-trunk"
  },
  "archive": {
    "exclude": [
      ".*",
      "*.lock",
      "*.xml",
      "*.xml.dist",

      "CHANGELOG.md",
      "package.json",
      "package-lock.json",
      "README.md",

      "dist",
      "docs",
      "node_modules",
      "spec",
      "tests",
      "tmp",
      "web",
      "web_deploy",
      "wordpress",

      "vendor"
    ]
  },
  "scripts": {
    "check-cs": "\"vendor/bin/phpcs\" --colors",
    "check-cs-errors": "\"vendor/bin/phpcs\" --colors --error-severity=1 --warning-severity=6",
    "config-cs": [
      "\"vendor/bin/phpcs\" --config-set installed_paths ../../../vendor/wp-coding-standards/wpcs,../../../vendor/lifterlms/lifterlms-cs,../../../vendor/phpcompatibility/php-compatibility,../../../vendor/phpcompatibility/phpcompatibility-paragonie,../../../vendor/phpcompatibility/phpcompatibility-wp",
      "\"vendor/bin/phpcs\" --config-set default_standard 'LifterLMS Core'"
    ],
    "fix-cs": "\"vendor/bin/phpcbf\"",
    "post-install-cmd": "@config-cs",
    "post-update-cmd": "@config-cs",
    "post-update-install-cmd": [
      "@tests-install",
      "@config-cs"
    ],
    "tests-remove": "\"vendor/bin/llms-tests\" teardown ${TESTS_DB_NAME:-llms_rest_tests} ${TESTS_DB_USER:-root} \"${TESTS_DB_PASS-password}\" ${TESTS_DB_HOST:-127.0.0.1}",
    "tests-install": [
      "\"vendor/bin/llms-tests\" install ${TESTS_DB_NAME:-llms_rest_tests} ${TESTS_DB_USER:-root} \"${TESTS_DB_PASS-password}\" ${TESTS_DB_HOST:-127.0.0.1} ${WP_VERSION:-latest} false \"${WP_TESTS_VERSION}\"",
      "@tests-install-plugins"
    ],
    "tests-install-plugins": "\"vendor/bin/llms-tests\" plugin lifterlms",
    "tests-reinstall": [
      "@tests-remove",
      "@tests-install"
    ],
    "tests": "\"vendor/bin/phpunit\"",
    "tests-run": "\"vendor/bin/phpunit\""
  },
  "config": {
    "allow-plugins": {
      "dealerdirect/phpcodesniffer-composer-installer": true
    }
  }
}