vtasks-automate-cli 0.9.6 → 0.9.8

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 CHANGED
@@ -57,3 +57,38 @@ El paquete se integra en el ciclo de desarrollo de tu equipo. Cuando ejecutás l
57
57
  - Backend de React y script `npm start` o
58
58
  - Frontend con Next.js y script `npm run dev`
59
59
  - Tener ramas creadas a través de **vTasks**, siguiendo el formato sugerido por la plataforma.
60
+
61
+ ## 🔄 Actualizar versión
62
+
63
+ Para actualizar la versión del paquete **vtasks-automate-cli** en los proyectos, seguí estos pasos:
64
+
65
+ 1. Ir a las carpetas donde se ejecutan los programas, por ejemplo:
66
+
67
+ - `server`
68
+ - `client`
69
+ - `client-nextjs`
70
+ (según correspondan o existan en tu entorno)
71
+
72
+ 2. En **cada una** de esas carpetas, ejecutar el siguiente comando para instalar la última versión del paquete:
73
+
74
+ ```bash
75
+ npm i vtasks-automate-cli@latest
76
+
77
+ ```
78
+
79
+ 3. Verificar que la instalación se haya completado correctamente y que el paquete se haya actualizado en el package.json de cada proyecto.
80
+
81
+ ⚠️ **Importante:**
82
+ **No ejecutar** este comando en la raíz del proyecto.
83
+ Por ejemplo, **no** correrlo en:
84
+
85
+ ```
86
+ /Venturing-Fullstack-Boilerplate
87
+ ```
88
+
89
+ Sino en las rutas específicas:
90
+
91
+ ```
92
+ /Venturing-Fullstack-Boilerplate/server
93
+ /Venturing-Fullstack-Boilerplate/client
94
+ ```
package/content/index.js CHANGED
@@ -85,10 +85,23 @@ class GitService {
85
85
 
86
86
  async function main() {
87
87
  console.log(LOG_COLORS.BLUE, "Checking vTasks config:");
88
- // if (!config) {
89
- // console.log(LOG_COLORS.RED, "Git user email not found");
90
- // throw new Error("Missing config.js file");
91
- // }
88
+ const branch = await GitService.getCurrentBranch();
89
+ try {
90
+ if (
91
+ branch.trim() == "qa" ||
92
+ branch.trim() == "dev" ||
93
+ branch.trim() == "master"
94
+ ) {
95
+ console.log(
96
+ LOG_COLORS.YELLOW,
97
+ "Non issue branch - Skip checks and movement"
98
+ );
99
+ return process.exit(0);
100
+ }
101
+ } catch (error) {
102
+ console.log(LOG_COLORS.RED, "Error parsing branch", branch);
103
+ }
104
+
92
105
  const userEmail = await GitService.getCurrentUser();
93
106
  if (!userEmail) {
94
107
  console.log(LOG_COLORS.RED, "Git user email not found");
@@ -102,7 +115,7 @@ async function main() {
102
115
  }
103
116
  console.log(LOG_COLORS.GREEN, `Project: ${projectName}`);
104
117
  let issueNumber;
105
- const branch = await GitService.getCurrentBranch();
118
+
106
119
  if (branch != "qa" && branch != "dev" && branch != "master") {
107
120
  issueNumber = Number(branch.split("_")[0]);
108
121
  console.log(LOG_COLORS.GREEN, `Currently working on issue: ${issueNumber}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vtasks-automate-cli",
3
- "version": "0.9.6",
3
+ "version": "0.9.8",
4
4
  "description": "Automate your vTasks workflow with ease — move tasks between states without opening the app",
5
5
  "bin": {
6
6
  "vtasks-automate": "init.js"