@lando/drupal 1.1.0 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (75) hide show
  1. package/.nyc_output/processinfo/01d8ff22-9438-4554-b087-ab7603b629f0.json +1 -0
  2. package/.nyc_output/processinfo/f814aa13-2c41-4f20-8996-54b86b27fa3e.json +1 -0
  3. package/.nyc_output/processinfo/index.json +1 -1
  4. package/CHANGELOG.md +10 -0
  5. package/config/drupal10/default.conf.tpl +2 -0
  6. package/config/drupal10/mysql.cnf +3 -2
  7. package/config/drupal10/mysql8.cnf +3 -2
  8. package/config/drupal10/php.ini +3 -2
  9. package/config/drupal6/default.conf.tpl +9 -7
  10. package/config/drupal6/mysql.cnf +4 -3
  11. package/config/drupal6/mysql8.cnf +3 -2
  12. package/config/drupal6/php.ini +3 -5
  13. package/config/drupal7/default.conf.tpl +2 -0
  14. package/config/drupal7/mysql.cnf +3 -2
  15. package/config/drupal7/mysql8.cnf +3 -2
  16. package/config/drupal7/php.ini +3 -2
  17. package/config/drupal8/default.conf.tpl +2 -0
  18. package/config/drupal8/mysql.cnf +4 -3
  19. package/config/drupal8/mysql8.cnf +3 -2
  20. package/config/drupal8/php.ini +3 -2
  21. package/config/drupal9/default.conf.tpl +2 -0
  22. package/config/drupal9/mysql.cnf +3 -2
  23. package/config/drupal9/mysql8.cnf +3 -2
  24. package/config/drupal9/php.ini +3 -2
  25. package/coverage/index.html +1 -1
  26. package/coverage/utils.js.html +1 -1
  27. package/coverage/warnings.js.html +1 -1
  28. package/netlify.toml +2 -4
  29. package/node_modules/@lando/mariadb/.eslintignore +3 -2
  30. package/node_modules/@lando/mariadb/CHANGELOG.md +5 -0
  31. package/node_modules/@lando/mariadb/netlify.toml +19 -4
  32. package/node_modules/@lando/mariadb/package.json +11 -11
  33. package/node_modules/@lando/mariadb/tmpfile +0 -0
  34. package/node_modules/@lando/mariadb/utils/get-default-healthcheck.js +12 -5
  35. package/node_modules/@lando/mysql/.eslintignore +3 -2
  36. package/node_modules/@lando/mysql/CHANGELOG.md +5 -0
  37. package/node_modules/@lando/mysql/netlify.toml +19 -4
  38. package/node_modules/@lando/mysql/package.json +11 -11
  39. package/node_modules/@lando/mysql/tmpfile +0 -0
  40. package/node_modules/@lando/mysql/utils/get-default-healthcheck.js +12 -5
  41. package/node_modules/@lando/php/.eslintignore +3 -2
  42. package/node_modules/@lando/php/.nyc_output/processinfo/927b5cd6-2a94-4b26-ac08-3ff93f5da197.json +1 -0
  43. package/node_modules/@lando/php/.nyc_output/processinfo/b107e51d-27b5-4645-90dd-ca6c345830fa.json +1 -0
  44. package/node_modules/@lando/php/.nyc_output/processinfo/index.json +1 -1
  45. package/node_modules/@lando/php/CHANGELOG.md +14 -7
  46. package/node_modules/@lando/php/builders/php.js +2 -2
  47. package/node_modules/@lando/php/coverage/index.html +1 -1
  48. package/node_modules/@lando/php/images/8.3-apache/Dockerfile +83 -0
  49. package/node_modules/@lando/php/images/8.3-fpm/Dockerfile +84 -0
  50. package/node_modules/@lando/php/netlify.toml +20 -5
  51. package/node_modules/@lando/php/package.json +11 -11
  52. package/node_modules/@lando/php/tmpfile +0 -0
  53. package/node_modules/@lando/postgres/.eslintignore +3 -2
  54. package/node_modules/@lando/postgres/.nyc_output/processinfo/3380cdae-4eeb-4e34-9b80-ce510e7ff922.json +1 -0
  55. package/node_modules/@lando/postgres/.nyc_output/processinfo/4a260cab-351e-4105-aba4-06e6f872bf12.json +1 -0
  56. package/node_modules/@lando/postgres/.nyc_output/processinfo/index.json +1 -1
  57. package/node_modules/@lando/postgres/CHANGELOG.md +5 -0
  58. package/node_modules/@lando/postgres/coverage/index.html +1 -1
  59. package/node_modules/@lando/postgres/netlify.toml +20 -5
  60. package/node_modules/@lando/postgres/package.json +13 -13
  61. package/node_modules/@lando/postgres/tmpfile +0 -0
  62. package/node_modules/@lando/postgres/utils/get-default-healthcheck.js +9 -4
  63. package/package.json +10 -10
  64. package/.nyc_output/processinfo/2fa3fbd3-7ca0-4e2e-8cf3-3e35a2ba8f22.json +0 -1
  65. package/.nyc_output/processinfo/53e67f35-dbc9-471d-b81e-ec93eb363afe.json +0 -1
  66. package/node_modules/@lando/php/.nyc_output/processinfo/0d3f9936-7351-4e73-b720-0191b83fa2ed.json +0 -1
  67. package/node_modules/@lando/php/.nyc_output/processinfo/ce923446-2865-4698-835b-17780656b791.json +0 -1
  68. package/node_modules/@lando/postgres/.nyc_output/processinfo/2687c51a-1087-45b1-b5dd-1c557d4a9030.json +0 -1
  69. package/node_modules/@lando/postgres/.nyc_output/processinfo/8b1ac11a-c036-44b8-8ee5-b34875c4541c.json +0 -1
  70. /package/.nyc_output/{2fa3fbd3-7ca0-4e2e-8cf3-3e35a2ba8f22.json → 01d8ff22-9438-4554-b087-ab7603b629f0.json} +0 -0
  71. /package/.nyc_output/{53e67f35-dbc9-471d-b81e-ec93eb363afe.json → f814aa13-2c41-4f20-8996-54b86b27fa3e.json} +0 -0
  72. /package/node_modules/@lando/php/.nyc_output/{0d3f9936-7351-4e73-b720-0191b83fa2ed.json → 927b5cd6-2a94-4b26-ac08-3ff93f5da197.json} +0 -0
  73. /package/node_modules/@lando/php/.nyc_output/{ce923446-2865-4698-835b-17780656b791.json → b107e51d-27b5-4645-90dd-ca6c345830fa.json} +0 -0
  74. /package/node_modules/@lando/postgres/.nyc_output/{2687c51a-1087-45b1-b5dd-1c557d4a9030.json → 3380cdae-4eeb-4e34-9b80-ce510e7ff922.json} +0 -0
  75. /package/node_modules/@lando/postgres/.nyc_output/{8b1ac11a-c036-44b8-8ee5-b34875c4541c.json → 4a260cab-351e-4105-aba4-06e6f872bf12.json} +0 -0
@@ -2,11 +2,16 @@
2
2
 
3
3
  // checks to see if a setting is disabled
4
4
  module.exports = options => {
5
- return [
5
+ let healthcheck = [
6
6
  'psql',
7
7
  `--host=${options.name}`,
8
- `--username=${options.creds.user}`,
9
- `--dbname=${options.creds.database}`,
8
+ ];
9
+
10
+ // Only include whatever creds are available.
11
+ options.creds.user ? healthcheck.push(`--user=${options.creds.user}`) : false;
12
+ options.creds.database ? healthcheck.push(`--dbname=${options.creds.database}`) : false;
13
+
14
+ return healthcheck.concat([
10
15
  '-c "\\\l"',
11
- ].join(' ');
16
+ ]).join(' ');
12
17
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@lando/drupal",
3
3
  "description": "A Lando plugin that provides a tight integration with Drupal.",
4
- "version": "1.1.0",
4
+ "version": "1.3.0",
5
5
  "author": "Mike Pirog @pirog",
6
6
  "license": "GPL-3.0",
7
7
  "repository": "lando/drupal",
@@ -42,19 +42,19 @@
42
42
  "test": "npm run lint && npm run test:unit"
43
43
  },
44
44
  "dependencies": {
45
- "@lando/mariadb": "^1.0.0",
45
+ "@lando/mariadb": "^1.1.0",
46
46
  "@lando/mssql": "^1.0.0",
47
- "@lando/mysql": "^1.0.0",
47
+ "@lando/mysql": "^1.1.0",
48
48
  "@lando/nginx": "^1.0.0",
49
- "@lando/php": "^1.0.0",
50
- "@lando/postgres": "^1.0.0",
49
+ "@lando/php": "^1.2.0",
50
+ "@lando/postgres": "^1.1.0",
51
51
  "lodash": "^4.17.21",
52
52
  "semver": "^7.5.4"
53
53
  },
54
54
  "devDependencies": {
55
55
  "@babel/eslint-parser": "^7.16.0",
56
56
  "@lando/leia": "^0.6.5",
57
- "@lando/vitepress-theme-default-plus": "^1.0.0-beta.39",
57
+ "@lando/vitepress-theme-default-plus": "^1.0.0-beta.40",
58
58
  "chai": "^4.3.4",
59
59
  "command-line-test": "^1.0.10",
60
60
  "eslint": "^7.32.0",
@@ -76,9 +76,9 @@
76
76
  "semver"
77
77
  ],
78
78
  "dist": {
79
- "integrity": "sha512-jw1rKmIFzfQARu1tspAEedYELIAewVaifq2X3dMiR77B5R/NGnpj934J+MLhkj4ICVssK9Mxu8nW3hPYtnoH0Q==",
80
- "shasum": "8e0afc3c0aba7d08296fa0702f88c8de3a157aeb",
81
- "filename": "lando-drupal-1.1.0.tgz",
82
- "unpackedSize": 12359996
79
+ "integrity": "sha512-41jqHJXJS9naLqTEM/1t5IZ2xQeRnEzebnHzl0ugktuEhVrPK06eEv49dj+yyYX5q50SvX/X8WBV8kdCKHj3lA==",
80
+ "shasum": "f56a4630825d2016c63add616d0dbbfe43ba8aa6",
81
+ "filename": "lando-drupal-1.3.0.tgz",
82
+ "unpackedSize": 12369725
83
83
  }
84
84
  }
@@ -1 +0,0 @@
1
- {"parent":null,"pid":1862,"argv":["/opt/hostedtoolcache/node/18.19.0/x64/bin/node","/home/runner/work/drupal/drupal/node_modules/.bin/mocha","--timeout","5000","test/**/*.spec.js"],"execArgv":[],"cwd":"/home/runner/work/drupal/drupal","time":1708488933068,"ppid":1851,"coverageFilename":"/home/runner/work/drupal/drupal/.nyc_output/2fa3fbd3-7ca0-4e2e-8cf3-3e35a2ba8f22.json","externalId":"","uuid":"2fa3fbd3-7ca0-4e2e-8cf3-3e35a2ba8f22","files":[]}
@@ -1 +0,0 @@
1
- {"parent":null,"pid":1851,"argv":["/opt/hostedtoolcache/node/18.19.0/x64/bin/node","/home/runner/work/drupal/drupal/node_modules/.bin/nyc","--reporter=html","--reporter=text","mocha","--timeout","5000","test/**/*.spec.js"],"execArgv":[],"cwd":"/home/runner/work/drupal/drupal","time":1708488932652,"ppid":1850,"coverageFilename":"/home/runner/work/drupal/drupal/.nyc_output/53e67f35-dbc9-471d-b81e-ec93eb363afe.json","externalId":"","uuid":"53e67f35-dbc9-471d-b81e-ec93eb363afe","files":["/home/runner/work/drupal/drupal/lib/utils.js","/home/runner/work/drupal/drupal/lib/warnings.js"]}
@@ -1 +0,0 @@
1
- {"parent":null,"pid":2099,"argv":["/opt/hostedtoolcache/node/18.19.0/x64/bin/node","/home/runner/work/php/php/node_modules/.bin/mocha","--timeout","5000","test/**/*.spec.js"],"execArgv":[],"cwd":"/home/runner/work/php/php","time":1702012297247,"ppid":2087,"coverageFilename":"/home/runner/work/php/php/.nyc_output/0d3f9936-7351-4e73-b720-0191b83fa2ed.json","externalId":"","uuid":"0d3f9936-7351-4e73-b720-0191b83fa2ed","files":[]}
@@ -1 +0,0 @@
1
- {"parent":null,"pid":2087,"argv":["/opt/hostedtoolcache/node/18.19.0/x64/bin/node","/home/runner/work/php/php/node_modules/.bin/nyc","--reporter=html","--reporter=text","mocha","--timeout","5000","test/**/*.spec.js"],"execArgv":[],"cwd":"/home/runner/work/php/php","time":1702012297042,"ppid":2086,"coverageFilename":"/home/runner/work/php/php/.nyc_output/ce923446-2865-4698-835b-17780656b791.json","externalId":"","uuid":"ce923446-2865-4698-835b-17780656b791","files":[]}
@@ -1 +0,0 @@
1
- {"parent":null,"pid":1966,"argv":["/opt/hostedtoolcache/node/18.19.0/x64/bin/node","/home/runner/work/postgres/postgres/node_modules/.bin/mocha","--timeout","5000","test/**/*.spec.js"],"execArgv":[],"cwd":"/home/runner/work/postgres/postgres","time":1702582254499,"ppid":1955,"coverageFilename":"/home/runner/work/postgres/postgres/.nyc_output/2687c51a-1087-45b1-b5dd-1c557d4a9030.json","externalId":"","uuid":"2687c51a-1087-45b1-b5dd-1c557d4a9030","files":[]}
@@ -1 +0,0 @@
1
- {"parent":null,"pid":1955,"argv":["/opt/hostedtoolcache/node/18.19.0/x64/bin/node","/home/runner/work/postgres/postgres/node_modules/.bin/nyc","--reporter=html","--reporter=text","mocha","--timeout","5000","test/**/*.spec.js"],"execArgv":[],"cwd":"/home/runner/work/postgres/postgres","time":1702582254328,"ppid":1954,"coverageFilename":"/home/runner/work/postgres/postgres/.nyc_output/8b1ac11a-c036-44b8-8ee5-b34875c4541c.json","externalId":"","uuid":"8b1ac11a-c036-44b8-8ee5-b34875c4541c","files":[]}