crochetfeve0251/rocket-launcher-builder-installer

Initialisation library for Launchpad libraries

v0.0.6 2024-11-01 23:49 UTC

README

Install libraries from the Launchpad Framework.

Install

To install run the following command : composer require wp-launchpad/cli-installer

Then you need to add the provider LaunchpadCLIInstaller\ServiceProvider to the /bin/generator file:

#!/usr/bin/php
<?php

use LaunchpadCLI\AppBuilder;

require_once __DIR__ . '/../vendor/autoload.php';

AppBuilder::init(__DIR__ . '/../', [
        \LaunchpadTakeOff\ServiceProvider::class,
        \LaunchpadCLIInstaller\ServiceProvider::class,
]);

Create a library compatible

To make a library compatible you need to add the following content:

"extra": {
    "launchpad": {
      "provider" : "MyCLI\\MyProvider",
      "library_provider" : "MyLibrary\\MyProvider",
      "command": "my-command",
      "install": true,
      "clean": true,
      "libraries": {
        "owner/library": "^0.0.1"
      }
    }
  }