Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
boussadjra committed Sep 25, 2023
1 parent 223e8bd commit 59650fb
Show file tree
Hide file tree
Showing 51 changed files with 899 additions and 579 deletions.
5 changes: 5 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

pnpm lint:fix
pnpm typecheck
17 changes: 9 additions & 8 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,29 @@

React starter template inspired by [vitesse](https://github.com/antfu/vitesse)

## Features :
## Features :

- ⚛️ ⚡️ [Reactjs](https://github.com/facebook/react), [Vite 2](https://github.com/vitejs/vite), [npm](https://npmjs.com/), [ESBuild](https://github.com/evanw/esbuild)
- ⚛️ ⚡️ [Reactjs](https://github.com/facebook/react), [Vite](https://github.com/vitejs/vite)
- 🗂 [File based routing](./src/pages)
- 🏪 [State Management via React Redux](https://react-redux.js.org/)
- 🧱 [Layout system](./src/layouts)
- 📲 [PWA](https://github.com/antfu/vite-plugin-pwa)
- 🎨 [UnoCSS](https://github.com/antfu/unocss) - the instant on-demand atomic CSS engine
- 🎨 [Tailwind CSS](https://tailwindcss.com/)
-[Use icons from any icon sets with classes](https://github.com/antfu/unocss/tree/main/packages/preset-icons)
- [I18n ready](./src/locales)
- 🖨 Static-site generation (SSG) via [vite-ssg](https://github.com/antfu/vite-ssg)
- 🦾 TypeScript, of course ✅
- Eslint, Prettier, Husky, Lint-staged ✅



![screenshot](public/img/dark.png)
![screenshot](public/img/light.png)

## Installation :
## Installation :

git clone https://github.com/boussadjra/vitesse-react.git
cd vitesse-react
npm install
npm run dev
pnpm install
pnpm run dev

then visit http://localhost:3000/
then visit http://localhost:.5173
File renamed without changes.
25 changes: 14 additions & 11 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/src/favicon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite App</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>

<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/src/favicon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>React vitesse</title>
</head>

<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>

</html>
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@
"dev": "vite",
"build": "vite build",
"preview": "vite preview",
"prepare": "husky install",
"lint": "eslint --ext .js,.jsx,.ts,.tsx .",
"lint:fix": "eslint --fix --ext .js,.jsx,.ts,.tsx ."
"lint:fix": "eslint --fix --ext .js,.jsx,.ts,.tsx .",
"typecheck": "tsc --noEmit"
},
"dependencies": {
"-": "^0.0.1",
Expand Down
Loading

0 comments on commit 59650fb

Please sign in to comment.