1
0
Fork 0

chore: Merged in left behind PRs from markdown repo

This commit is contained in:
Joost De Cock 2021-08-25 16:16:51 +02:00
parent b34a2ee2ed
commit 97b8a93a85
126 changed files with 2327 additions and 486 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 151 KiB

After

Width:  |  Height:  |  Size: 82 KiB

Before After
Before After

View file

@ -3,10 +3,18 @@ title: Setting up the development environment
order: 100
---
<Note>
###### Already did the Getting started tutorial?
If you already set up the FreeSewing development environment and created a pattern, you can use that pattern and skip these steps. You can move on to [Your first part](/tutorials/pattern-design/your-first-part/).
</Note>
Open a terminal and enter the following command:
```bash
npm init freesewing-pattern
npx create-freesewing-pattern
```
This will load a few dependencies, and then ask you the following questions:
@ -18,7 +26,7 @@ This will load a few dependencies, and then ask you the following questions:
- **Department**: Use the arrow keys to select `Accessories`
- **Author**: Enter your GitHub username
- **GitHub repository**: This will be prefilled for you, so just hit Enter
- **Package manager**: Use the arrow to choose. Pick `NPM` if you're not sure.
- **Package manager**: Use the arrow to choose. Pick `npm` if you're not sure.
After you've answered these questions, the default template will be copied, after which all dependencies will be installed.
@ -28,26 +36,11 @@ This will take a few minutes because we're loading some software for your develo
</Note>
When it's ready, you'll need to run two commands in parallel. In the current terminal,
enter the directory that was just created for our `tutorial` pattern and start rollup in watch mode:
```bash
cd tutorial
npm run start
```
Or if you chose to use Yarn as package manager:
```bash
cd tutorial
yarn start
```
Now open a second terminal, and navigate to the `example` subfolder and run the same command there:
When it's ready, enter the directory that was just created for our `tutorial` pattern and navigate to the `example` subfolder. There, start the development environment:
```bash:
cd tutorial/example
npm run start
npm start
```
Or if you chose to use Yarn as package manager:
@ -63,10 +56,7 @@ If all goes well, your browser will open and show the following landing page:
<Note>
###### Using Windows?
We have tested this on Linux and MacOS, but not on Windows since I (joost) don't have
a Windows machine I can test this on.
###### Need help?
If you run into any issues, join [our chatroom](https://discord.freesewing.org/) and
we'll figure it out together.