vtasks-automate-cli 0.4.7 → 0.4.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.
Files changed (2) hide show
  1. package/init.js +6 -0
  2. package/package.json +1 -1
package/init.js CHANGED
@@ -185,7 +185,9 @@ const main = async () => {
185
185
 
186
186
  echo -e "\e[34mSwitching current branch\e[0m"
187
187
  node ./vTasks/index.js`;
188
+ console.log(LOG_COLORS.GREEN, "vTasks config file added");
188
189
  fs.writeFileSync(archivoConfig, configContent);
190
+ console.log(LOG_COLORS.GREEN, "Post-checkout hook added");
189
191
  fs.writeFileSync(postCommitFile, postCommitContent);
190
192
 
191
193
  if (fs.existsSync(gitIgnoreFile)) {
@@ -195,6 +197,7 @@ node ./vTasks/index.js`;
195
197
  gitIgnoreContent += "#vTasks config\n";
196
198
  gitIgnoreContent += "vTasks/config.js\n";
197
199
  fs.writeFileSync(gitIgnoreFile, gitIgnoreContent);
200
+ console.log(LOG_COLORS.GREEN, "vTasks config added to .gitignore file");
198
201
  } else {
199
202
  console.log(LOG_COLORS.YELLOW, ".gitignore file not found");
200
203
  }
@@ -207,6 +210,7 @@ node ./vTasks/index.js`;
207
210
  const newCmd = `node ../vTasks/index.js && ${oldCmd}`;
208
211
  const newContent = packageContent.replace(oldCmd, newCmd);
209
212
  fs.writeFileSync(packagePath, newContent);
213
+ console.log(LOG_COLORS.GREEN, "React app start script modified");
210
214
  } else {
211
215
  console.log(LOG_COLORS.YELLOW, "React app start script not found");
212
216
  }
@@ -221,6 +225,7 @@ node ./vTasks/index.js`;
221
225
  const newCmd = `node ../vTasks/index.js && ${oldCmd}`;
222
226
  const newContent = packageContent.replace(oldCmd, newCmd);
223
227
  fs.writeFileSync(packagePath, newContent);
228
+ console.log(LOG_COLORS.GREEN, "Next app dev script modified");
224
229
  } else {
225
230
  console.log(LOG_COLORS.YELLOW, "Next app dev script not found");
226
231
  }
@@ -235,6 +240,7 @@ node ./vTasks/index.js`;
235
240
  const newCmd = `node ../vTasks/index.js && ${oldCmd}`;
236
241
  const newContent = packageContent.replace(oldCmd, newCmd);
237
242
  fs.writeFileSync(packagePath, newContent);
243
+ console.log(LOG_COLORS.GREEN, "Server app start script modified");
238
244
  } else {
239
245
  console.log(LOG_COLORS.YELLOW, "Server app start script not found");
240
246
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vtasks-automate-cli",
3
- "version": "0.4.7",
3
+ "version": "0.4.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"