2024-07-05 12:25:26 +00:00
|
|
|
# My Nuxt3 library with reusable components
|
2024-07-05 12:22:31 +00:00
|
|
|
|
|
|
|
|
|
|
|
## Setup
|
|
|
|
|
|
|
|
Make sure to install the dependencies:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
# npm
|
|
|
|
npm install
|
|
|
|
|
|
|
|
# pnpm
|
|
|
|
pnpm install
|
|
|
|
|
|
|
|
# yarn
|
|
|
|
yarn install
|
|
|
|
|
|
|
|
# bun
|
|
|
|
bun install
|
|
|
|
```
|
|
|
|
|
|
|
|
## Development Server
|
|
|
|
|
|
|
|
Start the development server on `http://localhost:3000`:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
# npm
|
|
|
|
npm run dev
|
|
|
|
|
|
|
|
# pnpm
|
|
|
|
pnpm run dev
|
|
|
|
|
|
|
|
# yarn
|
|
|
|
yarn dev
|
|
|
|
|
|
|
|
# bun
|
|
|
|
bun run dev
|
|
|
|
```
|
|
|
|
|
|
|
|
## Production
|
|
|
|
|
|
|
|
Build the application for production:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
# npm
|
|
|
|
npm run build
|
|
|
|
|
|
|
|
# pnpm
|
|
|
|
pnpm run build
|
|
|
|
|
|
|
|
# yarn
|
|
|
|
yarn build
|
|
|
|
|
|
|
|
# bun
|
|
|
|
bun run build
|
|
|
|
```
|
|
|
|
|
|
|
|
Locally preview production build:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
# npm
|
|
|
|
npm run preview
|
|
|
|
|
|
|
|
# pnpm
|
|
|
|
pnpm run preview
|
|
|
|
|
|
|
|
# yarn
|
|
|
|
yarn preview
|
|
|
|
|
|
|
|
# bun
|
|
|
|
bun run preview
|
|
|
|
```
|
|
|
|
|
|
|
|
Check out the [deployment documentation](https://nuxt.com/docs/getting-started/deployment) for more information.
|