@ideasonpurpose/build-tools-wordpress 1.1.3 → 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 CHANGED
@@ -4,6 +4,20 @@ 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
+
13
+ #### v1.1.3
14
+
15
+ > 24 January 2024
16
+
17
+ - reconfigure imports, port-reporter to module, lots of deps
18
+ - add changelog, update readme (badges)
19
+ - fix path to port-reporter script
20
+
7
21
  #### v1.1.2
8
22
 
9
23
  > 23 January 2024
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @ideasonpurpose/build-tools-wordpress
2
2
 
3
- #### Version 1.1.3
3
+ #### Version 1.1.5
4
4
 
5
5
  ![NPM Version](https://img.shields.io/npm/v/%40ideasonpurpose%2Fbuild-tools-wordpress?logo=npm)
6
6
  ![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/ideasonpurpose/build-tools-wordpress/npm-publish.yml?logo=github&logoColor=white)
@@ -23,13 +23,13 @@ export class AfterDoneReporterPlugin {
23
23
  apply(compiler) {
24
24
  compiler.hooks.done.tapPromise(this.name, async (stats) => {
25
25
  if (this.config.echo) {
26
- // console.log(compiler);
26
+ // console.log(compiler.options, stats);
27
27
  const { host, port } = compiler.options.devServer;
28
28
  const { startTime, endTime, modules, assetsInfo } = stats.compilation;
29
29
  const hostname = host === "0.0.0.0" ? "localhost" : host;
30
30
 
31
31
  const time = chalk.yellow.bold(
32
- humanizeDuration(endTime - startTime, { units: ["h", "m", "s"] })
32
+ humanizeDuration(endTime - startTime, { units: ["h", "m", "s"] }),
33
33
  );
34
34
  const mCount = chalk.yellow(modules.size);
35
35
  const aCount = chalk.yellow.bold(assetsInfo.size);
@@ -43,7 +43,7 @@ export class AfterDoneReporterPlugin {
43
43
  .join("\n" + this.config.prefix + " ");
44
44
 
45
45
  setTimeout(() =>
46
- console.log("\n" + this.config.prefix + " " + messages)
46
+ console.log("\n" + this.config.prefix + " " + messages),
47
47
  );
48
48
  }
49
49
  });
@@ -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
  }
@@ -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",
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": {
@@ -44,16 +44,19 @@
44
44
  "body-parser": "^1.20.2",
45
45
  "caniuse-lite": "^1.0.30001579",
46
46
  "chalk": "^5.3.0",
47
+ "chalk-cli": "^5.0.1",
48
+ "classnames": "^2.5.1",
47
49
  "cli-truncate": "^4.0.0",
48
50
  "copy-webpack-plugin": "^12.0.2",
49
51
  "cosmiconfig": "^9.0.0",
52
+ "cross-env": "^7.0.3",
50
53
  "css-loader": "^6.9.1",
51
54
  "cssnano": "^6.0.1",
52
55
  "del": "^7.1.0",
53
56
  "dotenv": "^16.4.0",
54
- "esbuild": "^0.19.12",
55
57
  "esbuild-loader": "^4.0.3",
56
58
  "eslint": "^8.56.0",
59
+ "eslint-plugin-react": "^7.33.2",
57
60
  "filesize": "^10.0.12",
58
61
  "fs-extra": "^11.1.1",
59
62
  "globby": "^14.0.0",
@@ -66,6 +69,7 @@
66
69
  "node-sass": "^9.0.0",
67
70
  "postcss": "^8.4.29",
68
71
  "postcss-loader": "^8.0.0",
72
+ "postcss-scss": "^4.0.9",
69
73
  "prettier": "^3.2.4",
70
74
  "prettier-eslint": "^16.3.0",
71
75
  "pretty-hrtime": "^1.0.3",
@@ -79,6 +83,9 @@
79
83
  "source-map-explorer": "^2.5.3",
80
84
  "string-length": "^6.0.0",
81
85
  "style-loader": "^3.3.3",
86
+ "stylelint": "^16.2.0",
87
+ "stylelint-order": "^6.0.4",
88
+ "stylelint-prettier": "^5.0.0",
82
89
  "svgo": "^3.0.2",
83
90
  "svgo-loader": "^4.0.0",
84
91
  "version-everything": "^0.11.0",