https://project.pages.drupalcode.org/distributions_recipes/getting_start...

We should also add the composer commands to each of the steps where you need to alter an existing composer.json project file in addition to the snippets.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

thejimbirch created an issue. See original summary.

kerrymick’s picture

Status: Active » Reviewed & tested by the community

Looks good. Thanks @thejimbirch

thejimbirch’s picture

For the .gitignore section, I think we can add something like this:

cd /path/to/repo
find . -name "/recipes*" >> .gitignore

------------

To add a repository, it's

composer config repositories.<name> <type> <url>

Example:

composer config repositories.drupal composer https://packages.drupal.org/8

This will automatically inject into composer.json under repositories like this:

"repositories": {
    "drupal": {
        "type": "composer",
        "url": "https://packages.drupal.org/8"
    }
}

------------

To update the allow-plugins section for the unpack command:

The general syntax is:

composer config allow-plugins.<plugin-name> true

For our specific case:

composer config allow-plugins.ewcomposer/unpack true

thejimbirch’s picture

Status: Reviewed & tested by the community » Needs work

phenaproxima made their first commit to this issue’s fork.

phenaproxima’s picture

Assigned: Unassigned » thejimbirch
Status: Needs work » Needs review

Updated the docs. I don't think we should call the recipe unpack plugin optional, just give people simple and consistent commands they can use to get going. The less cognitive load, the better.

We desperately need this to be up to date, so I'm hoping we can merge this sooner rather than later.

thejimbirch’s picture

Status: Needs review » Fixed

Merged, thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.