Wouldn't it be nice to install Basic through Composer? Drupal modules/themes are not available on the original Packagist, but there is a Drupal specific project (https://packagist.drupal-composer.org/) that fills the gap. It's should be easy to add Basic to that.
This would then allow to use a composer command to create a copy from the Basic theme in the vendor directory and do all the renaming accordingly.

Steve is already working on a Drush command that does all the renaming and this will be great for the Drush use cases.
However, it would be awesome to set up and maintain a new Drupal 8 site completely through composer (https://github.com/drupal-composer/drupal-project) and having Basic in there would allow to do all that in a simple command.

I'm happy to look into that. Any thoughts? Objections? Concerns?

Comments

johannez created an issue. See original summary.

joelpittet’s picture

How?

johannez’s picture

For the original Packagist you create an account on their site and then put a composer.json into your project root. I assume it's the same as for the drupal-composer version.

I can investigate and figure out the how ;)

joelpittet’s picture

Submit here:
https://packagist.drupal-composer.org/packages/submit

Something like this added to our repo.
composer.json

{
  "name": "drupal/basic",
  "description": "HTML5, SASS, Responsive grid starter theme.",
  "type": "drupal-theme",
  "homepage": "http://drupal.org/project/basic",
  "authors": [
    {
      "name": "Johannes Schmidt",
      "email": "johannez@example.com",
      "homepage": "https://www.drupal.org/project/basic",
      "role": "Maintainer"
    }
  ],
  "support": {
    "issues": "https://www.drupal.org/project/issues/basic",
    "irc": "irc://irc.freenode.org/drupal-contribute",
    "source": "http://cgit.drupalcode.org/basic"
  },
  "license": "GPL-2.0+",
  "minimum-stability": "dev",
  "require": { }
}
johannez’s picture

Looks good.
I'll update the author information though.

Will look into that asap.

johannez’s picture

Hmm...looks like Basic is already available on that packigist repo:

https://packagist.drupal-composer.org/packages/drupal/basic

It wasn't me. So, if not somebody else stepped in, I assume that Packigist install just automatically scraps drupal.org. I still put a composer.json into place in case we move to the real packigist one day.

I'll see how to use composer now to install and rename the theme. I guess we can close this for now as Basic is up on Drupal's packagist.

joelpittet’s picture

I may have done that by accident;) I pressed a button somewhere to clone to github I think.

johannez’s picture

Status: Active » Closed (works as designed)

I don't think it was you either Joel. The Drupal composer packagist has nothing to do with github.

Anyways, the request here was to add it to Drupal packagist, which has happened. So, I'm closing this one.

joelpittet’s picture

Status: Closed (works as designed) » Fixed

Oh I thought I did this:
http://hubdrop.org/project/basic
But kinda looks like that didn't work.

I don't recall it showing in packagist before.

Status: Fixed » Closed (fixed)

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