Executing Gulp/Grunt tasks with a simple click



  • Tired of having to manually open Terminal and type “gulp build / grunt watch” every time you want to execute a task? This quick tutorial will show you how to run the tasks with a simple mouse click using Freeter.

    0_1486735115326_intro.png

    Setting up projects

    First you need to add your projects to Freeter and specify paths to directories where the tasks will be executed in.

    1. Open Freeter
    2. Click “Manage Projects”

    0_1486735142380_manage-projects.png

    1. Click "Add Project"

    0_1486735185198_add-project.png

    1. Select Project Directory. This should be a root directory of the project. It’s not a problem if the tasks should be executed in a sub-directory.
    2. Type Project Name and set a project icon

    0_1486735222582_project-settings.png

    Adding common tasks

    If you use same task names and a similar file structure in many projects, use Commands tab for these tasks. Commands tab hosts common command lines and enables you to execute them in Project directory.

    1. Move the mouse pointer over Commands tab and click “Manage Commands”

    0_1486735250724_manage-commands.png

    1. Click “Add Command”

    0_1486735271504_add-command.png

    1. Type Command Name

    2. Add Gulp/Grunt command to Command Lines. If the task should be executed in a subdirectory, then add a “cd” command to change the “current working directory”.

    0_1486735298442_command-settings.png

    Adding project-specific tasks

    In Freeter each project has own set of dashboards allowing you to gather all project-specific things in one place with the use of widgets. And, for executing command-lines from a dashboard there is Commander widget.

    1. Click “Edit Layout”

    0_1486735318255_edit-layout.png

    1. Move the mouse pointer over Add Widget tab and click “Commander”

    0_1486735335253_commander-widget.png

    1. Click “Configure Widget” on the widget header

    0_1486735349062_configure-widget.png

    1. Type Action Name
    2. Add Gulp/Grunt command to Command Lines

    0_1486735393862_commander-settings.png

    Executing tasks

    Now every time you want to execute a task, just press Cmd (or Ctrl) + Shift + F to call Freeter and click on the command. Freeter will do the rest.


Log in to reply
 

Looks like your connection to Freeter Forum was lost, please wait while we try to reconnect.