2021-04-10 17:22:29 +02:00
2021-04-10 17:22:29 +02:00
2021-04-10 17:22:29 +02:00
2021-04-10 17:22:29 +02:00
2021-04-10 17:22:29 +02:00
2021-04-10 17:22:29 +02:00
2021-04-10 17:22:29 +02:00
2021-04-10 17:22:29 +02:00
2021-04-04 13:51:53 +02:00

Vite templates for Solid

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..

Install

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
# Typescript bootstrap (5) template
$ npx degit amoutonbrady/vite-template-solid/ts-bootstrap my-solid-project
$ cd my-solid-project
$ pnpm install # or npm install or yarn install

I don't see a template that matches my need?

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.

Contributing

To update all dependencies you can run:

pnpm up -r -L

Troubleshooting

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".

S
Description
No description provided
Readme 1.2 MiB
Languages
TypeScript 90.8%
HTML 3.2%
JavaScript 2.8%
SCSS 2.3%
CSS 0.9%