composer.json - Add all bower assets via composer-downloads-plugin
authorTim Otten <totten@civicrm.org>
Thu, 15 Aug 2019 09:24:40 +0000 (02:24 -0700)
committerTim Otten <totten@civicrm.org>
Thu, 22 Aug 2019 11:15:29 +0000 (04:15 -0700)
commit598f4e8095d60f04e94c31836260718e4a98153a
tree339ed057f9c10cfbf5664e0d77dbc2d4d0295c5d
parent7445c25975066a7a0dd8eeb847638825ae9911f8
composer.json - Add all bower assets via composer-downloads-plugin

Before
------

* JS and CSS libraries and downloaded via `bower`.
* `bower` is deprecated.
* `bower` is slow.
* `bower` requires installing NodeJS
* `bower` requries installing Bower

After
-----

* `composer install` downloads the `bower_components` folder
* `composer` has a better cache
* `composer` is fast
* You can setup a dev build with fewer dependencies.

Comments
--------

There are many, many composer plugins which can be referenced when managing
assets. This particular one has an important distinction:

* It does not require root-level package configuration.
* It produces a file-structure that closely matches the current one.
* It works just as well as whether 'civicrm-core' is used as a root-package
  or as an dependency.
composer.json