Commit 44e076fa authored by Pierre Dureau's avatar Pierre Dureau
Browse files

Issue #3319153: Use CDN instead of asset composer (keep previous method in the doc)

parent d3b4ad11
Loading
Loading
Loading
Loading

Makefile

deleted100755 → 0
+0 −9
Original line number Diff line number Diff line
.PHONY: check

check:
	- composer validate --no-check-all --strict
	- security-checker security:check composer.lock
	- prettier --write *.yml
	- prettier --write templates/patterns/*/*.yml
	- prettier --write css/*.css
	- twig-lint lint templates/
+11 −6
Original line number Diff line number Diff line
@@ -57,11 +57,17 @@ You can browse the example pages directly inside Drupal: /examples

# Installation

## Manually
```
$ composer require 'drupal/ui_suite_bootstrap:4.x'
```


You need to place the Bootstrap library in the `libraries` folder.
## Manual installation

By default, the theme use https://www.bootstrapcdn.com/

If you prefer a local instalaltion, you need to override the libraries and place the Bootstrap library in the `libraries` folder:

## With Composer

```json
{
@@ -89,7 +95,7 @@ You need to place the Bootstrap library in the `libraries` folder.
  },
  "extra": {
    "installer-paths": {
      "app/libraries/{$name}": [
      "web/libraries/{$name}": [
        "type:drupal-library"
      ]
    }
@@ -97,9 +103,8 @@ You need to place the Bootstrap library in the `libraries` folder.
}
```

### Asset Packagist

If you are using the website [Asset Packagist](https://asset-packagist.org), the
If you are using [Asset Packagist](https://asset-packagist.org), the
composer.json can be like:

```json
+0 −1
Original line number Diff line number Diff line
@@ -9,6 +9,5 @@ dependencies:
  - ui_patterns:ui_patterns_library
  - ui_patterns_settings:ui_patterns_settings
  - ui_styles:ui_styles

libraries:
  - ui_suite_bootstrap/bootstrap
+6 −2
Original line number Diff line number Diff line
@@ -4,10 +4,14 @@ bootstrap:
    name: MIT
    gpl-compatible: false
  js:
    /libraries/bootstrap/dist/js/bootstrap.min.js: { minified: true }
    https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/js/bootstrap.min.js:
      minified: true
      type: external
  css:
    theme:
      /libraries/bootstrap/dist/css/bootstrap.min.css: { minified: true }
      https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/css/bootstrap.min.css:
        minified: true
        type: external
  dependencies:
    - core/jquery