Skip to content

Commit a4c117f

Browse files
committed
feat: 🚀 v4.0.0
1 parent 7aa2103 commit a4c117f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+3004
-30144
lines changed

.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
REACT_APP_API_URL = https://reqres.in/api
1+
VITE_API_URL = https://reqres.in/api

.eslintrc.cjs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
module.exports = {
2+
root: true,
3+
env: { browser: true, es2020: true },
4+
extends: [
5+
'eslint:recommended',
6+
'plugin:@typescript-eslint/recommended',
7+
'plugin:react-hooks/recommended',
8+
],
9+
ignorePatterns: ['dist', '.eslintrc.cjs'],
10+
parser: '@typescript-eslint/parser',
11+
plugins: ['react-refresh'],
12+
rules: {
13+
'react-refresh/only-export-components': [
14+
'warn',
15+
{ allowConstantExport: true },
16+
],
17+
},
18+
}

.gitignore

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,24 @@
1-
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2-
3-
# dependencies
4-
/node_modules
5-
/.pnp
6-
.pnp.js
7-
8-
# testing
9-
/coverage
10-
11-
# production
12-
/build
13-
14-
# misc
15-
.DS_Store
16-
.env.local
17-
.env.development.local
18-
.env.test.local
19-
.env.production.local
20-
1+
# Logs
2+
logs
3+
*.log
214
npm-debug.log*
225
yarn-debug.log*
236
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
dist
12+
dist-ssr
13+
*.local
14+
15+
# Editor directories and files
16+
.vscode/*
17+
!.vscode/extensions.json
18+
.idea
19+
.DS_Store
20+
*.suo
21+
*.ntvs*
22+
*.njsproj
23+
*.sln
24+
*.sw?

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,16 @@
22

33
# ⚛️ React.js Boilerplate
44

5-
Boilerplate para proyectos de React.js CSR. Listo para producción, organizado, optimizado para SEO y compatible con WCAG 2.1
5+
Boilerplate para proyectos de React.js CSR. Listo para producción, organizado, optimizado para SEO y compatible con WCAG 2.1, ahora con el poder de Vite + Typescript
66

77
---
88

99
Boilerplate for React.js CSR projects. Production ready, organized and optimized for SEO.
1010

1111
![Lighthouse Audit](https://res.cloudinary.com/trejocode/image/upload/v1590290688/Screens/100_tjsyob.png)
1212

13+
### ⚛ 4.0.0 Vite + Typescript
14+
1315
### ⚛ 3.0.0 React.js v18
1416

1517
### ⚛ 2.1.1 React.js v17
@@ -32,6 +34,7 @@ Boilerplate for React.js CSR projects. Production ready, organized and optimized
3234
- Estructura de carpetas / Folder structure
3335
- Estructura de carpetas / Folder structure
3436
- Última versión mayor de React / React latest version
37+
- Vite + Typescript
3538

3639
### 🚀 Para empezar / Get started
3740

@@ -44,7 +47,7 @@ These instructions will provide you with a copy of the running project on your l
4447
```bash
4548
cd react-boilerplate
4649
npm install
47-
npm start
50+
npm dev
4851
```
4952

5053
### 📦 Node modules
@@ -54,11 +57,10 @@ npm start
5457
- [React Helmet Async](https://www.npmjs.com/package/react-helmet-async) - Document Head manager
5558
- [React Router Dom](https://www.npmjs.com/package/react-router-dom) - Router
5659
- [Axios](https://github.com/axios/axios) - HTTP client
57-
- [Web Font Loader](https://github.com/typekit/webfontloader) - Async Web Font Loader
5860

5961
### 📐 Requisitos / Requirements
6062

61-
- Node min: 16
63+
- Node min: 18
6264
- Web Browser
6365
- VS Code, Atom, Sublime text
6466

@@ -69,7 +71,6 @@ npm start
6971
├── pages # Páginas
7072
├── routes # Ruteador
7173
├── sass # Módulos SASS
72-
├── libs # Librerías
7374
├── utils # Utilidades
7475
└── README.md
7576

public/index.html renamed to index.html

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
<head>
44
<meta charset="UTF-8" />
55
<meta name="robots" content="index" />
6-
<meta name="theme-color" content="#33C8A3" />
6+
<link rel="icon" href="./favicon.ico" />
77
<meta name="author" content="Trejocode" />
8-
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
8+
<meta name="theme-color" content="#33C8A3" />
9+
<link rel="manifest" href="./manifest.json" />
910
<meta httpEquiv="X-UA-Compatible" content="ie=edge" />
10-
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
1111
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
1212
<!-- Meta tags -->
1313
<title>React.js Boilerplate - Trejocode</title>
@@ -36,7 +36,7 @@
3636
<!-- IOS Meta -->
3737
<meta name="apple-mobile-web-app-capable" content="yes" />
3838
<meta name="apple-mobile-web-app-title" content="B4A - Trejocode" />
39-
<link rel="apple-touch-icon" href="./img/icons/icon-96.png" />
39+
<link rel="apple-touch-icon" href="./icons/icon-96.png" />
4040
<meta
4141
name="apple-mobile-web-app-status-bar-style"
4242
content="black-translucent"
@@ -67,7 +67,8 @@
6767
/>
6868
</head>
6969
<body>
70-
<noscript>Necesitas habilitar JavaScript para esta Web.</noscript>
7170
<div id="root"></div>
71+
<script type="module" src="/src/main.tsx"></script>
72+
<noscript>Necesitas habilitar JavaScript para esta Web.</noscript>
7273
</body>
7374
</html>

jsconfig.json

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)