Пример #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);
        }
Пример #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");
        }
Пример #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");
            }
        }