|
1 | | -# React + TypeScript + Vite |
| 1 | +# Get Static |
| 2 | + |
| 3 | +[](https://github.com/yourusername/yourrepo/actions/workflows/deploy-web.yml) |
| 4 | + |
| 5 | +A static site generator built with React and Tauri. |
| 6 | + |
| 7 | +## Development |
| 8 | + |
| 9 | +```bash |
| 10 | +# Install dependencies |
| 11 | +npm install |
| 12 | + |
| 13 | +# Start development server |
| 14 | +npm run dev |
| 15 | + |
| 16 | +# Build for web deployment |
| 17 | +npm run build:web |
| 18 | + |
| 19 | +# Build Tauri desktop app |
| 20 | +npm run tauri build |
| 21 | +``` |
| 22 | + |
| 23 | +## Deployment |
| 24 | + |
| 25 | +The web version is automatically deployed to Netlify on every push to the main branch. |
| 26 | + |
| 27 | +- **Live Site**: [your-site-name.netlify.app](https://your-site-name.netlify.app) |
| 28 | +- **Deploy Status**: Check the Actions tab for build status |
| 29 | + |
| 30 | +## Architecture |
| 31 | + |
| 32 | +- **Frontend**: React + TypeScript + Tailwind CSS |
| 33 | +- **Desktop**: Tauri (Rust + WebView) |
| 34 | +- **Web Deployment**: Netlify |
| 35 | +- **CI/CD**: GitHub Actions |
| 36 | + |
| 37 | +--- |
| 38 | + |
| 39 | +## Original Vite Template Info |
2 | 40 |
|
3 | 41 | This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules. |
4 | 42 |
|
5 | 43 | Currently, two official plugins are available: |
6 | 44 |
|
7 | 45 | - [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react) uses [Babel](https://babeljs.io/) for Fast Refresh |
8 | | -- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh |
9 | | - |
10 | | -## Expanding the ESLint configuration |
11 | | - |
12 | | -If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules: |
13 | | - |
14 | | -```js |
15 | | -export default tseslint.config([ |
16 | | - globalIgnores(['dist']), |
17 | | - { |
18 | | - files: ['**/*.{ts,tsx}'], |
19 | | - extends: [ |
20 | | - // Other configs... |
21 | | - |
22 | | - // Remove tseslint.configs.recommended and replace with this |
23 | | - ...tseslint.configs.recommendedTypeChecked, |
24 | | - // Alternatively, use this for stricter rules |
25 | | - ...tseslint.configs.strictTypeChecked, |
26 | | - // Optionally, add this for stylistic rules |
27 | | - ...tseslint.configs.stylisticTypeChecked, |
28 | | - |
29 | | - // Other configs... |
30 | | - ], |
31 | | - languageOptions: { |
32 | | - parserOptions: { |
33 | | - project: ['./tsconfig.node.json', './tsconfig.app.json'], |
34 | | - tsconfigRootDir: import.meta.dirname, |
35 | | - }, |
36 | | - // other options... |
37 | | - }, |
38 | | - }, |
39 | | -]) |
40 | | -``` |
41 | | - |
42 | | -You can also install [eslint-plugin-react-x](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-x) and [eslint-plugin-react-dom](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-dom) for React-specific lint rules: |
43 | | - |
44 | | -```js |
45 | | -// eslint.config.js |
46 | | -import reactX from 'eslint-plugin-react-x' |
47 | | -import reactDom from 'eslint-plugin-react-dom' |
48 | | - |
49 | | -export default tseslint.config([ |
50 | | - globalIgnores(['dist']), |
51 | | - { |
52 | | - files: ['**/*.{ts,tsx}'], |
53 | | - extends: [ |
54 | | - // Other configs... |
55 | | - // Enable lint rules for React |
56 | | - reactX.configs['recommended-typescript'], |
57 | | - // Enable lint rules for React DOM |
58 | | - reactDom.configs.recommended, |
59 | | - ], |
60 | | - languageOptions: { |
61 | | - parserOptions: { |
62 | | - project: ['./tsconfig.node.json', './tsconfig.app.json'], |
63 | | - tsconfigRootDir: import.meta.dirname, |
64 | | - }, |
65 | | - // other options... |
66 | | - }, |
67 | | - }, |
68 | | -]) |
69 | | -``` |
| 46 | +- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh |
0 commit comments