boilarplate-nuxt3-server-ta.../content/page/getting-started.md

58 lines
847 B
Markdown

## Create a new project
:::div{class="mb-4"}
::tabs
:::tab{name="git" title="Git"}
```bash
$ git clone boilarplate
```
:::
::
:::
## Development
:::div{class="mb-4"}
::tabs
:::tab{name="pnpm" title="pnpm"}
```bash
# install dependencies
$ pnpm install --shamefully-hoist
# serve
$ pnpm dev
```
:::
::
:::
## Build
:::div{class="mb-4"}
::tabs
:::tab{name="pnpm" title="pnpm"}
```bash
# build
$ pnpm build
# serve
$ pnpm start
```
:::
::
:::
## Build as Static Site
:::div{class="mb-4"}
::tabs
:::tab{name="pnpm" title="pnpm"}
```bash
# generate static files
$ pnpm generate
# serve
$ pnpm preview
# or serve with "serve"
$ npx serve ./dist/
```
:::
::
:::