프로젝트 생성하기
프로젝트 생성
이제 CLI가 설치되었습니다, wails init 명령을 사용하여 새로운 프로젝트를 생성할 수 있습니다.
원하는 프레임워크를 선택하세요:
- Svelte
- React
- Vue
- Preact
- Lit
- Vanilla
Generate a Svelte project using JavaScript with:
wails init -n myproject -t svelte
If you would rather use TypeScript:
wails init -n myproject -t svelte-ts
Generate a React project using JavaScript with:
wails init -n myproject -t react
If you would rather use TypeScript:
wails init -n myproject -t react-ts
Generate a Vue project using JavaScript with:
wails init -n myproject -t vue
If you would rather use TypeScript:
wails init -n myproject -t vue-ts
Generate a Preact project using JavaScript with:
wails init -n myproject -t preact
If you would rather use TypeScript:
wails init -n myproject -t preact-ts
Generate a Lit project using JavaScript with:
wails init -n myproject -t lit
If you would rather use TypeScript:
wails init -n myproject -t lit-ts
Generate a Vanilla project using JavaScript with:
wails init -n myproject -t vanilla
If you would rather use TypeScript:
wails init -n myproject -t vanilla-ts
다양한 기능과 프레임워크를 제공하는 커뮤니티 템플릿도 있습니다.
사용 가능한 다른 옵션을 보려면 wails init -help 명령을 실행할 수 있습니다. 자세한 내용은 CLI Reference에서 찾을 수 있습니다.
프로젝트 레이아웃
Wails 프로젝트는 다음 레이아웃을 따릅니다:
.
├── build/
│ ├── appicon.png
│ ├── darwin/
│ └── windows/
├── frontend/
├── go.mod
├── go.sum
├── main.go
└── wails.json