https://github.com/b-l-u-e/black-jack-game
https://github.com/b-l-u-e/black-jack-game
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/b-l-u-e/black-jack-game
- Owner: b-l-u-e
- Created: 2024-05-09T06:25:00.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-09T06:34:11.000Z (about 2 years ago)
- Last Synced: 2024-12-30T02:51:27.122Z (over 1 year ago)
- Language: JavaScript
- Size: 6.98 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Buid blackjack application
Quick start:
- create new vite project `npx create-vite black-jack --template vanilla`
- cd "black-jack"
- install dependencies and dev server `npm install && npm run start`
For existing vite project
- install Vite and React Refresh Plugin `npm i -D vite @vitejs/plugin-react-refresh`
- edit vite.config.js
```
// vite.config.ts
import { defineConfig } from 'vite'
import reactRefresh from '@vitejs/plugin-react-refresh'
export default defineConfig({
plugins: [reactRefresh()]
})
```
- update package.json scripts
```
// package.json
{
"scripts": {
"start": "vite",
"build": "vite build"
// if you need to run eslint and tsc
"build": "eslint src && tsc && vite build",
},
}
```
- run the project `npm run start`