Changes between Initial Version and Version 1 of members/GRIP-UQAM/Composer


Ignore:
Timestamp:
Aug 22, 2016, 5:57:08 PM (9 years ago)
Author:
Grip Uqam
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • members/GRIP-UQAM/Composer

    v1 v1  
     1=== Some Composer commands ===
     2*
     3{{{#!sh
     4$ ./composer.phar self-update --stable
     5}}}
     6*
     7{{{#!sh
     8$ ./composer.phar update
     9}}}
     10=== Composer extensions ===
     11==== Includes ====
     12* keywords: includes from composer.json
     13* https://github.com/composer/composer/issues/183#issuecomment-151317582
     14* https://github.com/wikimedia/composer-merge-plugin
     15* https://getcomposer.org/doc/06-config.md#use-include-path
     16* https://getcomposer.org/doc/05-repositories.md#includes
     17=== Example composer.json for Drupal 7 ===
     18{{{#!sh
     19composer require drush/drush
     20composer require seld/jsonlint
     21}}}
     22{{{#!json
     23{
     24    "require": {
     25        "drush/drush": "^8.0",
     26        "seld/jsonlint": "^1.4",
     27        "ezyang/htmlpurifier": "^4.7",
     28        "kraksoft/colorbox": "^1.5",
     29        "pelago/emogrifier": "^1.0",
     30        "tinymce/tinymce": "^3.5", # remove this line, this version is not available through composer!
     31        "ckeditor/ckeditor": "^full/4.5.1"
     32    }
     33}
     34}}}
     35* http://docs.drush.org/en/master/install/
     36* https://packagist.org/packages/ezyang/htmlpurifier
     37* http://htmlpurifier.org/download
     38* https://packagist.org/packages/pelago/emogrifier
     39* https://www.drupal.org/project/emogrifier
     40* php composer target directory
     41== Local Repositories ==
     42{{{#!json
     43{
     44    "require": {
     45        "drush/drush": "8.0.5"
     46    },
     47    "repositories": [
     48        {
     49            "type": "git",
     50            "url": "../share/url/github.com/drush-ops/drush/8.0.5"
     51        },
     52        {
     53            "type": "path",
     54            "url": "../share/url/github.com/*/*/*"
     55        }
     56    ]
     57}
     58}}}
     59The next one does not work!
     60{{{#!json
     61{
     62    "require": {
     63        "drush/drush": "8.0.5"
     64    },
     65    "repositories": [
     66        {
     67            "type": "composer",
     68            "url": "file://tmp/gripuqam/share/url"
     69        }
     70    ]
     71}
     72}}}
     73https://getcomposer.org/doc/05-repositories.md#package-2
     74{{{#!json
     75{
     76    "packages": {
     77        "drupal/core": {
     78            "8.0.5": {
     79{
     80    "name": "drupal/core",
     81    "version": "8.0.5",
     82    "dist": {
     83        "url": "github.com/drupal-composer/drupal-core/8.0.5",
     84        "type": "path"
     85    }
     86}
     87            }
     88        }
     89        "drush/drush": {
     90            "8.0.5": {
     91{
     92    "name": "drush/drush",
     93    "version": "8.0.5",
     94    "dist": {
     95        "url": "github.com/drush-ops/drush/8.0.5",
     96        "type": "path"
     97    }
     98}
     99            }
     100        }
     101        "psr/log": {
     102            "1.0.0": {
     103{
     104    "name": "psr/log",
     105    "version": "1.0.0",
     106    "dist": {
     107        "url": "github.com/php-fig/log/1.0.0",
     108        "type": "path"
     109    }
     110}
     111            }
     112        }
     113    }
     114}
     115
     116{
     117    "require": {
     118        "drupal/core": "8.0.5"
     119    },
     120    "repositories": [
     121        {
     122            "type": "package",
     123            "package": {
     124                  "name": "drupal/core",
     125                  "version": "8.0.5",
     126                  "dist": {
     127                      "url": "../share/url/github.com/drupal-composer/drupal-core/8.0.5",
     128                      "type": "path"
     129                  },
     130                  "description": "Drupal is an open source content management platform powering millions of websites and applications.",
     131                  "type": "drupal-core",
     132                  "license": "GPL-2.0+",
     133                  "require": {
     134                    "php": ">=5.5.9",
     135                    "symfony/class-loader": "2.7.*",
     136                    "symfony/console": "2.7.*",
     137                    "symfony/dependency-injection": "2.7.*",
     138                    "symfony/event-dispatcher": "2.7.*",
     139                    "symfony/http-foundation": "~2.7.2",
     140                    "symfony/http-kernel": "2.7.*",
     141                    "symfony/routing": "2.7.*",
     142                    "symfony/serializer": "2.7.*",
     143                    "symfony/translation": "2.7.*",
     144                    "symfony/validator": "2.7.*",
     145                    "symfony/process": "2.7.*",
     146                    "symfony/yaml": "2.7.*",
     147                    "twig/twig": "^1.23.1",
     148                    "doctrine/common": "2.5.*",
     149                    "doctrine/annotations": "1.2.*",
     150                    "guzzlehttp/guzzle": "~6.1",
     151                    "symfony-cmf/routing": "1.3.*",
     152                    "easyrdf/easyrdf": "0.9.*",
     153                    "zendframework/zend-feed": "~2.4",
     154                    "stack/builder": "1.0.*",
     155                    "egulias/email-validator": "1.2.*",
     156                    "masterminds/html5": "~2.1",
     157                    "symfony/psr-http-message-bridge": "v0.2",
     158                    "zendframework/zend-diactoros": "~1.1",
     159                    "composer/semver": "~1.0"
     160                  },
     161                  "require-dev": {
     162                    "behat/mink": "~1.6",
     163                    "behat/mink-goutte-driver": "~1.2",
     164                    "jcalderonzumba/gastonjs": "~1.0.2",
     165                    "jcalderonzumba/mink-phantomjs-driver": "~0.3.1",
     166                    "mikey179/vfsStream": "~1.2",
     167                    "phpunit/phpunit": "~4.8",
     168                    "symfony/css-selector": "2.7.*"
     169                  },
     170                  "replace": {
     171                    "drupal/action": "self.version",
     172                    "drupal/aggregator": "self.version",
     173                    "drupal/automated_cron": "self.version",
     174                    "drupal/bartik": "self.version",
     175                    "drupal/ban": "self.version",
     176                    "drupal/basic_auth": "self.version",
     177                    "drupal/block": "self.version",
     178                    "drupal/block_content": "self.version",
     179                    "drupal/book": "self.version",
     180                    "drupal/breakpoint": "self.version",
     181                    "drupal/ckeditor": "self.version",
     182                    "drupal/classy": "self.version",
     183                    "drupal/color": "self.version",
     184                    "drupal/comment": "self.version",
     185                    "drupal/config": "self.version",
     186                    "drupal/config_translation": "self.version",
     187                    "drupal/contact": "self.version",
     188                    "drupal/content_translation": "self.version",
     189                    "drupal/contextual": "self.version",
     190                    "drupal/core-annotation": "self.version",
     191                    "drupal/core-bridge": "self.version",
     192                    "drupal/core-datetime": "self.version",
     193                    "drupal/core-diff": "self.version",
     194                    "drupal/core-discovery": "self.version",
     195                    "drupal/core-event-dispatcher": "self.version",
     196                    "drupal/core-file-cache": "self.version",
     197                    "drupal/core-gettext": "self.version",
     198                    "drupal/core-graph": "self.version",
     199                    "drupal/core-php-storage": "self.version",
     200                    "drupal/core-plugin": "self.version",
     201                    "drupal/core-proxy-builder": "self.version",
     202                    "drupal/core-serialization": "self.version",
     203                    "drupal/core-transliteration": "self.version",
     204                    "drupal/core-utility": "self.version",
     205                    "drupal/core-uuid": "self.version",
     206                    "drupal/datetime": "self.version",
     207                    "drupal/dblog": "self.version",
     208                    "drupal/dynamic_page_cache": "self.version",
     209                    "drupal/editor": "self.version",
     210                    "drupal/entity_reference": "self.version",
     211                    "drupal/field": "self.version",
     212                    "drupal/field_ui": "self.version",
     213                    "drupal/file": "self.version",
     214                    "drupal/filter": "self.version",
     215                    "drupal/forum": "self.version",
     216                    "drupal/hal": "self.version",
     217                    "drupal/help": "self.version",
     218                    "drupal/history": "self.version",
     219                    "drupal/image": "self.version",
     220                    "drupal/inline_form_errors": "self.version",
     221                    "drupal/language": "self.version",
     222                    "drupal/link": "self.version",
     223                    "drupal/locale": "self.version",
     224                    "drupal/minimal": "self.version",
     225                    "drupal/menu_link_content": "self.version",
     226                    "drupal/menu_ui": "self.version",
     227                    "drupal/migrate": "self.version",
     228                    "drupal/migrate_drupal": "self.version",
     229                    "drupal/node": "self.version",
     230                    "drupal/options": "self.version",
     231                    "drupal/page_cache": "self.version",
     232                    "drupal/path": "self.version",
     233                    "drupal/quickedit": "self.version",
     234                    "drupal/rdf": "self.version",
     235                    "drupal/responsive_image": "self.version",
     236                    "drupal/rest": "self.version",
     237                    "drupal/search": "self.version",
     238                    "drupal/serialization": "self.version",
     239                    "drupal/seven": "self.version",
     240                    "drupal/shortcut": "self.version",
     241                    "drupal/simpletest": "self.version",
     242                    "drupal/standard": "self.version",
     243                    "drupal/stark": "self.version",
     244                    "drupal/statistics": "self.version",
     245                    "drupal/syslog": "self.version",
     246                    "drupal/system": "self.version",
     247                    "drupal/taxonomy": "self.version",
     248                    "drupal/telephone": "self.version",
     249                    "drupal/text": "self.version",
     250                    "drupal/toolbar": "self.version",
     251                    "drupal/tour": "self.version",
     252                    "drupal/tracker": "self.version",
     253                    "drupal/update": "self.version",
     254                    "drupal/user": "self.version",
     255                    "drupal/views": "self.version",
     256                    "drupal/views_ui": "self.version"
     257                  },
     258                  "minimum-stability": "dev",
     259                  "prefer-stable": true,
     260                  "autoload": {
     261                    "psr-4": {
     262                      "Drupal\\Core\\": "lib/Drupal/Core",
     263                      "Drupal\\Component\\": "lib/Drupal/Component",
     264                      "Drupal\\Driver\\": "../drivers/lib/Drupal/Driver"
     265                    },
     266                    "files": [
     267                      "lib/Drupal.php"
     268                    ],
     269                    "classmap": [
     270                      "lib/Drupal/Component/Utility/Timer.php",
     271                      "lib/Drupal/Component/Utility/Unicode.php",
     272                      "lib/Drupal/Core/Database/Database.php",
     273                      "lib/Drupal/Core/DrupalKernel.php",
     274                      "lib/Drupal/Core/DrupalKernelInterface.php",
     275                      "lib/Drupal/Core/Site/Settings.php"
     276                    ]
     277                  },
     278                  "config": {
     279                    "preferred-install": "dist",
     280                    "autoloader-suffix": "Drupal8"
     281                  },
     282                  "scripts": {
     283                    "pre-autoload-dump": "Drupal\\Core\\Composer\\Composer::preAutoloadDump",
     284                    "post-autoload-dump": "Drupal\\Core\\Composer\\Composer::ensureHtaccess"
     285                }
     286            }
     287        }
     288    ]
     289}
     290}}}