ec-europa / oe-project
OpenEuropa project template.
Installs: 6
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 26
Forks: 1
Open Issues: 6
Language:Gherkin
Type:project
pkg:composer/ec-europa/oe-project
Requires
- composer/installers: ^1.2
- cweagans/composer-patches: ~1.0
- drupal-composer/drupal-scaffold: ^2.2
- drupal/coffee: ~1
- drupal/config_installer: ~1.5
- drupal/core: ~8
- drush/drush: ~9
- ec-europa/oe_core: *
- ec-europa/oe_profile: *
- ec-europa/oe_theme: *
Requires (Dev)
- behat/mink: ~1.7
- behat/mink-goutte-driver: ~1.2
- ec-europa/oe-behat: dev-master
- ec-europa/oe-code-review: ~0.1
- ec-europa/oe-task-runner: dev-master
- jcalderonzumba/gastonjs: ~1.0.2
- jcalderonzumba/mink-phantomjs-driver: ~0.3.1
- mikey179/vfsstream: ~1.2
- phpunit/phpunit: >=4.8.28 <5
- symfony/css-selector: ~2.8
Conflicts
This package is not auto-updated.
Last update: 2019-02-20 19:13:48 UTC
README
Abandoned. Check the OpenEuropa project for more information.
OpenEuropa project template
Installation
After installing Composer run:
composer install
Then copy relevant properties from runner.yml.dist to runner.yml and change their values according to your local setup.
To install the project from scratch run:
$ ./vendor/bin/runner drupal:site-install
Your Drupal project will be then installed in the ./build directory.
For more information about how to work with build configuration check out the OpenEuropa Task Runner project.
Install from existing configuration
To install the project from existing configuration run:
$ ./vendor/bin/run drupal:site-install-config
Add external dependencies
Add external dependencies, like contributed modules, PHP libraries, etc., using composer require:
composer require drupal/devel:~1.0
Add custom projects
Custom project, like modules or themes, must be placed under ./custom/{modules,themes} and each of them must have
a local composer.json file like the one below:
{
"name": "my_project/my_module",
"description": "My module description.",
"type": "drupal-module"
}
After that add them to composer.json like shown below and run composer update:
"require": { "my_project/my_module": "*" }
This will symlink your custom projects to destinations specified in the installer-paths section.
Run tests
To setup Behat tests run:
$ ./vendor/bin/run drupal:setup-behat
Then simply run:
$ ./vendor/bin/behat
Apply patches
If you need to apply patches you can do so with the composer-patches plugin.
To patch a Drupal projects insert the patches section in the extra section of composer.json:
"extra": { "patches": { "drupal/foobar": { "Patch description": "URL to patch" } } }