The vitejs
plugin provides some functions for vitejs
.
To use it, add vitejs
to plugins array in your ~/.bashrc
or ~/.zshrc
file:
export SF_PLUGINS=(... vitejs)
npvi
: Scaffold a vite project withnpm
.yavi
: Scaffold a vite project withyarn
.pnvi
: Scaffold a vite project withpnpm
.
All functions use the same arguments:
- $1: Desired template. You should take a look to the supported templates
- $2: Directory name. Can be
.
for current folder.
If no argument is passed, each function will use the default prompt for its package manager
-
react-ts
template for current folder usingnpm
npvi react-ts .
-
vanilla
template in foldermy-project
usingyarn
yavi vanilla my-project
-
default
prompt forpnpm
pnvi