package list from viandwi24
This commit is contained in:
58
content/page/getting-started.md
Normal file
58
content/page/getting-started.md
Normal file
@@ -0,0 +1,58 @@
|
||||
## 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/
|
||||
```
|
||||
:::
|
||||
::
|
||||
:::
|
||||
Reference in New Issue
Block a user