Skip to content
Snippets Groups Projects
Select Git revision
  • b30935d1860a9c834a564ecffde5d3a5fcb9c567
  • main default protected
  • v0.10
  • 0.10.6
  • 0.10.5
  • 0.10.4
  • 0.10.3
  • 0.10.2
  • 0.10.1
  • 0.10.0
  • 0.9.1
  • 0.9.0
12 results

composer.json

Blame
    • Bartek Jaskulski's avatar
      b30935d1
      feat: reintroduce command to compile plugin info · b30935d1
      Bartek Jaskulski authored
      
      Actually, it's better to compile plugin info at build time, because
      later, when client updates the plugin it may be hard to determine
      whether cached file with plugin info should be
      invalidated. Hypothetically, if client has plugin in version 1.0.0, and
      updates to 1.0.1, there's nothing that could tell us, the plugin info
      file is old. The only option would be to read the file and parse headers
      every time, what would defy the cached file purpose. It's just easier
      this way, especially when considering container compilation, which also
      have to be version aware, to make sure only the recent version is used
      for compilation.
      
      Signed-off-by: default avatarBart Jaskulski <bjaskulski@protonmail.com>
      Verified
      b30935d1
      History
      feat: reintroduce command to compile plugin info
      Bartek Jaskulski authored
      
      Actually, it's better to compile plugin info at build time, because
      later, when client updates the plugin it may be hard to determine
      whether cached file with plugin info should be
      invalidated. Hypothetically, if client has plugin in version 1.0.0, and
      updates to 1.0.1, there's nothing that could tell us, the plugin info
      file is old. The only option would be to read the file and parse headers
      every time, what would defy the cached file purpose. It's just easier
      this way, especially when considering container compilation, which also
      have to be version aware, to make sure only the recent version is used
      for compilation.
      
      Signed-off-by: default avatarBart Jaskulski <bjaskulski@protonmail.com>
    This project manages its dependencies using Composer. Learn more
    composer.json 1.89 KiB
    {
      "name": "wpdesk/wp-init",
      "description": "Bootstrap for a WordPress plugin",
      "license": "MIT",
      "type": "library",
      "homepage": "https://gitlab.wpdesk.dev/wpdesk/wp-init",
      "keywords": [
        "wordpress",
        "plugin",
        "bootstrap"
      ],
      "bin": [
        "bin/wpinit"
      ],
      "authors": [
        {
          "name": "WPDesk",
          "homepage": "https://wpdesk.net"
        },
        {
          "name": "Bartek Jaskulski",
          "email": "bjaskulski@protonmail.com",
          "role": "Developer"
        }
      ],
      "autoload": {
        "psr-4": {
          "WPDesk\\Init\\": "src"
        }
      },
      "autoload-dev": {
        "psr-4": {
          "WPDesk\\Init\\Tests\\": "tests"
        },
        "classmap": [
          "vendor/wpdesk/wp-basic-requirements"
        ]
      },
      "require": {
        "php": ">=7.4 | ^8",
        "php-di/php-di": "^6 || ^7",
        "psr/container": "^1 || ^2"
      },
      "require-dev": {
        "brain/monkey": "^2.6",
        "phpunit/phpunit": "^8 || ^9",
        "symfony/filesystem": "^5.4 || ^6.2",
        "wpdesk/phpstan-rules": "^1.1",
        "wpdesk/wp-basic-requirements": "^3",
        "wpdesk/wp-wpdesk-license": "^4",
        "wpdesk/wp-builder": "^2.0",
    	"wpdesk/wp-code-sniffer": "^1.3"
      },
      "suggest": {
        "wpdesk/wp-basic-requirements": "Enables your plugin to check an environment requirement before instantiation, e.g. PHP version or active plugins",
        "wpdesk/wp-logs": "PSR-3 compatible logger with WooCommerce handler."
      },
      "conflict": {
        "wpdesk/wp-basic-requirements": "<3 >=4",
        "wpdesk/wp-wpdesk-license": "<4 >=5",
        "wpdesk/wp-logs": "<1.13 >=2"
      },
      "scripts": {
        "test": "vendor/bin/phpunit --bootstrap tests/bootstrap.php ./tests"
      },
      "config": {
        "allow-plugins": {
          "phpstan/extension-installer": true,
          "dealerdirect/phpcodesniffer-composer-installer": true
        }
      },
      "repositories": {
        "wpdesk": {
          "type": "composer",
          "url": "https://gitlab.wpdesk.dev/api/v4/group/wpdesk/-/packages/composer/"
        }
      }
    }