public void RunTask(string name) { NodeJS tasks = new NodeJS(); tasks.addEventListener("exit", delegate(Dom.Event e){ TaskList = (e as NodeEvent).stdOutput; }); // Run the task by its name (blank runs default task): tasks.run("gulp", name); }
public void ListTasks() { NodeJS tasks = new NodeJS(); tasks.addEventListener("exit", delegate(Dom.Event e){ TaskList = (e as NodeEvent).stdOutput; }); // Run the task list gulp proc: tasks.run("gulp", "--tasks"); }
public void OnEnable() { // Ensure gulptask is installed: NodeJS installerNode = new NodeJS(); if (installerNode.exists("gulp")) { CheckingInstall = false; ListTasks(); } else { installerNode.addEventListener("exit", delegate(Dom.Event e){ CheckingInstall = false; ListTasks(); }); // Start the install now: installerNode.install("gulp"); } }