Nuxt Installation
Prerequisites
- Node.js version 20.11 or higher.
- VSCode is recommended, along with the official Vue extension.
- PNPM is recommended.
Skip More Nuxt Configuration here.
Installation
sh
$ pnpm add -D pergelsh
$ npm add -D pergelsh
$ yarn add -D pergelsh
$ bun add -D pergelSetup Wizard
Get started with Pergel by running the following command: This will create a pergel.ts file in your project .config folder.
sh
$ pnpm pergel initsh
$ npm pergel initsh
$ yarn pergel initsh
$ bun pergel initUsage
- Go to
nuxt.config.tsand add the following code:
ts
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
modules: [
'pergel/nuxt',
],
})- The prepare command creates a .nuxt directory in your application and generates types.
sh
$ pnpm nuxt preparesh
$ npm nuxt preparesh
$ yarn nuxt preparesh
$ bun nuxt prepare- Crete project with the following command:
ts
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
modules: [
'pergel/nuxt',
],
pergel: {
projects: {
// changeName -> Please change this to your project name camelCase
changeName: {
// ...modules and options
}
}
},
})changeName
changeName is the name of your project. Please change it to your project name.
- Generates types and
pergelfolder upgrade.
sh
$ pnpm nuxt preparesh
$ npm nuxt preparesh
$ yarn nuxt preparesh
$ bun nuxt prepareINFO
Success! You have installed Pergel. Now you can start your project with Pergel. More Nuxt Configuration here.