@ideasonpurpose/build-tools-wordpress 1.1.4 → 1.1.5
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/CHANGELOG.md +6 -0
- package/README.md +1 -1
- package/lib/buildConfig.js +0 -11
- package/lib/devserver-proxy.js +12 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file. Dates are d
|
|
|
4
4
|
|
|
5
5
|
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
6
6
|
|
|
7
|
+
#### v1.1.4
|
|
8
|
+
|
|
9
|
+
> 25 January 2024
|
|
10
|
+
|
|
11
|
+
- deps, formatting, debugging
|
|
12
|
+
|
|
7
13
|
#### v1.1.3
|
|
8
14
|
|
|
9
15
|
> 24 January 2024
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @ideasonpurpose/build-tools-wordpress
|
|
2
2
|
|
|
3
|
-
#### Version 1.1.
|
|
3
|
+
#### Version 1.1.5
|
|
4
4
|
|
|
5
5
|

|
|
6
6
|

|
package/lib/buildConfig.js
CHANGED
|
@@ -167,17 +167,6 @@ export async function buildConfig(configFile = { config: {} }) {
|
|
|
167
167
|
if (config.proxy === true) {
|
|
168
168
|
config.proxy = defaultConfig.proxy;
|
|
169
169
|
}
|
|
170
|
-
const localPort = await findLocalPort();
|
|
171
|
-
|
|
172
|
-
config.proxy = `http://${localPort.hostname}:${localPort.port}`;
|
|
173
|
-
console.log(
|
|
174
|
-
chalk.cyan.bold(
|
|
175
|
-
`FOUND THE PORT IN BUILDCONFIG ${localPort.port}`,
|
|
176
|
-
config.proxy,
|
|
177
|
-
),
|
|
178
|
-
);
|
|
179
|
-
|
|
180
|
-
/// TODO: Move the port-finding stuff in here?
|
|
181
170
|
|
|
182
171
|
return config;
|
|
183
172
|
}
|
package/lib/devserver-proxy.js
CHANGED
|
@@ -66,6 +66,18 @@ export async function devserverProxy(config) {
|
|
|
66
66
|
* Pass anything else straight through
|
|
67
67
|
*/
|
|
68
68
|
target = config.proxy;
|
|
69
|
+
|
|
70
|
+
// TODO: This obliterates any default values, sort out this setting.
|
|
71
|
+
|
|
72
|
+
const localPort = await findLocalPort();
|
|
73
|
+
|
|
74
|
+
target = `http://${localPort.hostname}:${localPort.port}`;
|
|
75
|
+
console.log(
|
|
76
|
+
chalk.cyan.bold(
|
|
77
|
+
`FOUND THE PORT IN BUILDCONFIG ${localPort.port}`,
|
|
78
|
+
target,
|
|
79
|
+
),
|
|
80
|
+
);
|
|
69
81
|
}
|
|
70
82
|
|
|
71
83
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ideasonpurpose/build-tools-wordpress",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.5",
|
|
4
4
|
"description": "Build scripts and dependencies for IOP's WordPress development environments.",
|
|
5
5
|
"homepage": "https://github.com/ideasonpurpose/build-tools-wordpress#readme",
|
|
6
6
|
"bugs": {
|