Changes between Version 158 and Version 159 of members/GRIP-UQAM


Ignore:
Timestamp:
Aug 22, 2016, 1:58:26 PM (5 years ago)
Author:
Grip Uqam
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • members/GRIP-UQAM

    v158 v159  
    135135* https://support.mayfirst.org/wiki/bulk-mail-relay
    136136* https://support.mayfirst.org/wiki/email-deliverability
    137 == Postgres ==
    138 [Postgres]
     137== [wiki:members/GRIP-UQAM/Postgres Postgres] ==
    139138== MongoDB ==
    140139* #11321
     
    174173  * https://packagist.org/packages/seld/jsonlint
    175174 * [DebianPackage:python-json-schema-validator]
    176 == Javascript packages: Bower ==
    177 === From npm to bower ===
    178 * $ nice -n 127 ionice --class=idle npm install bower --save
    179 * $ nice -n 127 ionice --class=idle npm update #update!
    180 * or (like there is something to check here)
    181 * $ nice -n 127 ionice --class=idle npm update bower #update!
    182 * .bowerrc
    183 * $ nice -n 127 ionice --class=idle nodejs node_modules/bower/bin/bower init # to start a new empty bower.json
    184 * Install some libraries...
    185 * $ nice -n 127 ionice --class=idle nodejs node_modules/bower/bin/bower update --production #update!
    186 * bower could also be updated from php composer, using "fxp/composer-asset-plugin"
    187 === Obsoleted Example .bowerrc for Drupal 7 ===
    188 {{{#!json
    189 {
    190   "directory" : "../../web/sites/all/libraries"
    191 }
    192 }}}
    193 === Install Javascript libraries with Bower package manager===
    194 {{{#!sh
    195 #$ nodejs node_modules/bower/bin/bower install --save "jquery#1.4.4" # Drupal 7 version
    196 # or (good idea (checked))
    197 nodejs node_modules/bower/bin/bower install --save jquery#~1.4.4 # Drupal 7 version
    198 nodejs node_modules/bower/bin/bower install --save jquery-colorbox # depends on jquery
    199 nodejs node_modules/bower/bin/bower install --save ckeditor#full/stable
    200 }}}
    201 
    202 * https://github.com/npm/node-semver#ranges (valid for Bower)
    203 
    204 * $ ls bower_components/
    205 * or
    206 * $ ls ../../web/sites/all/libraries
    207 
    208 * https://packagist.org/packages/ckeditor/ckeditor
    209 * Supported Editors Matrix https://www.drupal.org/node/596966
    210 * jquery version for Drupal 7 https://www.drupal.org/node/171213
    211 * same with jQuery Update module https://www.drupal.org/project/jquery_update
    212 * https://packagist.org/packages/kraksoft/colorbox
    213 * https://github.com/Spea/SpBowerBundle
    214 === Obsoleted Example bower.json for Drupal 7 ===
    215 {{{#!json
    216 {
    217   "name": "drupal7",
    218   "private": true,
    219   "ignore": [
    220     "**/.*",
    221     "node_modules",
    222     "bower_components",
    223     "../../web/sites/all/libraries",
    224     "test",
    225     "tests"
    226   ],
    227   "dependencies": {
    228     "jquery": "~1.4.4",
    229     "jquery-colorbox": "^1.6.3",
    230     "ckeditor": "#full/stable"
    231   }
    232 }
    233 }}}
     175== [wiki:members/GRIP-UQAM/Bower Javascript packages: Bower] ==
    234176== Composer ==
    235177=== Some Composer documentation ===
     
    241183* https://www.youtube.com/results?search_query=php+composer
    242184* http://knpuniversity.com/screencast/composer
    243 === Some Composer commands ===
    244 *
    245 {{{#!sh
    246 $ ./composer.phar self-update --stable
    247 }}}
    248 *
    249 {{{#!sh
    250 $ ./composer.phar update
    251 }}}
    252 === Composer extensions ===
    253 ==== Includes ====
    254 * keywords: includes from composer.json
    255 * https://github.com/composer/composer/issues/183#issuecomment-151317582
    256 * https://github.com/wikimedia/composer-merge-plugin
    257 * https://getcomposer.org/doc/06-config.md#use-include-path
    258 * https://getcomposer.org/doc/05-repositories.md#includes
    259 === Example composer.json for Drupal 7 ===
    260 {{{#!sh
    261 composer require drush/drush
    262 composer require seld/jsonlint
    263 }}}
    264 {{{#!json
    265 {
    266     "require": {
    267         "drush/drush": "^8.0",
    268         "seld/jsonlint": "^1.4",
    269         "ezyang/htmlpurifier": "^4.7",
    270         "kraksoft/colorbox": "^1.5",
    271         "pelago/emogrifier": "^1.0",
    272         "tinymce/tinymce": "^3.5", # remove this line, this version is not available through composer!
    273         "ckeditor/ckeditor": "^full/4.5.1"
    274     }
    275 }
    276 }}}
    277 * http://docs.drush.org/en/master/install/
    278 * https://packagist.org/packages/ezyang/htmlpurifier
    279 * http://htmlpurifier.org/download
    280 * https://packagist.org/packages/pelago/emogrifier
    281 * https://www.drupal.org/project/emogrifier
    282 * php composer target directory
    283 == Local Repositories ==
    284 {{{#!json
    285 {
    286     "require": {
    287         "drush/drush": "8.0.5"
    288     },
    289     "repositories": [
    290         {
    291             "type": "git",
    292             "url": "../share/url/github.com/drush-ops/drush/8.0.5"
    293         },
    294         {
    295             "type": "path",
    296             "url": "../share/url/github.com/*/*/*"
    297         }
    298     ]
    299 }
    300 }}}
    301 The next one does not work!
    302 {{{#!json
    303 {
    304     "require": {
    305         "drush/drush": "8.0.5"
    306     },
    307     "repositories": [
    308         {
    309             "type": "composer",
    310             "url": "file://tmp/gripuqam/share/url"
    311         }
    312     ]
    313 }
    314 }}}
    315 https://getcomposer.org/doc/05-repositories.md#package-2
    316 {{{#!json
    317 {
    318     "packages": {
    319         "drupal/core": {
    320             "8.0.5": {
    321 {
    322     "name": "drupal/core",
    323     "version": "8.0.5",
    324     "dist": {
    325         "url": "github.com/drupal-composer/drupal-core/8.0.5",
    326         "type": "path"
    327     }
    328 }
    329             }
    330         }
    331         "drush/drush": {
    332             "8.0.5": {
    333 {
    334     "name": "drush/drush",
    335     "version": "8.0.5",
    336     "dist": {
    337         "url": "github.com/drush-ops/drush/8.0.5",
    338         "type": "path"
    339     }
    340 }
    341             }
    342         }
    343         "psr/log": {
    344             "1.0.0": {
    345 {
    346     "name": "psr/log",
    347     "version": "1.0.0",
    348     "dist": {
    349         "url": "github.com/php-fig/log/1.0.0",
    350         "type": "path"
    351     }
    352 }
    353             }
    354         }
    355     }
    356 }
    357 
    358 {
    359     "require": {
    360         "drupal/core": "8.0.5"
    361     },
    362     "repositories": [
    363         {
    364             "type": "package",
    365             "package": {
    366                   "name": "drupal/core",
    367                   "version": "8.0.5",
    368                   "dist": {
    369                       "url": "../share/url/github.com/drupal-composer/drupal-core/8.0.5",
    370                       "type": "path"
    371                   },
    372                   "description": "Drupal is an open source content management platform powering millions of websites and applications.",
    373                   "type": "drupal-core",
    374                   "license": "GPL-2.0+",
    375                   "require": {
    376                     "php": ">=5.5.9",
    377                     "symfony/class-loader": "2.7.*",
    378                     "symfony/console": "2.7.*",
    379                     "symfony/dependency-injection": "2.7.*",
    380                     "symfony/event-dispatcher": "2.7.*",
    381                     "symfony/http-foundation": "~2.7.2",
    382                     "symfony/http-kernel": "2.7.*",
    383                     "symfony/routing": "2.7.*",
    384                     "symfony/serializer": "2.7.*",
    385                     "symfony/translation": "2.7.*",
    386                     "symfony/validator": "2.7.*",
    387                     "symfony/process": "2.7.*",
    388                     "symfony/yaml": "2.7.*",
    389                     "twig/twig": "^1.23.1",
    390                     "doctrine/common": "2.5.*",
    391                     "doctrine/annotations": "1.2.*",
    392                     "guzzlehttp/guzzle": "~6.1",
    393                     "symfony-cmf/routing": "1.3.*",
    394                     "easyrdf/easyrdf": "0.9.*",
    395                     "zendframework/zend-feed": "~2.4",
    396                     "stack/builder": "1.0.*",
    397                     "egulias/email-validator": "1.2.*",
    398                     "masterminds/html5": "~2.1",
    399                     "symfony/psr-http-message-bridge": "v0.2",
    400                     "zendframework/zend-diactoros": "~1.1",
    401                     "composer/semver": "~1.0"
    402                   },
    403                   "require-dev": {
    404                     "behat/mink": "~1.6",
    405                     "behat/mink-goutte-driver": "~1.2",
    406                     "jcalderonzumba/gastonjs": "~1.0.2",
    407                     "jcalderonzumba/mink-phantomjs-driver": "~0.3.1",
    408                     "mikey179/vfsStream": "~1.2",
    409                     "phpunit/phpunit": "~4.8",
    410                     "symfony/css-selector": "2.7.*"
    411                   },
    412                   "replace": {
    413                     "drupal/action": "self.version",
    414                     "drupal/aggregator": "self.version",
    415                     "drupal/automated_cron": "self.version",
    416                     "drupal/bartik": "self.version",
    417                     "drupal/ban": "self.version",
    418                     "drupal/basic_auth": "self.version",
    419                     "drupal/block": "self.version",
    420                     "drupal/block_content": "self.version",
    421                     "drupal/book": "self.version",
    422                     "drupal/breakpoint": "self.version",
    423                     "drupal/ckeditor": "self.version",
    424                     "drupal/classy": "self.version",
    425                     "drupal/color": "self.version",
    426                     "drupal/comment": "self.version",
    427                     "drupal/config": "self.version",
    428                     "drupal/config_translation": "self.version",
    429                     "drupal/contact": "self.version",
    430                     "drupal/content_translation": "self.version",
    431                     "drupal/contextual": "self.version",
    432                     "drupal/core-annotation": "self.version",
    433                     "drupal/core-bridge": "self.version",
    434                     "drupal/core-datetime": "self.version",
    435                     "drupal/core-diff": "self.version",
    436                     "drupal/core-discovery": "self.version",
    437                     "drupal/core-event-dispatcher": "self.version",
    438                     "drupal/core-file-cache": "self.version",
    439                     "drupal/core-gettext": "self.version",
    440                     "drupal/core-graph": "self.version",
    441                     "drupal/core-php-storage": "self.version",
    442                     "drupal/core-plugin": "self.version",
    443                     "drupal/core-proxy-builder": "self.version",
    444                     "drupal/core-serialization": "self.version",
    445                     "drupal/core-transliteration": "self.version",
    446                     "drupal/core-utility": "self.version",
    447                     "drupal/core-uuid": "self.version",
    448                     "drupal/datetime": "self.version",
    449                     "drupal/dblog": "self.version",
    450                     "drupal/dynamic_page_cache": "self.version",
    451                     "drupal/editor": "self.version",
    452                     "drupal/entity_reference": "self.version",
    453                     "drupal/field": "self.version",
    454                     "drupal/field_ui": "self.version",
    455                     "drupal/file": "self.version",
    456                     "drupal/filter": "self.version",
    457                     "drupal/forum": "self.version",
    458                     "drupal/hal": "self.version",
    459                     "drupal/help": "self.version",
    460                     "drupal/history": "self.version",
    461                     "drupal/image": "self.version",
    462                     "drupal/inline_form_errors": "self.version",
    463                     "drupal/language": "self.version",
    464                     "drupal/link": "self.version",
    465                     "drupal/locale": "self.version",
    466                     "drupal/minimal": "self.version",
    467                     "drupal/menu_link_content": "self.version",
    468                     "drupal/menu_ui": "self.version",
    469                     "drupal/migrate": "self.version",
    470                     "drupal/migrate_drupal": "self.version",
    471                     "drupal/node": "self.version",
    472                     "drupal/options": "self.version",
    473                     "drupal/page_cache": "self.version",
    474                     "drupal/path": "self.version",
    475                     "drupal/quickedit": "self.version",
    476                     "drupal/rdf": "self.version",
    477                     "drupal/responsive_image": "self.version",
    478                     "drupal/rest": "self.version",
    479                     "drupal/search": "self.version",
    480                     "drupal/serialization": "self.version",
    481                     "drupal/seven": "self.version",
    482                     "drupal/shortcut": "self.version",
    483                     "drupal/simpletest": "self.version",
    484                     "drupal/standard": "self.version",
    485                     "drupal/stark": "self.version",
    486                     "drupal/statistics": "self.version",
    487                     "drupal/syslog": "self.version",
    488                     "drupal/system": "self.version",
    489                     "drupal/taxonomy": "self.version",
    490                     "drupal/telephone": "self.version",
    491                     "drupal/text": "self.version",
    492                     "drupal/toolbar": "self.version",
    493                     "drupal/tour": "self.version",
    494                     "drupal/tracker": "self.version",
    495                     "drupal/update": "self.version",
    496                     "drupal/user": "self.version",
    497                     "drupal/views": "self.version",
    498                     "drupal/views_ui": "self.version"
    499                   },
    500                   "minimum-stability": "dev",
    501                   "prefer-stable": true,
    502                   "autoload": {
    503                     "psr-4": {
    504                       "Drupal\\Core\\": "lib/Drupal/Core",
    505                       "Drupal\\Component\\": "lib/Drupal/Component",
    506                       "Drupal\\Driver\\": "../drivers/lib/Drupal/Driver"
    507                     },
    508                     "files": [
    509                       "lib/Drupal.php"
    510                     ],
    511                     "classmap": [
    512                       "lib/Drupal/Component/Utility/Timer.php",
    513                       "lib/Drupal/Component/Utility/Unicode.php",
    514                       "lib/Drupal/Core/Database/Database.php",
    515                       "lib/Drupal/Core/DrupalKernel.php",
    516                       "lib/Drupal/Core/DrupalKernelInterface.php",
    517                       "lib/Drupal/Core/Site/Settings.php"
    518                     ]
    519                   },
    520                   "config": {
    521                     "preferred-install": "dist",
    522                     "autoloader-suffix": "Drupal8"
    523                   },
    524                   "scripts": {
    525                     "pre-autoload-dump": "Drupal\\Core\\Composer\\Composer::preAutoloadDump",
    526                     "post-autoload-dump": "Drupal\\Core\\Composer\\Composer::ensureHtaccess"
    527                 }
    528             }
    529         }
    530     ]
    531 }
    532 }}}
     185=== [wiki:members/GRIP-UQAM/Composer Some Composer commands] ===
    533186== Web Applications ==
    534187* https://www.neos.io/