Создание проекта
Генерация проекта
Теперь, когда 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/