joanrufe / drupal_ui_component

Drupal module with examples of React aplications that are provided as drupal libraries

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Drupal UI Components Provider

This is a drupal module that contain a skeleton to build modern javascript components and provide them through Drupal libraries API.

Instalation

Clone this repo into your modules drupal directory and execute npm install inside module directory.

Enable module and go to admin/structure/layout to place the block in a region.

Usage

Compile a build typing npm run build and clear cache to get a new build working in drupal.

To start development server just type npm start.

This project is using poi to facilitate webpack transpilation.

Files and directories

  • js-src Put here all your component javascript
  • dist Contain build ready for production
  • poi.config.js Contain poi configuration (see docs)
  • drupal_ui_component.libraries.yml Here you can define libraries

Drupal is connected to the component using whaterwheel.js. In api.js) file you can change credentials

About

Drupal module with examples of React aplications that are provided as drupal libraries


Languages

Language:JavaScript 58.5%Language:PHP 27.0%Language:CSS 11.8%Language:HTML 2.8%