⬆️ Update to latest dependencies

This commit is contained in:
Alexandre Mouton-Brady
2021-01-23 13:56:41 +01:00
parent 9db0670fcc
commit 2711f753a4
21 changed files with 139 additions and 91 deletions
+25 -4
View File
@@ -1,33 +1,54 @@
# 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](https://pnpm.js.org/) 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.
```bash
# Javascript template
$ npx degit amoutonbrady/vite-template-solid/js my-solid-project
$ cd my-solid-project
$ npm install # or pnpm install or yarn install
$ pnpm install # or npm install or yarn install
```
```bash
# Typescript template
$ npx degit amoutonbrady/vite-template-solid/ts my-solid-project
$ cd my-solid-project
$ npm install # or pnpm install or yarn install
$ pnpm install # or npm install or yarn install
```
```bash
# Typescript minimal template
$ npx degit amoutonbrady/vite-template-solid/ts-minimal my-solid-project
$ cd my-solid-project
$ npm install # or pnpm install or yarn install
$ pnpm install # or npm install or yarn install
```
```bash
# Typescript tailwind template
$ npx degit amoutonbrady/vite-template-solid/ts-tailwind my-solid-project
$ cd my-solid-project
$ npm install # or pnpm install or yarn install
$ 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.
## Troubleshooting
It appears that Webstorm generate some weird triggers when saving a file. In order to prevent that you can follow [this thread](https://intellij-support.jetbrains.com/hc/en-us/community/posts/360000154544-I-m-having-a-huge-problem-with-Webstorm-and-react-hot-loader-) and disable the **"Safe Write"** option in **"Settings | Appearance & Behavior | System Settings"**.