2020-08-13 09:55:19 +00:00
|
|
|
## TODO
|
|
|
|
|
2020-08-13 10:09:05 +00:00
|
|
|
* Add a basic attribute.
|
2020-08-13 09:55:19 +00:00
|
|
|
* Add some default components to `src/index.js`.
|
2020-08-14 13:12:54 +00:00
|
|
|
- In particular, most used UI controls (e.g., colour picker?).
|
|
|
|
- Will want an InspectorControls with a PanelBody
|
2020-08-16 16:35:43 +00:00
|
|
|
- Also want some BlockControls on there
|
2020-08-14 13:12:54 +00:00
|
|
|
- Must ensure they are easily able to be quickly removed.
|
2020-08-13 09:55:19 +00:00
|
|
|
|
2020-08-12 13:55:40 +00:00
|
|
|
## Usage
|
|
|
|
|
2020-08-13 09:46:00 +00:00
|
|
|
Edit `index.php`, `src/index.js` and `src/*.scss` files, so that the correct block name and
|
2020-08-12 19:21:01 +00:00
|
|
|
namespace are used.
|
|
|
|
|
2020-08-12 13:55:40 +00:00
|
|
|
```sh
|
|
|
|
npm install
|
|
|
|
|
|
|
|
# build and watch for development
|
|
|
|
npm run dev
|
|
|
|
|
|
|
|
# build for production
|
|
|
|
npm run build
|
|
|
|
```
|
|
|
|
|
2020-08-12 19:24:07 +00:00
|
|
|
The symbolic links to the WordPress default configuration files are required so
|
|
|
|
that code editors will use the correct linting configurations.
|