2021-10-17 17:34:55 +02:00
|
|
|
***
|
|
|
|
|
|
|
|
## title: parts
|
2021-08-25 16:09:31 +02:00
|
|
|
|
|
|
|
```js
|
|
|
|
parts: [
|
|
|
|
"front",
|
|
|
|
"back"
|
|
|
|
]
|
|
|
|
```
|
|
|
|
|
|
|
|
An array that lists your (additional) pattern parts. The name must be the key the `pattern.parts` object.
|
|
|
|
|
|
|
|
<Tip>
|
|
|
|
|
|
|
|
###### This does not need to be an exhaustive list of all parts in your pattern.
|
|
|
|
|
|
|
|
This list of parts is needed for the `draft()` method to figure out what
|
|
|
|
parts need to be drafted.
|
2021-10-17 17:34:55 +02:00
|
|
|
So if parts are included in the `dependencies`, `inject`, or `hide` configuration,
|
2021-08-25 16:09:31 +02:00
|
|
|
there's no need to include them here, as we already know of their existence.
|
|
|
|
|
|
|
|
</Tip>
|