generator-chisel 2.4.3 → 2.4.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
@@ -2,6 +2,16 @@
2
2
 
3
3
  <!-- INSERT-NEW-ENTRIES-HERE -->
4
4
 
5
+ ## <small>2.4.5 (2026-04-24)</small>
6
+
7
+ - fix assets and twig components issues ([c6a07d3](https://github.com/xfiveco/generator-chisel/commit/c6a07d3))
8
+ - update theme version ([8671597](https://github.com/xfiveco/generator-chisel/commit/8671597))
9
+
10
+ ## <small>2.4.4 (2026-03-20)</small>
11
+
12
+ - Update readme, fix husky overwrite ([a24f08f](https://github.com/xfiveco/generator-chisel/commit/a24f08f))
13
+ - Update theme version ([41ab516](https://github.com/xfiveco/generator-chisel/commit/41ab516))
14
+
5
15
  ## <small>2.4.3 (2026-03-04)</small>
6
16
 
7
17
  - fix conditional enqueue, add filre hooks for defer, async, preload, add phcbf ([3befdb5](https://github.com/xfiveco/generator-chisel/commit/3befdb5))
package/README.md CHANGED
@@ -2,7 +2,16 @@
2
2
 
3
3
  [![npm](https://img.shields.io/npm/v/generator-chisel)](https://www.npmjs.com/package/generator-chisel)
4
4
 
5
- Chisel is a development framework for creating easy to maintain and fast WordPress websites.
5
+ Chisel is a development framework for creating easy to maintain and fast WordPress websites. It scaffolds a complete project with a modern stack — Webpack, Timber, and ITCSS — so you can focus on building rather than configuring.
6
+
7
+ Get started with:
8
+
9
+ ```bash
10
+ npx generator-chisel
11
+ ```
12
+
13
+ For full documentation visit [getchisel.co](https://getchisel.co/).
6
14
 
7
15
  ## License
16
+
8
17
  Chisel is licensed under [MIT License](LICENSE).
@@ -1,8 +1,8 @@
1
1
  # Chisel WordPress Theme
2
2
 
3
- ## WordPress Starter Theme based on Timber library
3
+ A WordPress starter theme built on [Timber](https://timber.github.io/docs/) (Twig templating), Webpack, and ITCSS. Part of the [Chisel](https://getchisel.co/) development framework — scaffolded automatically via `npx generator-chisel`.
4
4
 
5
- Chisel is a custom WordPress development framework we built to make developers’ lives easier. It streamlines theme development with a modern stack — Webpack, Timber, and ITCSS — ensuring faster coding, cleaner structure, and more maintainable projects.
5
+ For full documentation visit [getchisel.co](https://getchisel.co/).
6
6
 
7
7
  ## Installation
8
8
 
@@ -296,7 +296,7 @@ final class Assets {
296
296
  $this->enqueue_style( $style_handle, $args );
297
297
 
298
298
  // Enqueue js file for fast refresh of the css file.
299
- $this->enqueue_style_js_for_dev( $handle );
299
+ $this->enqueue_style_js_for_dev( $handle, $args );
300
300
  }
301
301
  }
302
302
  }
@@ -328,7 +328,7 @@ final class Assets {
328
328
  $this->enqueue_style( $style_handle, $args );
329
329
 
330
330
  // Enqueue js file for fast refresh of the css file.
331
- $this->enqueue_style_js_for_dev( $handle );
331
+ $this->enqueue_style_js_for_dev( $handle, $args );
332
332
  }
333
333
  }
334
334
  }
@@ -350,7 +350,7 @@ final class Assets {
350
350
  $this->enqueue_style( $style_handle, $args );
351
351
 
352
352
  // Enqueue js file for fast refresh of the css file.
353
- $this->enqueue_style_js_for_dev( $handle );
353
+ $this->enqueue_style_js_for_dev( $handle, $args );
354
354
  }
355
355
  }
356
356
  }
@@ -383,7 +383,7 @@ final class Assets {
383
383
  $this->enqueue_style( $style_handle, $args );
384
384
 
385
385
  // Enqueue js file for fast refresh of the css file.
386
- $this->enqueue_style_js_for_dev( $handle );
386
+ $this->enqueue_style_js_for_dev( $handle, $args );
387
387
  }
388
388
  }
389
389
  }
@@ -425,7 +425,7 @@ final class Assets {
425
425
  $this->enqueue_style( $style_handle, $args );
426
426
 
427
427
  // Enqueue js file for fast refresh of the css file.
428
- $this->enqueue_style_js_for_dev( $handle );
428
+ $this->enqueue_style_js_for_dev( $handle, $args );
429
429
  }
430
430
  }
431
431
  }
@@ -728,10 +728,11 @@ final class Assets {
728
728
  * Enqueue style for development (fast refresh) mode.
729
729
  *
730
730
  * @param string $handle
731
+ * @param array $args
731
732
  *
732
733
  * @return void
733
734
  */
734
- private function enqueue_style_js_for_dev( string $handle ): void {
735
+ private function enqueue_style_js_for_dev( string $handle, array $args = array() ): void {
735
736
  if ( ThemeHelpers::is_fast_refresh() ) {
736
737
  $enqueue = true;
737
738
 
@@ -11,7 +11,7 @@ use Chisel\Helpers\ImageHelpers;
11
11
  use Chisel\Helpers\ThemeHelpers;
12
12
  use Chisel\Helpers\WoocommerceHelpers;
13
13
  use Chisel\Helpers\YoastHelpers;
14
- use Chisel\WP\Components;
14
+ use Chisel\Timber\Components;
15
15
 
16
16
  /**
17
17
  * Class used to extend Timber functionality.
@@ -8,7 +8,7 @@
8
8
  height: 1px;
9
9
  padding: 0;
10
10
  overflow: hidden;
11
- clip: rect(0, 0, 0, 0);
11
+ clip-path: inset(50%);
12
12
  white-space: nowrap;
13
13
  border: 0;
14
14
  }
@@ -24,7 +24,7 @@
24
24
  width: auto;
25
25
  height: auto;
26
26
  overflow: visible;
27
- clip: auto;
27
+ clip-path: none;
28
28
  white-space: normal;
29
29
  }
30
30
  }
@@ -3,7 +3,7 @@
3
3
  * Theme URI: https://www.getchisel.co/
4
4
  * Author: <%= app.author %>
5
5
  * Description: Chisel Wordpress Starter Theme based on Timber library.
6
- * Version: 2.4.3
6
+ * Version: 2.4.5
7
7
  * License: GNU General Public License v2 or later
8
8
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
9
  * Tags: chisel, custom, starter, theme, WordPress
@@ -108,6 +108,14 @@ module.exports = async (api) => {
108
108
  { cwd: api.resolve(app.themePath) },
109
109
  );
110
110
 
111
+ // Restore prepare script after coding-standards may have overwritten it
112
+ {
113
+ const themePkgPath = api.resolve(app.themePath, 'package.json');
114
+ const themePkg = JSON.parse(await fs.readFile(themePkgPath, 'utf8'));
115
+ themePkg.scripts.prepare = 'chisel-scripts husky-init || node -e ""';
116
+ await fs.writeFile(themePkgPath, JSON.stringify(themePkg, null, 2) + '\n');
117
+ }
118
+
111
119
  await api.modifyFile(
112
120
  '.devcontainer/devcontainer.json',
113
121
  async (body) => {
@@ -1,5 +1,5 @@
1
1
  module.exports = {
2
2
  'chisel-scripts': '2.2.1',
3
3
  'chisel-shared-utils': '2.0.0-alpha.1',
4
- 'generator-chisel': '2.4.3',
4
+ 'generator-chisel': '2.4.5',
5
5
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "generator-chisel",
3
- "version": "2.4.3",
3
+ "version": "2.4.5",
4
4
  "description": "A generator for scaffolding front-end and WordPress projects",
5
5
  "bin": {
6
6
  "chisel": "bin/chisel.js"
@@ -37,5 +37,5 @@
37
37
  "tinyqueue": "^2.0.3",
38
38
  "update-notifier": "^4.1.0"
39
39
  },
40
- "gitHead": "89f5b343031552aed2de45483184406f31526727"
40
+ "gitHead": "195a7b74cb0d37b0675b2385ad790351f3c01ab9"
41
41
  }