Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added default config values to the Landofile after init. #152

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/pr-drupal-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ jobs:
- examples/drupal11-nginx
lando-version:
- 3-edge
- 3-stable
os:
- ubuntu-24.04
node-version:
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
## {{ UNRELEASED_VERSION }} - [{{ UNRELEASED_DATE }}]({{ UNRELEASED_LINK }})

* Added default config values to the `.lando.yml` file after init.

## v1.11.0 - [December 9, 2024](https://github.com/lando/drupal/releases/tag/v1.11.0)

* Optimized for `midcore`
Expand Down
10 changes: 10 additions & 0 deletions examples/drupal11/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,16 @@ lando drush si --db-url=mysql://drupal11:drupal11@database/drupal11 -y
cd drupal11
lando drush en jsonapi -y
lando exec appserver -- curl localhost/jsonapi | grep "action--action"

# Should have recipe defaults
cd drupal11
cat .lando.yml | grep 'php: "8.3"'
cat .lando.yml | grep "drush: ^13"
cat .lando.yml | grep "composer_version: 2-latest"

# Should still have webroot
cd drupal11
cat .lando.yml | grep "webroot: ."
```

## Destroy tests
Expand Down
5 changes: 5 additions & 0 deletions inits/drupal10.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,9 @@
*/
module.exports = {
name: 'drupal10',
defaults: {
'php': '8.1',
'drush': '^11',
'composer_version': '2-latest',
},
};
5 changes: 5 additions & 0 deletions inits/drupal11.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,9 @@
*/
module.exports = {
name: 'drupal11',
defaults: {
'php': '8.3',
'drush': '^13',
'composer_version': '2-latest',
},
};
4 changes: 4 additions & 0 deletions inits/drupal6.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,8 @@
*/
module.exports = {
name: 'drupal6',
defaults: {
'php': '5.6',
'drush': '8.4.5',
},
};
3 changes: 3 additions & 0 deletions inits/drupal7.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,7 @@
*/
module.exports = {
name: 'drupal7',
defaults: {
'php': '7.4',
},
};
3 changes: 3 additions & 0 deletions inits/drupal8.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,7 @@
*/
module.exports = {
name: 'drupal8',
defaults: {
'php': '7.3',
},
};
5 changes: 5 additions & 0 deletions inits/drupal9.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,9 @@
*/
module.exports = {
name: 'drupal9',
defaults: {
'php': '8.0',
'drush': '^11',
'composer_version': '2-latest',
},
};
Loading