https://github.com/voidcoefficient/vite-template
personal vite template
https://github.com/voidcoefficient/vite-template
Last synced: 7 months ago
JSON representation
personal vite template
- Host: GitHub
- URL: https://github.com/voidcoefficient/vite-template
- Owner: voidcoefficient
- Created: 2025-02-28T10:49:27.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2025-02-28T12:36:58.000Z (12 months ago)
- Last Synced: 2025-02-28T18:15:53.261Z (12 months ago)
- Language: CSS
- Homepage:
- Size: 82 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# vite project template
personal template for Vite projects, containing:
- `tailwind` (v4)
- `shadcn` setup
- `eslint`/`prettier` setup
- `react-router` setup
- [devenv](devenv.sh) setup
- automatically installs dependencies (`nodejs` and `pnpm`)
- automatically installs project dependencies (`pnpm install`) when entering this directory with `direnv`
## installation (linux)
if you are not using linux, follow [these steps](https://devenv.sh/getting-started/) instead
### installing nix
```sh
sh <(curl -L https://nixos.org/nix/install) --daemon
```
### installing devenv
```sh
nix-env --install --attr devenv -f https://github.com/NixOS/nixpkgs/tarball/nixpkgs-unstable
```
### project setup
after running these commands, you will be using a shell that has access to `nodejs` and `pnpm`, allow you to run `pnpm dev` and start working on your new project.
```sh
git clone https://github.com/voidcoefficient/vite-template project-name
cd project-name
devenv shell
```
## testing
tests and watches for file changes
```sh
devenv test
```
## developing
this command will start the vite process and watch for file changes
```sh
dev
```