You are here

README.txt in Charts 5.0.x

Installation using Composer (recommended)
========================================

If you use Composer to manage dependencies, edit "/composer.json" as follows.

  1. Run "composer require --prefer-dist composer/installers" to ensure that you
     have the "composer/installers" package installed. This package facilitates
     the installation of packages into directories other than "/vendor" (e.g.
     "/libraries") using Composer.

  2. Add the following to the "installer-paths" section of "composer.json":

     "libraries/{$name}": ["type:drupal-library"],

  3. Add the following to the "repositories" section of "composer.json":

        {
            "type": "package",
            "package": {
                "name": "billboardjs/billboard",
                "version": "1.6.2",
                "type": "drupal-library",
                "extra": {
                    "installer-name": "billboard"
                },
                "dist": {
                    "url": "https://github.com/naver/billboard.js/archive/1.6.2.zip",
                    "type": "zip"
                }
            }
        },
        {
            "type": "package",
            "package": {
                "name": "d3v4/d3",
                "version": "4.9.1",
                "type": "drupal-library",
                "extra": {
                    "installer-name": "d3v4"
                },
                "dist": {
                    "url": "https://cdnjs.cloudflare.com/ajax/libs/d3/4.9.1/d3.js",
                    "type": "file"
                },
                "require": {
                    "composer/installers": "~1.0"
                }
            }
        }

  4. Run "composer require --prefer-dist billboardjs/billboard:1.6.2
     d3v4/d3:4.9.1"
- you should find that new directories have been created under "/libraries"

File

modules/charts_billboard/README.txt
View source
  1. Installation using Composer (recommended)
  2. ========================================
  3. If you use Composer to manage dependencies, edit "/composer.json" as follows.
  4. 1. Run "composer require --prefer-dist composer/installers" to ensure that you
  5. have the "composer/installers" package installed. This package facilitates
  6. the installation of packages into directories other than "/vendor" (e.g.
  7. "/libraries") using Composer.
  8. 2. Add the following to the "installer-paths" section of "composer.json":
  9. "libraries/{$name}": ["type:drupal-library"],
  10. 3. Add the following to the "repositories" section of "composer.json":
  11. {
  12. "type": "package",
  13. "package": {
  14. "name": "billboardjs/billboard",
  15. "version": "1.6.2",
  16. "type": "drupal-library",
  17. "extra": {
  18. "installer-name": "billboard"
  19. },
  20. "dist": {
  21. "url": "https://github.com/naver/billboard.js/archive/1.6.2.zip",
  22. "type": "zip"
  23. }
  24. }
  25. },
  26. {
  27. "type": "package",
  28. "package": {
  29. "name": "d3v4/d3",
  30. "version": "4.9.1",
  31. "type": "drupal-library",
  32. "extra": {
  33. "installer-name": "d3v4"
  34. },
  35. "dist": {
  36. "url": "https://cdnjs.cloudflare.com/ajax/libs/d3/4.9.1/d3.js",
  37. "type": "file"
  38. },
  39. "require": {
  40. "composer/installers": "~1.0"
  41. }
  42. }
  43. }
  44. 4. Run "composer require --prefer-dist billboardjs/billboard:1.6.2
  45. d3v4/d3:4.9.1"
  46. - you should find that new directories have been created under "/libraries"