Skip to content

Commit c7dc6ae

Browse files
committed
update fuse with core and contrib modules
1 parent 0858c2d commit c7dc6ae

25 files changed

+2709
-1143
lines changed

.circleci/config.yml

100644100755
+5-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ defaults: &defaults
88
# In addition to the environment variables defined in this file, also
99
# add the following variables in the Circle CI UI.
1010
#
11-
# See: https://circleci.com/docs/2.0/environment-variables/
11+
# See: https://circleci.com/docs/2.0/env-vars/
1212
#
1313
# TERMINUS_SITE: Name of the Pantheon site to run tests on, e.g. my_site
1414
# TERMINUS_TOKEN: The Pantheon machine token
@@ -110,6 +110,10 @@ jobs:
110110
command: ./.circleci/scripts/pantheon/02-init-site-under-test-clone-existing
111111
# command: ./.circleci/scripts/pantheon/02-init-site-under-test-reinstall-new
112112

113+
- run:
114+
name: run composer install again to get dev dependencies
115+
command: composer install
116+
113117
- run:
114118
name: run functional tests with Behat
115119
command: ./tests/scripts/run-behat

.circleci/scripts/pantheon/02-init-site-under-test-clone-existing

+4
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ terminus -n build:env:create "$TERMINUS_SITE.dev" "$TERMINUS_ENV" --yes --clone-
1616
# Run updatedb to ensure that the cloned database is updated for the new code.
1717
terminus -n drush "$TERMINUS_SITE.$TERMINUS_ENV" -- updatedb -y
1818

19+
# If any modules, or theme files have been moved around or reorganized, in order to avoid
20+
# "The website encountered an unexpected error. Please try again later." error on First Visit
21+
terminus -n drush "$TERMINUS_SITE.$TERMINUS_ENV" cr
22+
1923
# If exported configuration is available, then import it.
2024
if [ -f "config/system.site.yml" ] ; then
2125
terminus -n drush "$TERMINUS_SITE.$TERMINUS_ENV" -- config-import --yes

.editorconfig

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Drupal editor configuration normalization
2+
# @see http://editorconfig.org/
3+
4+
# This is the top-most .editorconfig file; do not search in parent directories.
5+
root = true
6+
7+
# All files.
8+
[*]
9+
end_of_line = LF
10+
indent_style = space
11+
indent_size = 2
12+
charset = utf-8
13+
trim_trailing_whitespace = true
14+
insert_final_newline = true
15+
16+
[{composer.json,composer.lock}]
17+
indent_size = 4

.gitignore

100644100755
+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ web/.eslintignore
1818
web/.eslintrc
1919
web/.gitattributes
2020
web/.htaccess
21+
web/.ht.router.php
2122
web/autoload.php
2223
web/index.php
2324
web/robots.txt

LICENSE

100644100755
File mode changed.

README.md

100644100755
+1-13
Original file line numberDiff line numberDiff line change
@@ -67,19 +67,7 @@ So that CircleCI will have some test to run, this repository includes a configur
6767

6868
## Updating your site
6969

70-
When using this repository to manage your Drupal site, you will no longer use the Pantheon dashboard to update your Drupal version. Instead, you will manage your updates using Composer. Updates can be applied either directly on Pantheon, by using Terminus, or on your local machine.
71-
72-
#### Update with Terminus
73-
74-
Install [Terminus 1](https://pantheon.io/docs/terminus/) and the [Terminus Composer plugin](https://github.com/pantheon-systems/terminus-composer-plugin). Then, to update your site, ensure it is in SFTP mode, and then run:
75-
```
76-
terminus composer <sitename>.<dev> update
77-
```
78-
Other commands will work as well; for example, you may install new modules using `terminus composer <sitename>.<dev> require drupal/pathauto`.
79-
80-
#### Update on your local machine
81-
82-
You may also place your site in Git mode, clone it locally, and then run composer commands from there. Commit and push your files back up to Pantheon as usual.
70+
When using this repository to manage your Drupal site, you will no longer use the Pantheon dashboard to update your Drupal version. Instead, you will manage your updates using Composer. Ensure your site is in Git mode, clone it locally, and then run composer commands from there. Commit and push your files back up to Pantheon as usual.
8371

8472

8573

composer.json

100644100755
+131-107
Original file line numberDiff line numberDiff line change
@@ -1,113 +1,137 @@
11
{
2-
"name": "pantheon-systems/example-drops-8-composer",
3-
"description": "Install drops-8 with Composer on Pantheon.",
4-
"type": "project",
5-
"license": "MIT",
6-
"repositories": [
7-
{
8-
"type": "composer",
9-
"url": "https://packages.drupal.org/8"
10-
}
11-
],
12-
"require": {
13-
"composer/installers": "^1.0.20",
14-
"cweagans/composer-patches": "^1.0",
15-
"drupal-composer/drupal-scaffold": "^2.0.1",
16-
"drupal/config_direct_save": "^1.0",
17-
"drupal/config_installer": "^1.0",
18-
"drupal/console": "^1",
19-
"drupal/core": "^8",
20-
"drupal/recaptcha": "^2.2",
21-
"drupal/simple_block": "^1.0@beta",
22-
"drupal/webform": "^5.0@beta",
23-
"drush/drush": "~8",
24-
"rvtraveller/qs-composer-installer": "^1.1",
25-
"webflo/drupal-core-strict": "^8"
26-
},
27-
"require-dev": {
28-
"mikey179/vfsstream": "^1.2",
29-
"behat/behat": "3.*",
30-
"behat/mink": "^1.7",
31-
"behat/mink-extension": "^2.2",
32-
"behat/mink-goutte-driver": "^1.2",
33-
"jcalderonzumba/gastonjs": "^1.0.2",
34-
"jcalderonzumba/mink-phantomjs-driver": "^0.3.1",
35-
"drupal/drupal-extension": "^3.1",
36-
"drush-ops/behat-drush-endpoint": "^0.0.4",
37-
"pantheon-systems/quicksilver-pushback": "~1",
38-
"phpunit/phpunit": "^4.8",
39-
"symfony/css-selector": "^2.8"
40-
},
41-
"conflict": {
42-
"drupal/drupal": "*"
43-
},
44-
"minimum-stability": "alpha",
45-
"prefer-stable": true,
46-
"autoload": {
47-
"classmap": [
48-
"scripts/composer/ScriptHandler.php"
49-
]
50-
},
51-
"scripts": {
52-
"build-assets": [
53-
"@prepare-for-pantheon",
54-
"composer install --optimize-autoloader"
55-
],
56-
"lint": "find web/modules/custom web/themes/custom -name '*.php' -exec php -l {} \\;",
57-
"code-sniff": "echo 'No code sniff step defined.'",
58-
"unit-test": "echo 'No unit test step defined.'",
59-
"drupal-scaffold": "DrupalComposer\\DrupalScaffold\\Plugin::scaffold",
60-
"prepare-for-pantheon": "DrupalProject\\composer\\ScriptHandler::prepareForPantheon",
61-
"post-install-cmd": [
62-
"@drupal-scaffold",
63-
"DrupalProject\\composer\\ScriptHandler::createRequiredFiles"
2+
"name": "pantheon-systems/example-drops-8-composer",
3+
"description": "Install drops-8 with Composer on Pantheon.",
4+
"type": "project",
5+
"license": "MIT",
6+
"repositories": [
7+
{
8+
"type": "composer",
9+
"url": "https://packages.drupal.org/8"
10+
}
6411
],
65-
"post-update-cmd": [
66-
"DrupalProject\\composer\\ScriptHandler::createRequiredFiles"
67-
],
68-
"post-create-project-cmd": [
69-
"@drupal-scaffold",
70-
"DrupalProject\\composer\\ScriptHandler::createRequiredFiles"
71-
]
72-
},
73-
"extra": {
74-
"installer-paths": {
75-
"web/core": ["type:drupal-core"],
76-
"web/modules/contrib/{$name}": ["type:drupal-module"],
77-
"web/profiles/contrib/{$name}": ["type:drupal-profile"],
78-
"web/themes/contrib/{$name}": ["type:drupal-theme"],
79-
"drush/contrib/{$name}": ["type:drupal-drush"]
12+
"require": {
13+
"php": ">=7.0.8",
14+
"composer/installers": "^1.0.20",
15+
"cweagans/composer-patches": "^1.0",
16+
"drupal-composer/drupal-scaffold": "^2.0.1",
17+
"drupal/admin_toolbar": "^1.23",
18+
"drupal/config_direct_save": "^1.0",
19+
"drupal/config_installer": "^1.0",
20+
"drupal/console": "^1",
21+
"drupal/core": "^8",
22+
"drupal/elastic_email": "^2.1",
23+
"drupal/features": "^3.7",
24+
"drupal/field_group": "3.0.0-beta1",
25+
"drupal/field_permissions": "^1.0@RC",
26+
"drupal/google_analytics": "^2.2",
27+
"drupal/honeypot": "^1.27",
28+
"drupal/linkit": "^4.3",
29+
"drupal/metatag": "^1.3",
30+
"drupal/paragraphs": "^1.3",
31+
"drupal/pathauto": "^1.2",
32+
"drupal/recaptcha": "^2.3",
33+
"drupal/simple_block": "^1.0@beta",
34+
"drupal/simple_sitemap": "^2.12",
35+
"drupal/smart_login": "^1.0@beta",
36+
"drupal/subpathauto": "^1.0@beta",
37+
"drupal/super_login": "^1.2",
38+
"drupal/token": "^1.3",
39+
"drupal/ui_patterns": "^1.0",
40+
"drupal/video_embed_field": "^1.5",
41+
"drupal/views_send": "^1.1",
42+
"drupal/webform": "^5.0@RC",
43+
"drupal/webform_views": "^5.0@alpha",
44+
"drupal/zurb_foundation": "^6.0",
45+
"drush-ops/behat-drush-endpoint": "^0.0.5",
46+
"drush/drush": "~8",
47+
"pantheon-systems/quicksilver-pushback": "~1",
48+
"rvtraveller/qs-composer-installer": "^1.1",
49+
"webflo/drupal-core-strict": "^8"
8050
},
81-
"build-env": {
82-
"install-cms": [
83-
"drush site-install standard --account-mail={account-mail} --account-name={account-name} --account-pass={account-pass} --site-mail={site-mail} --site-name={site-name} --yes",
84-
"drush pm-enable config_direct_save simple_block --yes",
85-
"drush pm-uninstall block_content --yes"
86-
],
87-
"export-configuration": "drush config-export --yes"
51+
"require-dev": {
52+
"mikey179/vfsstream": "^1.2",
53+
"behat/behat": "3.*",
54+
"behat/mink": "^1.7",
55+
"behat/mink-extension": "^2.2",
56+
"behat/mink-goutte-driver": "^1.2",
57+
"jcalderonzumba/gastonjs": "^1.0.2",
58+
"jcalderonzumba/mink-phantomjs-driver": "^0.3.1",
59+
"drupal/drupal-extension": "^3.1",
60+
"phpunit/phpunit": "^4.8",
61+
"symfony/css-selector": "^2.8"
8862
},
89-
"drupal-scaffold": {
90-
"source": "https://raw.githubusercontent.com/pantheon-systems/drops-8/{version}/{path}",
91-
"includes": [
92-
"sites/default/default.services.pantheon.preproduction.yml",
93-
"sites/default/settings.pantheon.php"
94-
],
95-
"excludes": [
96-
".csslintrc",
97-
".editorconfig",
98-
".eslintignore",
99-
".eslintrc.json",
100-
".htaccess",
101-
"web.config"
102-
]
103-
}
104-
},
105-
"config": {
106-
"optimize-autoloader": true,
107-
"preferred-install": "dist",
108-
"sort-packages": true,
109-
"platform": {
110-
"php": "7.0"
63+
"conflict": {
64+
"drupal/drupal": "*"
65+
},
66+
"minimum-stability": "dev",
67+
"prefer-stable": true,
68+
"autoload": {
69+
"classmap": [
70+
"scripts/composer/ScriptHandler.php"
71+
]
72+
},
73+
"scripts": {
74+
"build-assets": [
75+
"@prepare-for-pantheon",
76+
"composer install --optimize-autoloader --no-dev"
77+
],
78+
"lint": "find web/modules/custom web/themes/custom -name '*.php' -exec php -l {} \\;",
79+
"code-sniff": "echo 'No code sniff step defined.'",
80+
"unit-test": "echo 'No unit test step defined.'",
81+
"drupal-scaffold": "DrupalComposer\\DrupalScaffold\\Plugin::scaffold",
82+
"prepare-for-pantheon": "DrupalProject\\composer\\ScriptHandler::prepareForPantheon",
83+
"post-install-cmd": [
84+
"@drupal-scaffold",
85+
"DrupalProject\\composer\\ScriptHandler::createRequiredFiles"
86+
],
87+
"post-update-cmd": [
88+
"DrupalProject\\composer\\ScriptHandler::createRequiredFiles",
89+
"find .circleci/scripts/pantheon/ -type f | xargs chmod 755",
90+
"find tests/scripts/ -type f | xargs chmod 755"
91+
],
92+
"post-create-project-cmd": [
93+
"@drupal-scaffold",
94+
"DrupalProject\\composer\\ScriptHandler::createRequiredFiles"
95+
]
96+
},
97+
"extra": {
98+
"installer-paths": {
99+
"web/core": ["type:drupal-core"],
100+
"web/modules/contrib/{$name}": ["type:drupal-module"],
101+
"web/profiles/contrib/{$name}": ["type:drupal-profile"],
102+
"web/themes/contrib/{$name}": ["type:drupal-theme"],
103+
"drush/contrib/{$name}": ["type:drupal-drush"]
104+
},
105+
"build-env": {
106+
"install-cms": [
107+
"drush site-install standard --account-mail={account-mail} --account-name={account-name} --account-pass={account-pass} --site-mail={site-mail} --site-name={site-name} --yes",
108+
"drush pm-enable config_direct_save simple_block --yes",
109+
"drush pm-uninstall block_content --yes"
110+
],
111+
"export-configuration": "drush config-export --yes"
112+
},
113+
"drupal-scaffold": {
114+
"source": "https://raw.githubusercontent.com/pantheon-systems/drops-8-scaffolding/{version}/{path}",
115+
"includes": [
116+
"sites/default/default.services.pantheon.preproduction.yml",
117+
"sites/default/settings.pantheon.php"
118+
],
119+
"excludes": [
120+
".csslintrc",
121+
".editorconfig",
122+
".eslintignore",
123+
".eslintrc.json",
124+
".htaccess",
125+
"web.config"
126+
]
127+
}
128+
},
129+
"config": {
130+
"optimize-autoloader": true,
131+
"preferred-install": "dist",
132+
"sort-packages": true,
133+
"platform": {
134+
"php": "7.0.8"
135+
}
111136
}
112-
}
113137
}

0 commit comments

Comments
 (0)