Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add an install script hook to composer extras #109

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ahebrank
Copy link

@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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant