Phần 2: Giới thiệu Composer in contrib

Phần 2: Giới thiệu Composer in contrib

Now that we have an initiative to get get a composer.json file in each contrib module, we cal start getting them all on Packagist.

Back in April the Drupal community decided on a naming convention for projects on Drupal.org. Projects must use the package name drupal/PROJECT where PROJECT is the part from the URL.

>> Phần 1: Giới thiệu Composer in contrib

Using drupal as the vendor name in the package name allows us to lock down Packagist to a select list of maintainers. Currently this is the people who submitted a package to Packagist under the drupal vendor name before May 7th when the restriction was added.

The Packagist API currently allows us to update existing packages, so we could quite easily add a hook_node_update and hook_node_insert to drupal.org that will do this when project releases are updated or added. The API doesn’t offer a create endpoint, so we can’t automatically create new packages, an issue on Github has been opened for this, and I’vestarted work on a pull request.

Once we have the Packagist pull request done, and the hooks added to drupal.org we can use the API key from Packagist for one of the maintainers (maybe Dries?) to push any new module or existing module updates across. Packagist will read directly from the drupal.org git repo and we’ll finally have one canonical place for all Drupal modules and PHP dependencies.

Drupal.org issue: https://www.drupal.org/node/2547617

Bạn thấy bài viết này như thế nào?: 
Average: 5 (1 vote)
Ảnh của Tommy Tran

Tommy owner Express Magazine

Drupal Developer having 9+ year experience, implementation and having strong knowledge of technical specifications, workflow development. Ability to perform effectively and efficiently in team and individually. Always enthusiastic and interseted to study new technologies

  • Skype ID: tthanhthuy

Tìm kiếm bất động sản

 

Advertisement

 

jobsora

Dich vu khu trung tphcm

Dich vu diet chuot tphcm

Dich vu diet con trung

Quảng Cáo Bài Viết

 
Hướng dẫn cách tạo web mail theo tên miền - Google

Hướng dẫn cách tạo web mail theo tên miền - Google

Sau khi thiết kế web cho doanh nghiệp, bạn cần quan tâm đến việc tạo thương hiệu cho doanh nghiệp mình.

HTC Wildfire S Now Available Via T-Mobile

HTC Wildfire S Now Available Via T-Mobile

HTC Wildfire S was first unveiled during Mobile World Congress 2011 back in February. And now, the device is available via T-Mobile.

Free Download file PSD mừng xuân năm mới Canh Tý thiệp tết 2020

Free Download file PSD mừng xuân năm mới Canh Tý thiệp tết 2020

Chào đón xuân năm mới Canh Tý 2020 bằng bộ PSD thiệp tết 2020 đẹp ấn tượng, file PSD thiệp chúc tết mừng xuân 2020, psd tết 2020 free download, link tải nhanh.

Công ty diệt chuột T&C

 

Diet con trung