Skip to content

Commit

Permalink
Remove npm install execution before the Tasks build
Browse files Browse the repository at this point in the history
  • Loading branch information
LeftTwixWand committed Nov 7, 2024
1 parent 2c1c30e commit 2d5ec30
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/tasks/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,25 +49,16 @@ export class TasksModule {
}

const terminal = vscode.window.activeTerminal ?? vscode.window.createTerminal('Azure Pipelines');
// Build the command sequence

selectedTasks.forEach((task) => {
let commandSequence = `cd Tasks/${task} && npm install && cd.. && cd..`;
terminal.sendText(commandSequence);

switch (action) {
case 'build':
// terminal.sendText(`✅ Building task: ${task}\n`, false);
terminal.sendText(`node make.js build --task ${task}`);
break;
case 'test':
// terminal.sendText(`🧪 Testing task: ${task}\n`, false);
terminal.sendText(`node make.js test --task ${task}`);
break;
case 'deploy':
// terminal.sendText(`🚀 Deploying task: ${task}\n`, false);
// terminal.sendText(`Executing node make.js build --task ${task}`, false);

terminal.sendText(`tfx build tasks delete --task-id 7B5A6198-ADF8-4B16-9939-7ADDF85708B2`);
terminal.sendText(`tfx build tasks upload --task-path ./_build/Tasks/${task}`);
break;
Expand Down

0 comments on commit 2d5ec30

Please sign in to comment.