2021-10-17 18:26:00 +02:00
|
|
|
---
|
2021-08-25 16:09:31 +02:00
|
|
|
title: Creating a new pattern design
|
2021-10-17 18:26:00 +02:00
|
|
|
---
|
2021-08-25 16:09:31 +02:00
|
|
|
|
2022-10-14 16:03:47 +02:00
|
|
|
When creating a new design, you have two options. You can create it in a
|
2022-12-22 17:24:59 -08:00
|
|
|
stand-alone development environment. Or, you can create it inside (your fork of)
|
2022-10-14 16:03:47 +02:00
|
|
|
the FreeSewing monorepo.
|
2021-08-25 16:09:31 +02:00
|
|
|
|
2022-12-22 17:24:59 -08:00
|
|
|
If you are unsure what to pick, go with the stand-alone development environment.
|
2022-10-12 14:42:45 +02:00
|
|
|
It is the best choice for people new to FreeSewing.
|
2021-08-25 16:09:31 +02:00
|
|
|
|
2022-10-12 14:42:45 +02:00
|
|
|
Working inside the monorepo is the preferred way of regular contributors, but
|
|
|
|
if you were a regular contributor, you would probably already know this. So
|
|
|
|
when in doubt, go stand-alone. You can always change track later.
|
2021-08-25 16:09:31 +02:00
|
|
|
|
2022-10-12 14:42:45 +02:00
|
|
|
## Stand-alone
|
2021-08-25 16:09:31 +02:00
|
|
|
|
2023-09-30 15:57:51 +02:00
|
|
|
To setup the stand-alone development environment, you need NodeJS 18 or higher.
|
2022-10-12 14:42:45 +02:00
|
|
|
Then run:
|
2021-08-25 16:09:31 +02:00
|
|
|
|
2022-10-12 14:42:45 +02:00
|
|
|
```sh
|
2023-09-30 15:57:51 +02:00
|
|
|
npx @freesewing/new-design
|
2021-08-25 16:09:31 +02:00
|
|
|
```
|
|
|
|
|
2022-10-12 14:42:45 +02:00
|
|
|
This command will setup FreeSewing's stand-alone development environment.
|
2021-08-25 16:09:31 +02:00
|
|
|
|
2022-10-12 14:42:45 +02:00
|
|
|
## Work inside the monorepo
|
2021-08-25 16:09:31 +02:00
|
|
|
|
2022-10-12 14:42:45 +02:00
|
|
|
First, [fork our monorepo](https://github.com/freesewing/freesewing/fork). Then run:
|
|
|
|
|
|
|
|
```sh
|
|
|
|
git clone <url to your fork>
|
|
|
|
cd freesewing
|
|
|
|
yarn kickstart
|
|
|
|
yarn new design
|
|
|
|
```
|
2021-08-25 16:09:31 +02:00
|
|
|
|
2022-10-12 14:42:45 +02:00
|
|
|
These commands will clone your fork of the
|
|
|
|
[freesewing/freesewing](https://github.com/freesewing/freesewing) repository on
|
2022-12-22 17:24:59 -08:00
|
|
|
GitHub and set it up for development.
|