跳到主要内容

创建新设计

When creating a new design, you have two options. You can create it in a stand-alone development environment. Or, you can create it inside (your fork of) the open clothes monorepo.

If you are unsure what to pick, go with the stand-alone development environment. It is the best choice for people new to open clothes.

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.

Stand-alone

To setup the stand-alone development environment, you need NodeJS 18 or higher. Then run:

npx @openclothes/new-design

This command will setup open clothes's stand-alone development environment.

Work inside the monorepo

首先, fork our monorepo. Then run:

git clone <url to your fork>
cd openclothes
yarn kickstart
yarn new design

These commands will clone your fork of the open clothes/open clothes repository on GitHub and set it up for development.