Skip to content
This repository was archived by the owner on May 13, 2026. It is now read-only.

add an install script hook to composer extras#109

Open
ahebrank wants to merge 1 commit into
pattern-lab:masterfrom
ahebrank:extra-installers
Open

add an install script hook to composer extras#109
ahebrank wants to merge 1 commit into
pattern-lab:masterfrom
ahebrank:extra-installers

Conversation

@ahebrank
Copy link
Copy Markdown

@ahebrank ahebrank commented Dec 22, 2016

A feature request: allow misc scripts to run after starterkit installation (e.g., to move things around).

It seems a little silly to replicate composer behavior like this, but it's just a quick hack into the composer['extras']['patternlab'] used by the starterkit fetcher.

Requires #108 to work, and you can test something like:

{
  "name":             "test/test-starterkit",
  "description":      "test PL starterkit.",
  "keywords":         ["twig", "pattern lab", "starterkit"],
  "type":             "patternlab-starterkit",
  "require": {
    "pattern-lab/core": "^2.0.0",
    "pattern-lab/patternengine-twig": "^2.0.0"
  },
  "extra": {
    "patternlab": {
      "dist": {
        "sourceDir": [
          { "*": "*" }
        ]
      },
      "installScripts": [
        "install/setup.php"
      ]
    }
  }
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant