Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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");
        }
Ejemplo n.º 3
0
        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");
            }
        }