setup-vitenetcore - Vite.AspNetCore Setup for .NET Core Projects
Introduction
Welcome to @webcodateam/setup-vitenetcore
! This package will add Vite.AspNetCore to your .NET Core project and set it up automatically, eliminating the need for manual configurations.
Installation
To use this package, you can install it via pnpm, yarn, or npm. Choose one of the following options:
Using pnpm
pnpm add -D @webcodateam/setup-vitenetcore
Using yarn
yarn add -D @webcodateam/setup-vitenetcore
Using npm
npm install -D @webcodateam/setup-vitenetcore
Alternatively, you can directly run the setup process using npx:
npx @webcodateam/setup-vitenetcore
Usage
Before running the setup process, make sure to add a script in your package.json
to execute the setup:
{
...other settings
"scripts": {
"setup-vite": "setup-vitenetcore"
}
}
Once the package is installed and the script is added in your package.json, run the following command in your project's root directory to start the setup process:
pnpm setup-vitenetcore
or
yarn setup-vitenetcore
or
npm run setup-vitenetcore
Notes
The setup process will then guide you through a series of questions to configure Vite correctly for your .NET Core project.
- During the setup process, a new Startup.cs file will be created for the selected .csproj file.
- Make sure to answer all the prompts accurately to ensure proper configuration.
- If you encounter any issues or have questions, refer to the Vite.AspNetCore documentation for further guidance.
With @webcodateam/setup-vitenetcore
, integrating Vite into your .NET Core project has never been easier! Enjoy the benefits of Vite's fast and efficient development experience. Happy coding!