chisel-scripts 2.0.0-alpha.0 → 2.0.0-alpha.3.0
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 +13 -0
- package/composer.phar +0 -0
- package/index.js +15 -0
- package/lib/extensions/stylesheets.mjs +1 -2
- package/package.json +2 -2
- package/yarn-error.log +0 -15044
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
<!-- INSERT-NEW-ENTRIES-HERE -->
|
|
4
4
|
|
|
5
|
+
## 2.0.0-alpha.3.0 (2024-10-07)
|
|
6
|
+
|
|
7
|
+
- update chisel-scripts version ([2957e4c](https://github.com/xfiveco/generator-chisel/commit/2957e4c))
|
|
8
|
+
|
|
9
|
+
## 2.0.0-alpha.2 (2024-10-07)
|
|
10
|
+
|
|
11
|
+
- fix styles file watching on mac ([d2cfca8](https://github.com/xfiveco/generator-chisel/commit/d2cfca8))
|
|
12
|
+
|
|
13
|
+
## 2.0.0-alpha.1 (2024-09-10)
|
|
14
|
+
|
|
15
|
+
- copy twig files ([67ff991](https://github.com/xfiveco/generator-chisel/commit/67ff991))
|
|
16
|
+
- fix whitespace ([9d58dba](https://github.com/xfiveco/generator-chisel/commit/9d58dba))
|
|
17
|
+
|
|
5
18
|
## 2.0.0-alpha.0 (2024-09-08)
|
|
6
19
|
|
|
7
20
|
- add block creator ([ea0e956](https://github.com/xfiveco/generator-chisel/commit/ea0e956))
|
package/composer.phar
CHANGED
|
Binary file
|
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;
|
|
@@ -42,8 +42,7 @@ export const start = async (api) => {
|
|
|
42
42
|
const stylesDir = api.resolve('src/styles');
|
|
43
43
|
const pattern = convertPathToPattern(stylesDir) + '/*/**/*.scss';
|
|
44
44
|
|
|
45
|
-
const watcher = chokidar.watch(
|
|
46
|
-
persistent: false,
|
|
45
|
+
const watcher = chokidar.watch(pattern, {
|
|
47
46
|
ignoreInitial: true,
|
|
48
47
|
});
|
|
49
48
|
watcher.on('add', () => build(api));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "chisel-scripts",
|
|
3
|
-
"version": "2.0.0-alpha.0",
|
|
3
|
+
"version": "2.0.0-alpha.3.0",
|
|
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": "ad109c10db57cab568c05a4b9057004c3323c271"
|
|
41
41
|
}
|