2021-10-17 18:26:00 +02:00
|
|
|
---
|
2021-08-25 16:09:31 +02:00
|
|
|
title: Pattern configuration file
|
2021-10-17 18:26:00 +02:00
|
|
|
---
|
2021-08-25 16:09:31 +02:00
|
|
|
|
2022-02-05 17:44:23 +01:00
|
|
|
The pattern configuration file holds a variety of information about the
|
|
|
|
pattern, its various parts, what measurements it requires, the options it
|
|
|
|
accepts and so on.
|
2021-08-25 16:09:31 +02:00
|
|
|
|
2022-02-05 17:44:23 +01:00
|
|
|
It is part of the initial design and as such static in nature.
|
2021-08-25 16:09:31 +02:00
|
|
|
|
|
|
|
<Note>
|
|
|
|
|
|
|
|
This is about the pattern configuration file, used at build-time.
|
|
|
|
|
2022-01-12 19:27:07 +01:00
|
|
|
For run-time configuration, see [Pattern settings](/reference/api/settings).
|
2021-08-25 16:09:31 +02:00
|
|
|
|
|
|
|
</Note>
|
2021-10-17 18:26:00 +02:00
|
|
|
|
2022-02-05 17:44:23 +01:00
|
|
|
## Structure
|
|
|
|
|
|
|
|
The pattern configuration is a plain object with one or more of the following
|
|
|
|
properties:
|
|
|
|
|
|
|
|
<ReadMore />
|
|
|
|
|
|
|
|
## Example
|
|
|
|
|
|
|
|
Below is a minimal example. Look at [the Aaron config file][aaron] for a full example.
|
|
|
|
|
|
|
|
```js
|
|
|
|
const config = {
|
|
|
|
version: '0.0.1',
|
|
|
|
name: "sorcha",
|
|
|
|
// More configuration here
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
2022-08-21 12:31:23 -04:00
|
|
|
[aaron]: https://github.com/freesewing/freesewing/blob/3ca5d0edfe54c7ac20aaf3af2f3544aee72f9b99/designs/aaron/config/index.js
|