chisel-scripts 2.0.0-alpha.0 → 2.0.0-alpha.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/CHANGELOG.md +5 -0
- package/index.js +15 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
<!-- INSERT-NEW-ENTRIES-HERE -->
|
|
4
4
|
|
|
5
|
+
## 2.0.0-alpha.1 (2024-09-10)
|
|
6
|
+
|
|
7
|
+
- copy twig files ([67ff991](https://github.com/xfiveco/generator-chisel/commit/67ff991))
|
|
8
|
+
- fix whitespace ([9d58dba](https://github.com/xfiveco/generator-chisel/commit/9d58dba))
|
|
9
|
+
|
|
5
10
|
## 2.0.0-alpha.0 (2024-09-08)
|
|
6
11
|
|
|
7
12
|
- add block creator ([ea0e956](https://github.com/xfiveco/generator-chisel/commit/ea0e956))
|
package/index.js
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
function adjustWebpackConfig(baseConfig, directory) {
|
|
2
2
|
const { sync: glob } = require('fast-glob');
|
|
3
3
|
const pathMod = require('path');
|
|
4
|
+
const CopyWebpackPlugin = require(require.resolve('copy-webpack-plugin', {
|
|
5
|
+
paths: [directory],
|
|
6
|
+
}));
|
|
4
7
|
|
|
5
8
|
const src = pathMod.join(directory, 'src');
|
|
6
9
|
const isProduction = process.env.NODE_ENV === 'production';
|
|
@@ -52,6 +55,18 @@ function adjustWebpackConfig(baseConfig, directory) {
|
|
|
52
55
|
...baseConfig.optimization,
|
|
53
56
|
...(!isProduction && { runtimeChunk: 'single' }),
|
|
54
57
|
},
|
|
58
|
+
plugins: [
|
|
59
|
+
...baseConfig.plugins,
|
|
60
|
+
new CopyWebpackPlugin({
|
|
61
|
+
patterns: [
|
|
62
|
+
{
|
|
63
|
+
from: '**/*.twig',
|
|
64
|
+
context: 'src',
|
|
65
|
+
noErrorOnMissing: true,
|
|
66
|
+
},
|
|
67
|
+
],
|
|
68
|
+
}),
|
|
69
|
+
],
|
|
55
70
|
};
|
|
56
71
|
|
|
57
72
|
return updatedConfig;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "chisel-scripts",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.1",
|
|
4
4
|
"description": "TODO",
|
|
5
5
|
"bin": {
|
|
6
6
|
"chisel-scripts": "bin/chisel-scripts.js"
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"@wordpress/scripts": "^27.9.0"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "dc7eef31741ec96dfa1b73a9bb6b2b9e05d79908"
|
|
41
41
|
}
|