vtasks-automate-cli 0.4.7 → 0.5.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/init.js +9 -2
- package/package.json +1 -1
package/init.js
CHANGED
|
@@ -8,7 +8,7 @@ import path from "path";
|
|
|
8
8
|
import { fileURLToPath } from "url";
|
|
9
9
|
import { dirname } from "path";
|
|
10
10
|
|
|
11
|
-
const VTASKS_URL = "
|
|
11
|
+
const VTASKS_URL = "https://vtasks.venturing.com.ar/vTasks/api";
|
|
12
12
|
|
|
13
13
|
class ApiHelpers {
|
|
14
14
|
static async checkProjectName(projectName) {
|
|
@@ -19,7 +19,8 @@ class ApiHelpers {
|
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
const VTASKS_CONFIG_URL =
|
|
22
|
+
const VTASKS_CONFIG_URL =
|
|
23
|
+
"https://vtasks.venturing.com.ar/vTasks/api/project/action/track";
|
|
23
24
|
|
|
24
25
|
const LOG_COLORS = {
|
|
25
26
|
RED: "\x1b[31m",
|
|
@@ -185,7 +186,9 @@ const main = async () => {
|
|
|
185
186
|
|
|
186
187
|
echo -e "\e[34mSwitching current branch\e[0m"
|
|
187
188
|
node ./vTasks/index.js`;
|
|
189
|
+
console.log(LOG_COLORS.GREEN, "vTasks config file added");
|
|
188
190
|
fs.writeFileSync(archivoConfig, configContent);
|
|
191
|
+
console.log(LOG_COLORS.GREEN, "Post-checkout hook added");
|
|
189
192
|
fs.writeFileSync(postCommitFile, postCommitContent);
|
|
190
193
|
|
|
191
194
|
if (fs.existsSync(gitIgnoreFile)) {
|
|
@@ -195,6 +198,7 @@ node ./vTasks/index.js`;
|
|
|
195
198
|
gitIgnoreContent += "#vTasks config\n";
|
|
196
199
|
gitIgnoreContent += "vTasks/config.js\n";
|
|
197
200
|
fs.writeFileSync(gitIgnoreFile, gitIgnoreContent);
|
|
201
|
+
console.log(LOG_COLORS.GREEN, "vTasks config added to .gitignore file");
|
|
198
202
|
} else {
|
|
199
203
|
console.log(LOG_COLORS.YELLOW, ".gitignore file not found");
|
|
200
204
|
}
|
|
@@ -207,6 +211,7 @@ node ./vTasks/index.js`;
|
|
|
207
211
|
const newCmd = `node ../vTasks/index.js && ${oldCmd}`;
|
|
208
212
|
const newContent = packageContent.replace(oldCmd, newCmd);
|
|
209
213
|
fs.writeFileSync(packagePath, newContent);
|
|
214
|
+
console.log(LOG_COLORS.GREEN, "React app start script modified");
|
|
210
215
|
} else {
|
|
211
216
|
console.log(LOG_COLORS.YELLOW, "React app start script not found");
|
|
212
217
|
}
|
|
@@ -221,6 +226,7 @@ node ./vTasks/index.js`;
|
|
|
221
226
|
const newCmd = `node ../vTasks/index.js && ${oldCmd}`;
|
|
222
227
|
const newContent = packageContent.replace(oldCmd, newCmd);
|
|
223
228
|
fs.writeFileSync(packagePath, newContent);
|
|
229
|
+
console.log(LOG_COLORS.GREEN, "Next app dev script modified");
|
|
224
230
|
} else {
|
|
225
231
|
console.log(LOG_COLORS.YELLOW, "Next app dev script not found");
|
|
226
232
|
}
|
|
@@ -235,6 +241,7 @@ node ./vTasks/index.js`;
|
|
|
235
241
|
const newCmd = `node ../vTasks/index.js && ${oldCmd}`;
|
|
236
242
|
const newContent = packageContent.replace(oldCmd, newCmd);
|
|
237
243
|
fs.writeFileSync(packagePath, newContent);
|
|
244
|
+
console.log(LOG_COLORS.GREEN, "Server app start script modified");
|
|
238
245
|
} else {
|
|
239
246
|
console.log(LOG_COLORS.YELLOW, "Server app start script not found");
|
|
240
247
|
}
|