FreeSewing provides a development environment to help you design and develop patterns.
There are two ways to run this development environment:
- Monorepo development: Use this if you intend to contribute your work to FreeSewing
- Stand-alone development: Use this if you want to do your own thing, and not contribute to FreeSewing
yarn lab to start the development environment:
Then point your browser to http://localhost:8000
This is all you need to work on existing designs. If you’d like to add a new design, run:
yarn new design
Just make sure to re-start the lab afterwards with
You will have a new folder that has the name you picked for your design.
If you chose
test, you will have a folder named
If you chose
banana, you’ll have a folder named
(Within this new folder, the
design subfolder holds your design’s configuration file and source code.
You can ignore all other subfolders and files; they are part of the development environment.)
To start the development environment, enter the folder that was created
yarn dev (or
npm run dev if you’re using npm as a package manager).
Then open your browser and go to http://localhost:8000
The development environment will watch for any changes you make to the pattern’s source code or configuration. When you do, it will update automatically in your browser.