2021-10-17 18:26:00 +02:00
|
|
|
---
|
2021-08-25 16:09:31 +02:00
|
|
|
title: Creating a new pattern design
|
|
|
|
for: developers
|
|
|
|
about: Shows you how to create a new design
|
2021-10-17 18:26:00 +02:00
|
|
|
---
|
2021-08-25 16:09:31 +02:00
|
|
|
|
2022-10-12 14:42:45 +02:00
|
|
|
When creating a new design, you have two options:
|
2021-08-25 16:09:31 +02:00
|
|
|
|
2022-10-12 14:42:45 +02:00
|
|
|
- Create it in a stand-along development environment
|
|
|
|
- Create it inside (your fork of ) the FreeSewing monorepo
|
2021-08-25 16:09:31 +02:00
|
|
|
|
2022-10-12 14:42:45 +02:00
|
|
|
If you are unsure what to pick, go with the standalong development environment.
|
|
|
|
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
|
|
|
|
2022-10-12 14:42:45 +02:00
|
|
|
To setup the standalong development environment, you need NodeJS 16 or higher.
|
|
|
|
Then run:
|
2021-08-25 16:09:31 +02:00
|
|
|
|
2022-10-12 14:42:45 +02:00
|
|
|
```sh
|
|
|
|
npx @freesewing/new-design@next
|
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
|
|
|
|
Github and set it up for development.
|