This repository holds most of the official starter templates for Vite.
You get:
- HMR out of the box
- Minimal bundle size
- All the vite features..
Those templates dependencies are maintained via pnpm via pnpm up -i --latest
.
This is the reason you see a pnpm-lock.yaml
. This is my favorite package manager because it's fast and doesn't bloat the node_modules
folder.
Note that any package manager should work. I'd just advice you to remove the pnpm-lock.yml
file before doing an install via your package manager of choice.
# Javascript template
$ npx degit amoutonbrady/vite-template-solid/js my-solid-project
$ cd my-solid-project
$ pnpm install # or npm install or yarn install
# Typescript template
$ npx degit amoutonbrady/vite-template-solid/ts my-solid-project
$ cd my-solid-project
$ pnpm install # or npm install or yarn install
# Typescript minimal template
$ npx degit amoutonbrady/vite-template-solid/ts-minimal my-solid-project
$ cd my-solid-project
$ pnpm install # or npm install or yarn install
# Typescript tailwind template
$ npx degit amoutonbrady/vite-template-solid/ts-tailwind my-solid-project
$ cd my-solid-project
$ pnpm install # or npm install or yarn install
# Typescript tailwind template + basic file base routing
$ npx degit amoutonbrady/vite-template-solid/ts-router my-solid-project
$ cd my-solid-project
$ pnpm install # or npm install or yarn install
You wish there was a template with a router? Bootstrap? Your favorite library?
Feel free to make a pull request. Copy on of the template already available, tweak, name it properly and make a PR.
To update all dependencies you can run:
pnpm up -r -L
It appears that Webstorm generate some weird triggers when saving a file. In order to prevent that you can follow this thread and disable the "Safe Write" option in "Settings | Appearance & Behavior | System Settings".