@ideasonpurpose/build-tools-wordpress 2.3.2 → 2.4.2
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/.github/workflows/npm-publish.yml +8 -5
- package/CHANGELOG.md +20 -0
- package/README.md +9 -2
- package/config/webpack.config.js +4 -1
- package/package.json +19 -19
|
@@ -4,6 +4,10 @@ on:
|
|
|
4
4
|
push:
|
|
5
5
|
tags: ["v*"]
|
|
6
6
|
|
|
7
|
+
permissions:
|
|
8
|
+
id-token: write # Required for OIDC
|
|
9
|
+
contents: read
|
|
10
|
+
|
|
7
11
|
jobs:
|
|
8
12
|
publish:
|
|
9
13
|
name: Build and publish to npm
|
|
@@ -16,10 +20,9 @@ jobs:
|
|
|
16
20
|
# https://github.com/actions/setup-node
|
|
17
21
|
- uses: actions/setup-node@v4
|
|
18
22
|
with:
|
|
19
|
-
node-version:
|
|
20
|
-
registry-url: https://registry.npmjs.org
|
|
23
|
+
node-version: '24'
|
|
24
|
+
registry-url: 'https://registry.npmjs.org'
|
|
21
25
|
|
|
22
26
|
# - run: npm ci
|
|
23
|
-
- run: npm publish
|
|
24
|
-
|
|
25
|
-
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
|
|
27
|
+
- run: npm publish --provenance --access public
|
|
28
|
+
|
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,26 @@ 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
|
+
#### v2.4.1
|
|
8
|
+
|
|
9
|
+
> 22 December 2025
|
|
10
|
+
|
|
11
|
+
- update workflow for trusted publishing
|
|
12
|
+
|
|
13
|
+
#### v2.4.0
|
|
14
|
+
|
|
15
|
+
> 21 December 2025
|
|
16
|
+
|
|
17
|
+
- bump deps
|
|
18
|
+
- Enable loading Sass files from node_modules
|
|
19
|
+
|
|
20
|
+
#### v2.3.2
|
|
21
|
+
|
|
22
|
+
> 3 November 2025
|
|
23
|
+
|
|
24
|
+
- bump deps
|
|
25
|
+
- watch tweaks, debugging, formatting and cleanup
|
|
26
|
+
|
|
7
27
|
#### v2.3.1
|
|
8
28
|
|
|
9
29
|
> 21 October 2025
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @ideasonpurpose/build-tools-wordpress
|
|
2
2
|
|
|
3
|
-
#### Version 2.
|
|
3
|
+
#### Version 2.4.2
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/@ideasonpurpose/build-tools-wordpress)
|
|
6
6
|
[](https://github.com/ideasonpurpose/build-tools-wordpress#readme)
|
|
@@ -50,6 +50,14 @@ npm chokidar-cli "../../build-tools-wordpress/**/*" -c "npm install"
|
|
|
50
50
|
|
|
51
51
|
This project expects an entirely ES Module based environment and specifies all dependencies using standard ESM import syntax. Projects importing this file should set `"type": "module"` in their package.json files.
|
|
52
52
|
|
|
53
|
+
#### Sass imports
|
|
54
|
+
|
|
55
|
+
Sass can import stylesheet files directly from npm packages. Use the full path from node_modules like this:
|
|
56
|
+
|
|
57
|
+
```scss
|
|
58
|
+
@use "@ideasonpurpose/build-tools-wordpress/example/package-style";
|
|
59
|
+
```
|
|
60
|
+
|
|
53
61
|
#### Publishing to [npm](https://www.npmjs.com/package/@ideasonpurpose/build-tools-wordpress)
|
|
54
62
|
|
|
55
63
|
A GitHub action will auto-publish version-tagged releases to npm. In order to publish, the repository must have an `NPM_TOKEN` secret set with the token from npm. [Log into npmjs.org](https://www.npmjs.com/login) with a publish-authorized account, then find the token page linked from the Profile page sidebar. Generate a new token and update the repository secret.
|
|
@@ -63,4 +71,3 @@ A GitHub action will auto-publish version-tagged releases to npm. In order to pu
|
|
|
63
71
|
<a href="https://www.ideasonpurpose.com"><img src="https://raw.githubusercontent.com/ideasonpurpose/ideasonpurpose/master/iop-logo-white-on-black-88px.png" height="44" align="top" alt="IOP Logo"></a><img src="https://raw.githubusercontent.com/ideasonpurpose/ideasonpurpose/master/spacer.png" align="middle" width="4" height="54"> This project is actively developed and used in production at <a href="https://www.ideasonpurpose.com">Ideas On Purpose</a>.
|
|
64
72
|
|
|
65
73
|
<!-- END IOP CREDIT BLURB -->
|
|
66
|
-
```
|
package/config/webpack.config.js
CHANGED
|
@@ -172,7 +172,10 @@ export default async (env) => {
|
|
|
172
172
|
sassOptions: {
|
|
173
173
|
api: "modern-compiler",
|
|
174
174
|
|
|
175
|
-
loadPaths: [
|
|
175
|
+
loadPaths: [
|
|
176
|
+
path.resolve(config.src, "sass"),
|
|
177
|
+
path.resolve(siteDir, "node_modules"),
|
|
178
|
+
],
|
|
176
179
|
},
|
|
177
180
|
},
|
|
178
181
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ideasonpurpose/build-tools-wordpress",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.4.2",
|
|
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": {
|
|
@@ -40,13 +40,13 @@
|
|
|
40
40
|
"@rollup/plugin-json": "^6.1.0",
|
|
41
41
|
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
42
42
|
"@svgr/webpack": "^8.1.0",
|
|
43
|
-
"@wordpress/dependency-extraction-webpack-plugin": "^6.
|
|
43
|
+
"@wordpress/dependency-extraction-webpack-plugin": "^6.36.0",
|
|
44
44
|
"ansi-html": "^0.0.9",
|
|
45
45
|
"archiver": "^7.0.1",
|
|
46
46
|
"auto-changelog": "^2.5.0",
|
|
47
|
-
"autoprefixer": "^10.4.
|
|
47
|
+
"autoprefixer": "^10.4.23",
|
|
48
48
|
"babel-loader": "^10.0.0",
|
|
49
|
-
"caniuse-lite": "^1.0.
|
|
49
|
+
"caniuse-lite": "^1.0.30001761",
|
|
50
50
|
"chalk": "^5.6.2",
|
|
51
51
|
"chalk-cli": "^6.0.0",
|
|
52
52
|
"classnames": "^2.5.1",
|
|
@@ -57,14 +57,14 @@
|
|
|
57
57
|
"css-loader": "^7.1.2",
|
|
58
58
|
"cssnano": "^7.1.2",
|
|
59
59
|
"dotenv": "^17.2.3",
|
|
60
|
-
"esbuild-loader": "^4.4.
|
|
61
|
-
"eslint": "^9.39.
|
|
60
|
+
"esbuild-loader": "^4.4.1",
|
|
61
|
+
"eslint": "^9.39.2",
|
|
62
62
|
"filesize": "^11.0.13",
|
|
63
|
-
"fs-extra": "^11.3.
|
|
64
|
-
"globby": "^
|
|
65
|
-
"html-webpack-plugin": "^5.6.
|
|
63
|
+
"fs-extra": "^11.3.3",
|
|
64
|
+
"globby": "^16.0.0",
|
|
65
|
+
"html-webpack-plugin": "^5.6.5",
|
|
66
66
|
"http-proxy": "^1.18.1",
|
|
67
|
-
"humanize-duration": "^3.33.
|
|
67
|
+
"humanize-duration": "^3.33.2",
|
|
68
68
|
"image-minimizer-webpack-plugin": "^4.1.4",
|
|
69
69
|
"is-text-path": "^3.0.0",
|
|
70
70
|
"lodash": "^4.17.21",
|
|
@@ -73,22 +73,22 @@
|
|
|
73
73
|
"postcss": "^8.5.6",
|
|
74
74
|
"postcss-loader": "^8.2.0",
|
|
75
75
|
"postcss-scss": "^4.0.9",
|
|
76
|
-
"prettier": "^3.
|
|
76
|
+
"prettier": "^3.7.4",
|
|
77
77
|
"pretty-hrtime": "^1.0.3",
|
|
78
|
-
"read-package-up": "^
|
|
78
|
+
"read-package-up": "^12.0.0",
|
|
79
79
|
"replacestream": "^4.0.3",
|
|
80
|
-
"sass-embedded": "^1.
|
|
80
|
+
"sass-embedded": "^1.97.1",
|
|
81
81
|
"sass-loader": "^16.0.6",
|
|
82
82
|
"semver": "^7.7.3",
|
|
83
|
-
"sharp": "^0.34.
|
|
84
|
-
"sort-package-json": "^3.
|
|
83
|
+
"sharp": "^0.34.5",
|
|
84
|
+
"sort-package-json": "^3.6.0",
|
|
85
85
|
"string-length": "^6.0.0",
|
|
86
86
|
"style-loader": "^4.0.0",
|
|
87
87
|
"svgo": "^4.0.0",
|
|
88
88
|
"svgo-loader": "^4.0.0",
|
|
89
89
|
"version-everything": "^0.11.4",
|
|
90
|
-
"webpack": "^5.
|
|
91
|
-
"webpack-bundle-analyzer": "^
|
|
90
|
+
"webpack": "^5.104.1",
|
|
91
|
+
"webpack-bundle-analyzer": "^5.1.0",
|
|
92
92
|
"webpack-dev-middleware": "^7.4.5",
|
|
93
93
|
"webpack-dev-server": "^5.2.2",
|
|
94
94
|
"webpack-manifest-plugin": "^6.0.1"
|
|
@@ -97,8 +97,8 @@
|
|
|
97
97
|
"webpack-cli": "^6.0.1"
|
|
98
98
|
},
|
|
99
99
|
"devDependencies": {
|
|
100
|
-
"@vitest/coverage-v8": "^4.0.
|
|
101
|
-
"vitest": "^4.0.
|
|
100
|
+
"@vitest/coverage-v8": "^4.0.16",
|
|
101
|
+
"vitest": "^4.0.16"
|
|
102
102
|
},
|
|
103
103
|
"version-everything": {
|
|
104
104
|
"files": [
|