Gulp Tool Window
Use this tool window to run Gulp.js tasks The result of executing a task is shown in the Run tool window. The tool window shows the Gulp.js output, reports the errors occurred, lists the packages or plugins that have not been found, etc. The name of the last executed task is displayed on the title bar of the tool window.
Before you start
To open the Gulp tool window
By default GoLand does not recognize ES6 in Gulpfile.js and fails to build a tasks tree. To solve this problem, update the default Gulp.js run configuration.
To build a tasks tree from a ES6 Gulpfile.js
Under the Templates node, click Gulp.js.
In the Run/Debug Configuration: Gulp.js dialog box that opens, type
--harmonyin the Node options text box and click OK.
To build a tree of tasks
In the Gulp tool window, click on the toolbar and choose the required Gulpfile.js file from the list. By default, GoLand shows the Gulpfile.js file in the root of your project.
If you have another Gulpfile.js file, click Choose Gulpfile.js and select the Gulpfile.js file you need in the dialog that opens. GoLand adds a new node with the path to the chosen Gulpfile.js file on its title and builds a tasks tree under the new node.
To re-build a tree
To sort the tasks in a tree by their names
To run a task
Double-click the task.
Select the task in the tree and press Enter or choose Run <task name> from the context menu.
To run the default task
Select the root node in the tree, and choose Run default on the context menu of the selection.
To run several tasks
To navigate to the definition of a task
Click this button to have a tasks tree for another Gulpfile.js file built. Choose the required Gulpfile.js file from the list. GoLand builds a tasks tree and shows it under a separate node.
Click this button to remove the tasks tree under the selected node.
Click this button to have the tasks tree under the selected node re-built. You may need a tree re-built after updating the corresponding Gulpfile.js file because Gulp.js does not apply changes to trees on the fly.
Click this button to hide all the tasks trees and have only Gulpfile.js nodes displayed.
| Click this button to configure the current view and to change the viewing modes of the tool window, see Tool windows for details. Note that most of the menu items are options that you can turn on or off. An option which is on has a check mark to the left of its name. The Gulp-specific options are: |
Click this button to hide the tool window. To have it displayed again, chooseon the main menu. The tool window appears again showing all the previously built trees of tasks.
Context Menu of a Tree
Choose this menu item to open the Gulp Settings dialog and view or edit the Node.js configuration
Jump to Source
Choose this menu item to open the Gulpfile.js file for which the current tree is built.
Choose this menu item to have the tree of tasks under the selected node re-built.
Choose this menu item to save the path to the Gulpfile.js file according to which the current tree was built to the clipboard.
Choose this menu item to remove the tree of tasks under the selected node.
Context Menu of a Task
Run <task name>
Choose this menu item to run the selected task.
Debug <task name>
Choose this menu item to debug the selected task.
Edit <task name> settings
Choose this menu item to open the Run/Debug Configuration dialog box and edit the predefined settings for the selected task.
Jump to Source
Choose this menu item to open the Gulpfile.js file for which the current tree is built and navigate to the definition of the selected task.