Skip to content

Commit

Permalink
Clarify description of index.js file in block scaffolding lesson
Browse files Browse the repository at this point in the history
  • Loading branch information
ncoetzer committed Feb 14, 2025
1 parent 8572f2d commit 0beb93c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions training/Blocks/10-Using the Block Scaffold command.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,7 @@ After making your changes, save the file. Future blocks scaffolded using `npm ru
Instead of modifying existing blocks, you can **add new block types** (variants) inside `bin/create-block-template/index.js`. Variants allow you to introduce different configurations, such as an **interactive block**.

:::info
The `index.js` file inside `bin/create-block-template/` acts like a **`package.json` for block scaffolding**.
It defines the **default settings** and **variants** that determine the files, attributes, and dependencies a block includes.
The `index.js` file inside `bin/create-block-template/` contains all the information for dynamically building the **`block.json` file for the scaffolded blocks.** It defines the **default settings** and **variants** that determine the files, attributes, and dependencies a block includes.
:::

#### **Step 1: Define the variant**
Expand Down

0 comments on commit 0beb93c

Please sign in to comment.