Skip to content
Snippets Groups Projects
Commit 1bf2e3de authored by Joao Ventura's avatar Joao Ventura
Browse files

Revert "Changed lbraries handling to npm-asset approach."

This reverts commit 7eaf4c2b.
parent cd978480
Branches
Tags 8.x-1.8
No related merge requests found
......@@ -52,23 +52,23 @@ INSTALLATION
Download https://github.com/xdan/datetimepicker/archive/2.5.20.zip,
and extract inside drupal root folder: libraries/datetimepicker
2. Using Drupal library definition.
[Ensure composer packages of type drupal-library are configured to install to the appropriate path.](https://www.drupal.org/docs/develop/using-composer/using-composer-to-install-drupal-and-manage-dependencies#installer-dirs)
```
"extra": {
"drupal-libraries": {
"jquery-datetimepicker": "https://github.com/xdan/datetimepicker/archive/2.5.20.zip"
},
}
```
3. Composer as npm asset.
`composer require "npm-asset/jquery-datetimepicker":"^2.5"`
[Ensure composer packages of type npm-asset are
configured to install to the appropriate path.](https://www.drupal.org/docs/develop/using-composer/using-composer-to-install-drupal-and-manage-dependencies#third-party-libraries)
4. Using packagist for JS libraries
2. Composer using zodiacmedia/drupal-libraries-installer.
This PHP packages should be automatically installed with this module.
Libraries need to be defined as example below
`"extra": {
"drupal-libraries": {
"datetimepicker":
"https://github.com/xdan/datetimepicker/archive/2.5.20.zip"
},
}`
Ensure composer packages of type drupal-library are
configured to install to the appropriate path.
Read more at zodiacmedia/drupal-libraries-installer
3. Using packagist for JS libraries
https://asset-packagist.org/
CONFIGURATION
......
......@@ -4,11 +4,11 @@ datetimepicker:
name: MIT
gpl-compatible: false
js:
/libraries/jquery-datetimepicker/build/jquery.datetimepicker.full.js: {}
/libraries/datetimepicker/build/jquery.datetimepicker.full.js: {}
js/drupal.single_datetime.js: {}
css:
component:
/libraries/jquery-datetimepicker/build/jquery.datetimepicker.min.css: {}
/libraries/datetimepicker/build/jquery.datetimepicker.min.css: {}
dependencies:
- core/jquery
- core/drupal
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment