@lando/wordpress 1.4.0 → 1.4.1
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.
- package/.lando.yml +19 -9
- package/.nyc_output/processinfo/0e18f58f-cfbf-4b4c-be35-e69b76cbb5b2.json +1 -0
- package/.nyc_output/processinfo/65d20d75-7644-4e68-906d-6357eab3b219.json +1 -0
- package/.nyc_output/processinfo/index.json +1 -1
- package/CHANGELOG.md +11 -0
- package/builders/wordpress.js +18 -6
- package/coverage/index.html +1 -1
- package/package.json +5 -5
- package/.nyc_output/processinfo/0298b2c4-77fd-4b4a-83d3-e81717e44301.json +0 -1
- package/.nyc_output/processinfo/4778d34a-15d5-4032-993f-a2c190116380.json +0 -1
- /package/.nyc_output/{0298b2c4-77fd-4b4a-83d3-e81717e44301.json → 0e18f58f-cfbf-4b4c-be35-e69b76cbb5b2.json} +0 -0
- /package/.nyc_output/{4778d34a-15d5-4032-993f-a2c190116380.json → 65d20d75-7644-4e68-906d-6357eab3b219.json} +0 -0
package/.lando.yml
CHANGED
|
@@ -1,14 +1,24 @@
|
|
|
1
|
-
name:
|
|
1
|
+
name: docs.wordpress
|
|
2
|
+
proxy:
|
|
3
|
+
cli:
|
|
4
|
+
- docs.wordpress.lndo.site:5173
|
|
2
5
|
services:
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
6
|
+
cli:
|
|
7
|
+
api: 4
|
|
8
|
+
image: node:18
|
|
9
|
+
command: sleep infinity
|
|
10
|
+
ports:
|
|
11
|
+
- 5173:5173/http
|
|
7
12
|
scanner: false
|
|
8
|
-
|
|
9
|
-
|
|
13
|
+
user: node
|
|
14
|
+
build:
|
|
15
|
+
app: |
|
|
16
|
+
npm install
|
|
10
17
|
tooling:
|
|
11
18
|
node:
|
|
12
|
-
service:
|
|
19
|
+
service: cli
|
|
13
20
|
npm:
|
|
14
|
-
service:
|
|
21
|
+
service: cli
|
|
22
|
+
vitepress:
|
|
23
|
+
service: cli
|
|
24
|
+
cmd: npx vitepress
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"parent":null,"pid":2120,"argv":["/opt/hostedtoolcache/node/18.20.4/x64/bin/node","/home/runner/work/wordpress/wordpress/node_modules/.bin/mocha","--timeout","5000","test/**/*.spec.js"],"execArgv":[],"cwd":"/home/runner/work/wordpress/wordpress","time":1725636560209,"ppid":2109,"coverageFilename":"/home/runner/work/wordpress/wordpress/.nyc_output/0e18f58f-cfbf-4b4c-be35-e69b76cbb5b2.json","externalId":"","uuid":"0e18f58f-cfbf-4b4c-be35-e69b76cbb5b2","files":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"parent":null,"pid":2109,"argv":["/opt/hostedtoolcache/node/18.20.4/x64/bin/node","/home/runner/work/wordpress/wordpress/node_modules/.bin/nyc","--reporter=html","--reporter=text","mocha","--timeout","5000","test/**/*.spec.js"],"execArgv":[],"cwd":"/home/runner/work/wordpress/wordpress","time":1725636560048,"ppid":2108,"coverageFilename":"/home/runner/work/wordpress/wordpress/.nyc_output/65d20d75-7644-4e68-906d-6357eab3b219.json","externalId":"","uuid":"65d20d75-7644-4e68-906d-6357eab3b219","files":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"processes":{"
|
|
1
|
+
{"processes":{"0e18f58f-cfbf-4b4c-be35-e69b76cbb5b2":{"parent":null,"children":[]},"65d20d75-7644-4e68-906d-6357eab3b219":{"parent":null,"children":[]}},"files":{},"externalIds":{}}
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
## {{ UNRELEASED_VERSION }} - [{{ UNRELEASED_DATE }}]({{ UNRELEASED_LINK }})
|
|
2
2
|
|
|
3
|
+
## v1.4.1 - [September 6, 2024](https://github.com/lando/wordpress/releases/tag/v1.4.1)
|
|
4
|
+
|
|
5
|
+
## Bug Fixes
|
|
6
|
+
|
|
7
|
+
* Fixed bug causing default `proxy` settings to be clobbered by user specified ones
|
|
8
|
+
|
|
9
|
+
## Internal
|
|
10
|
+
|
|
11
|
+
* Updated DevOps to use new `lando exec`
|
|
12
|
+
* Updated `ubuntu` test runners to `24.04`
|
|
13
|
+
|
|
3
14
|
## v1.4.0 - [May 27, 2024](https://github.com/lando/wordpress/releases/tag/v1.4.0)
|
|
4
15
|
|
|
5
16
|
* Updated mariadb plugin [#51](https://github.com/lando/mariadb/issues/51)
|
package/builders/wordpress.js
CHANGED
|
@@ -48,6 +48,18 @@ const getServices = options => ({
|
|
|
48
48
|
},
|
|
49
49
|
});
|
|
50
50
|
|
|
51
|
+
/*
|
|
52
|
+
* Helper to get proxy config
|
|
53
|
+
*/
|
|
54
|
+
const getProxy = (options, proxyService = 'appserver') => {
|
|
55
|
+
// get any intial proxy stuff for proxyService
|
|
56
|
+
const urls = _.get(options, `_app.config.proxy.${proxyService}`, []);
|
|
57
|
+
// add
|
|
58
|
+
urls.push(`${options.app}.${options._app._config.domain}`);
|
|
59
|
+
// return
|
|
60
|
+
return {[proxyService]: _.uniq(_.compact(urls))};
|
|
61
|
+
};
|
|
62
|
+
|
|
51
63
|
/*
|
|
52
64
|
* Helper to get service config
|
|
53
65
|
*/
|
|
@@ -249,19 +261,19 @@ module.exports = {
|
|
|
249
261
|
'/usr/local/bin/wp',
|
|
250
262
|
getWpStatusCheck(options.version),
|
|
251
263
|
));
|
|
252
|
-
// Rebase on top of any default config we might already have
|
|
253
|
-
options.defaultFiles = _.merge({}, getConfigDefaults(_.cloneDeep(options)), options.defaultFiles);
|
|
254
264
|
|
|
255
|
-
options.services = _.merge({}, getServices(options), options.services);
|
|
256
|
-
options.tooling = _.merge({}, getTooling(options), options.tooling);
|
|
257
265
|
// Switch the proxy if needed
|
|
258
266
|
if (!_.has(options, 'proxyService')) {
|
|
259
267
|
if (_.startsWith(options.via, 'nginx')) options.proxyService = 'appserver_nginx';
|
|
260
268
|
else if (_.startsWith(options.via, 'apache')) options.proxyService = 'appserver';
|
|
261
269
|
}
|
|
262
|
-
options.proxy = _.set(options.proxy, options.proxyService, [`${options.app}.${options._app._config.domain}`]);
|
|
263
270
|
|
|
264
|
-
//
|
|
271
|
+
// Rebase on top of any default config we might already have
|
|
272
|
+
options.defaultFiles = _.merge({}, getConfigDefaults(_.cloneDeep(options)), options.defaultFiles);
|
|
273
|
+
options.proxy = _.merge({}, getProxy(options, options.proxyService), options.proxy);
|
|
274
|
+
options.services = _.merge({}, getServices(options), options.services);
|
|
275
|
+
options.tooling = _.merge({}, getTooling(options), options.tooling);
|
|
276
|
+
|
|
265
277
|
// Send downstream
|
|
266
278
|
super(id, options);
|
|
267
279
|
};
|
package/coverage/index.html
CHANGED
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
87
87
|
Code coverage generated by
|
|
88
88
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
89
|
-
at 2024-
|
|
89
|
+
at 2024-09-06T15:29:20.422Z
|
|
90
90
|
</div>
|
|
91
91
|
<script src="prettify.js"></script>
|
|
92
92
|
<script>
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lando/wordpress",
|
|
3
3
|
"description": "A Lando plugin that provides a tight integration with WordPress.",
|
|
4
|
-
"version": "1.4.
|
|
4
|
+
"version": "1.4.1",
|
|
5
5
|
"author": "Mike Pirog @pirog",
|
|
6
6
|
"license": "GPL-3.0",
|
|
7
7
|
"repository": "lando/wordpress",
|
|
@@ -75,9 +75,9 @@
|
|
|
75
75
|
"lodash"
|
|
76
76
|
],
|
|
77
77
|
"dist": {
|
|
78
|
-
"integrity": "sha512-
|
|
79
|
-
"shasum": "
|
|
80
|
-
"filename": "lando-wordpress-1.4.
|
|
81
|
-
"unpackedSize":
|
|
78
|
+
"integrity": "sha512-gV4jlvh8EQb9vk5R34Mgw2025PeYFTby1eg3D8UvcrE1rozFftYhdnuy0NszYYAHL68vUurHErnA831dNIXZ2g==",
|
|
79
|
+
"shasum": "c8d8afe9ce1a6e60ba373c7df622ba7b903d6e6d",
|
|
80
|
+
"filename": "lando-wordpress-1.4.1.tgz",
|
|
81
|
+
"unpackedSize": 13718334
|
|
82
82
|
}
|
|
83
83
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"parent":null,"pid":2014,"argv":["/opt/hostedtoolcache/node/18.20.2/x64/bin/node","/home/runner/work/wordpress/wordpress/node_modules/.bin/mocha","--timeout","5000","test/**/*.spec.js"],"execArgv":[],"cwd":"/home/runner/work/wordpress/wordpress","time":1716837857253,"ppid":2003,"coverageFilename":"/home/runner/work/wordpress/wordpress/.nyc_output/0298b2c4-77fd-4b4a-83d3-e81717e44301.json","externalId":"","uuid":"0298b2c4-77fd-4b4a-83d3-e81717e44301","files":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"parent":null,"pid":2003,"argv":["/opt/hostedtoolcache/node/18.20.2/x64/bin/node","/home/runner/work/wordpress/wordpress/node_modules/.bin/nyc","--reporter=html","--reporter=text","mocha","--timeout","5000","test/**/*.spec.js"],"execArgv":[],"cwd":"/home/runner/work/wordpress/wordpress","time":1716837857098,"ppid":2002,"coverageFilename":"/home/runner/work/wordpress/wordpress/.nyc_output/4778d34a-15d5-4032-993f-a2c190116380.json","externalId":"","uuid":"4778d34a-15d5-4032-993f-a2c190116380","files":[]}
|
|
File without changes
|
|
File without changes
|