Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Drupal.org is changing: content restructure, is...

Avatar for tvn tvn
May 11, 2016

Drupal.org is changing: content restructure, issue credits, Composer, and more...

Drupal.org is changing. Find out what's new and what is coming next.

We'll talk about content restructure, issue credits and marketplace, and, how Drupal.org now supports Composer to make building your Drupal sites much easier.

Presented at DrupalCon New Orleans 2016.

Avatar for tvn

tvn

May 11, 2016
Tweet

More Decks by tvn

Other Decks in Technology

Transcript

  1. Drupal.org sections Why Drupal Learn Develop with Drupal Documentation Infrastructure

    Drupal Association Community News & Events Contribute Website Security Support Governance https://www.drupal.org/drupalorg/blog/introducing-sections
  2. /8

  3. A guide to issue credits and the Drupal. org Marketplace

    issue credits, how we capture, calculate and display them. How they affect the order of companies in the Marketplace and the new All organizations listing.
  4. Some history I wish I had saved the napkin... •

    A method for giving credit to organizations that contribute code to open source • [policy, no patch] Determine format for commit credit for individuals/organizations/customers
  5. 1. Create an organization profile 2. Add that organization to

    your profile (optional) 3. Attribute the organization as an employer or customer when participating in the queues. Credits are given by the maintainer and counted when the issue closes. Last 90 days of issue credits are displayed on profiles.
  6. Help us out by giving feedback • Improve contribution statistics

    on user and organization profiles • Update organization content type to better reflect types of organizations in Drupal ecosystem
  7. What is Composer? How does it help drupal? Composer is

    a tool for dependency management in PHP. It allows you to declare the libraries your project depends on and it will manage (install/update) them for you Allows drupal core and contrib to use non-drupal php libraries that are proudly invented elsewhere Allows for site construction using drupal modules and themes that are proudly invented here
  8. Composer CLI Composer Repository (packagist.org) Compose Façade Composer require guzzlehttp/guzzle

    Github/Bitbucket Drupal.org Project Database/Git Repos Composer require drupal/token
  9. • Data model • Comprehensive support for all d7 and

    d8 modules • Semantic versioning • Usage data • Project Discovery • Distributed infrastructure Why build it ourselves?
  10. Current Format Translated Format {Platform.x}-{major}. {minor}-{stabilty#} {major}.{minor}.0-{stability}{#} 7.x-3.4-beta2 3.4.0-beta2 8.x-2.10-rc2

    2.10.0-rc2 7.x-1.0-unstable3 unstable releases will not be translated, and not available to composer 8.x-1.0-alpha5 1.0.0-alpha5 7.x-0.1-rc2 0.1.0-rc2 7.x-1.x-dev 1.0.x-dev Speaking of versions
  11. Full documentation here: https://www.drupal.org/node/2718229 Add packages.drupal.org composer repository to your

    composer.json file https://packages.drupal.org/8 https://packages.drupal.org/7 { "repositories": [ { "type": "composer", "url": "https://packages.drupal.org/8" } ] } How to use our endpoint
  12. To add a module to your project, you can then

    $ composer require drupal/<modulename> <version> Additionally we’ve implemented a couple of features supported by composer: composer search token Searches drupal.org and returns package data for token composer browse drupal/token Opens up the project page in your browser. How to use our endpoint
  13. Adding requirements to other modules { "repositories": [ { "type":

    "composer", "url": "https://packages.drupal.org/8" } ], "require": { “drupal/token": "~1.0" } }
  14. Migrating from packagist.drupal-composer.org • Drop major version (8 or 7)

    and add a 0. • Change the url for the composer repository to https://packages.drupal.org/8 (or 7)
  15. What's missing, whats next? • Subtree split of drupal core

    • Subtree split of drupal components • Distribution support • Patch support (https://github.com/cweagans/composer-patches) • DrupalCI usage • Deprecated versions in composer.json • Dev version complications
  16. So How Was It? - Tell Us What You Think

    Evaluate this session: bit.ly/dochange Thanks!