testempaquetado 1.1.0 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +60 -2
- package/dist/index.js +23 -23
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,2 +1,60 @@
|
|
|
1
|
-
#
|
|
2
|
-
|
|
1
|
+
# 🧠 HiFenix Chatbot – Web Component (React)
|
|
2
|
+
|
|
3
|
+
Este proyecto exporta un chatbot embebible como Web Component, listo para ser instalado vía NPM o integrado por CDN. Utiliza React + Vite + TailwindCSS.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## 🚀 Instalación del proyecto localmente
|
|
8
|
+
|
|
9
|
+
1. Clonar este repositorio.
|
|
10
|
+
2. Instalar las dependencias:
|
|
11
|
+
|
|
12
|
+
```bash
|
|
13
|
+
npm install
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
3. Crear un archivo `.env` en la raíz con el siguiente contenido:
|
|
17
|
+
|
|
18
|
+
```env
|
|
19
|
+
VITE_URL_BACKEND_API=https://tu-backend-api.com
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
4. Ejecutar en modo desarrollo:
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
npm run dev
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
Esto levanta el entorno de pruebas para el componente, accesible desde `index.html`.
|
|
29
|
+
|
|
30
|
+
---
|
|
31
|
+
|
|
32
|
+
## 📦 Publicación en NPM
|
|
33
|
+
|
|
34
|
+
1. Actualizar la versión en `package.json` y `.npmignore` si corresponde.
|
|
35
|
+
|
|
36
|
+
2. Ejecutar el build de producción:
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
npm run build
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
3. Loguearse en la cuenta de Hi Fénix (si no está hecho):
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
npm login
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
4. Publicar el paquete:
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
npm publish
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
> Asegurate de tener los permisos necesarios en la cuenta de NPM de Hi Fénix.
|
|
55
|
+
|
|
56
|
+
---
|
|
57
|
+
|
|
58
|
+
## 📧 Soporte
|
|
59
|
+
|
|
60
|
+
Para dudas o reportes, escribinos a: **highflightsoftware@gmail.com**
|