This commit is contained in:
41
README.md
41
README.md
@ -1,38 +1,27 @@
|
||||
# sv
|
||||
# Konabot Web
|
||||
|
||||
Everything you need to build a Svelte project, powered by [`sv`](https://github.com/sveltejs/cli).
|
||||
此方 Bot 专用 Web 应用,让坏枪的渲染模块可以有更多自定义的图图。
|
||||
|
||||
## Creating a project
|
||||
瓜皮告诉我说,四川人很喜欢说叠词。
|
||||
|
||||
If you're seeing this, you've probably already done this step. Congrats!
|
||||
## 安装
|
||||
|
||||
```sh
|
||||
# create a new project in the current directory
|
||||
npx sv create
|
||||
本项目使用 `bun` 进行包管理,但是如果你用 `npm` 的话我不拦你。这里建议用 `bun`。你可以前往[Bun 官网](https://bun.com/)查看如何安装 `bun`。例如,在 Windows,打开一个控制台,并输入:
|
||||
|
||||
# create a new project in my-app
|
||||
npx sv create my-app
|
||||
```powershell
|
||||
powershell -c "irm bun.sh/install.ps1 | iex"
|
||||
```
|
||||
|
||||
## Developing
|
||||
安装好 `bun` 以后,在你喜欢的用于安置代码的文件夹,输入:
|
||||
|
||||
Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server:
|
||||
|
||||
```sh
|
||||
npm run dev
|
||||
|
||||
# or start the server and open the app in a new browser tab
|
||||
npm run dev -- --open
|
||||
```bash
|
||||
git clone https://gitea.service.jazzwhom.top/mttu-developers/konabot-web.git
|
||||
cd konabot-web
|
||||
bun install
|
||||
```
|
||||
|
||||
## Building
|
||||
## 运行
|
||||
|
||||
To create a production version of your app:
|
||||
|
||||
```sh
|
||||
npm run build
|
||||
```bash
|
||||
bun run dev
|
||||
```
|
||||
|
||||
You can preview the production build with `npm run preview`.
|
||||
|
||||
> To deploy your app, you may need to install an [adapter](https://svelte.dev/docs/kit/adapters) for your target environment.
|
||||
|
||||
Reference in New Issue
Block a user