Skip to content

4degrees/vite-template-solid

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 54.5%
  • HTML 19.9%
  • CSS 15.9%
  • JavaScript 9.7%