Step 1: Sử dụng Composer trong Drupal 8 rất nhiều

Step 1: Sử dụng Composer trong Drupal 8 rất nhiều

Ký tự lạ “&#65279” xuất hiện trong html của Website bạn

Average: 5 (2 votes)

Bài 32: Cho số nguyên dương n. Kiểm tra xem n có phải là số chính phương hay không

Average: 5 (3 votes)

Step 1: Sử dụng Composer trong Drupal 8 rất nhiều

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.

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

>> Lịch sử module Drupal Statistics, thống kê truy cập

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.

Fivestar: 
No votes yet

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

 
Phần 2: Data Migration từ HTML Pages vào Drupal 7
Phần 2: Data Migration từ HTML Pages vào Drupal 7

This gives you access to the full Drupal 7 API, and in the case of data migration, easily allows you to programmatically create nodes.

NASA đạt mốc 20.000 lượt theo đuôi trên Google+ chỉ trong vòng 4 ngày
NASA đạt mốc 20.000 lượt theo đuôi trên Google+ chỉ trong vòng 4 ngày

NASA đã vừa chia sẻ thông tin này trên trang Google+ của họ.

Samsung Galaxy get exclusive apps for the Olympics
Samsung Galaxy get exclusive apps for the Olympics

Samsung has teamed-up with Visit Britain to launch “The Best of Britain” app that will be available exclusively on Samsung Galaxy devices.