| 1 |
{ |
| 2 |
"name": "cryptx", |
| 3 |
"version": "4.2.0", |
| 4 |
"description": "Build setup for the CryptX settings screen and the editor block. React and the component library come from WordPress itself, so only this plugin's own code is bundled.", |
| 5 |
"private": true, |
| 6 |
"license": "GPL-2.0-or-later", |
| 7 |
"comments": { |
| 8 |
"entry-points": "Both entry points are named on purpose. wp-scripts scans src/ for block.json files, and as soon as it finds one it uses ONLY the entry points it derives from them -- the default src/index.js is dropped without a word. Adding the block that way would have shipped a release whose settings screen renders nothing. Naming them explicitly wins over the scan (see getWebpackEntryPoints in @wordpress/scripts). The 'block/index' name is what puts the result next to the block.json copied to build/block/, which is the directory register_block_type() is pointed at." |
| 9 |
}, |
| 10 |
"scripts": { |
| 11 |
"build": "wp-scripts build index=src/index.js block/index=src/block/index.js", |
| 12 |
"start": "wp-scripts start index=src/index.js block/index=src/block/index.js", |
| 13 |
"lint:js": "wp-scripts lint-js src" |
| 14 |
}, |
| 15 |
"devDependencies": { |
| 16 |
"@wordpress/scripts": "^34.1.0" |
| 17 |
} |
| 18 |
} |
| 19 |
|