Skip to content

Commit

Permalink
Add changelog entries
Browse files Browse the repository at this point in the history
  • Loading branch information
gziolo committed Dec 23, 2024
1 parent fb7579b commit 2add76b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
5 changes: 5 additions & 0 deletions packages/scripts/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

## Unreleased

### Enhancements

- Recommend listing JavaScript entry points as paths passed to the `start` and `build` commands ([#68251](https://github.com/WordPress/gutenberg/pull/68251)).
- Introduce a new option `--source-path` to customize the source directory used with the `start` and `build` commands ([#68251](https://github.com/WordPress/gutenberg/pull/68251)).

## 30.7.0 (2024-12-11)

### Internal
Expand Down
6 changes: 4 additions & 2 deletions packages/scripts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -622,15 +622,17 @@ The `build` and `start` commands use [webpack](https://webpack.js.org/) behind t

### Listing entry points

The simplest way to list JavaScript entry points is to pass them as arguments for the command:
The simplest way to list JavaScript entry points is to pass them as arguments for the command.

_Example:_

```bash
wp-scripts build entry-one.js entry-two.js
```

### Automatic block.json detection and the source code directory

A convenient alternative for blocks is using automatic entry points detection. In that case, the source code directory (the default is `./src`) and its subdirectories are scanned for the existence of `block.json` files. If one or more are found, the JavaScript files listed in metadata are treated as entry points and will be output into corresponding folders in the `build` directory. The script fields in `block.json` should pass relative paths to `block.json` in the same folder.
A convenient alternative for blocks is using automatic entry point detection. In that case, the source code directory (the default is `./src`) and its subdirectories are scanned for the existence of `block.json` files. If one or more are found, the JavaScript files listed in metadata are treated as entry points and will be output into corresponding folders in the `build` directory. The script fields in `block.json` should pass relative paths to `block.json` in the same folder.

_Example:_

Expand Down

0 comments on commit 2add76b

Please sign in to comment.