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

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

Drupal 8 has seen a lot of love for Composer. As various posts have mentioned, it’s possible to build a whole Drupal site with little more than a composer.json file. However contrib needs the same love too.

>> Sửa lỗi webcam bị ngược trên máy tính chạy hệ điều hành Windows

>> Các dịch vụ trên dark web - hack một trang web với giá 2.000 USD

>> Dịch vụ rút tiền mặt thẻ tín dụng rút tiền mặt trong 5 phút mất 1%

>> Cẩm Đan phản ứng gay gắt khi được mời đi ăn với giá 16.000 USD

In this post I want to talk about step one, and it requires little effort at all.

For module maintainers

Add a composer.json file to your Drupal 8 module. The example below gives everything you need. The name uses “drupal” as the vendor namespace, followed by the module name after the slash. The description provides more information on the module. The type tells composer it is specifically a Drupal module (there are also types for themes, profiles and more), this allows developers to put “drupal-module” packages into the modules directory rather than the vendor directory on composer install. Finally we add Drupal’s license of GPL 2.0+.

{ "name": "drupal/example", "description": "This is an example composer.json for example module.", "type": "drupal-module", "license": "GPL-2.0+" }

For everyone else

  • Tell everyone.
  • Tweet about the issue or this post.
  • See if modules with a Drupal 8 release have a composer.json, if not add an issue for it.

What does it mean

Once all modules have a composer.json we can add modules using composer more easily. We can also start step two, which is to get all Drupal 8 modules on Drupal.org listed on Packagist.

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

Bình luận (0)

 

Add Comment

Filtered HTML

  • Các địa chỉ web và email sẽ tự động được chuyển sang dạng liên kết.
  • Các thẻ HTML được chấp nhận: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Tự động ngắt dòng và đoạn văn.

Plain text

  • No HTML tags allowed.
  • Các địa chỉ web và email sẽ tự động được chuyển sang dạng liên kết.
  • Tự động ngắt dòng và đoạn văn.
CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.

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

 
Google search hoạt động như thế nào?

Google search hoạt động như thế nào?

Khi tìm kiếm một từ khoá trên Google search, ta thấy kết quả hiện ra mấy nghìn trang cung cấp thông tin, tuy nhiên chắc ít đặt câu hỏi là Google liệt kê nguồn thông tin đó như thế nào.

3 cách đơn giản để tăng cường SEO trên Youtube 2015

3 cách đơn giản để tăng cường SEO trên Youtube 2015

SEO (tối ưu hóa công cụ tìm kiếm) trên YouTube sẽ giúp mở rộng kênh tiếp cận khách hàng của các doanh nghiệp, giúp thương hiệu được biết đến nhiều hơn.

Broad Match Modifier: từ khóa mở rộng bổ sung

Tìm hiểu về Broad Match Modifier

Chúng tôi đã có một bài viết giới thiệu 4 dạng từ khóa trong quảng cáo google adwords: từ khóa mở rộng, từ khóa cụm từ, từ khóa chính xác và từ khóa phủ định. Hôm nay, chúng tôi tiếp tục giới thiệu thêm một dạng từ khóa mới: từ khóa mở rộng bổ sung – Broad Match Modifier, từ khóa này có biên độ nằm giữa từ khóa mở rộng và từ khóa cụm từ.

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

 

Diet con trung