There are 3 types of tasks in Termite, shell, cp and server
Shell tasks accepts 3 options, Command (Mandatory), Cwd (Optional) and watch.
Specifies the command to run. Is also possible specify a list of commands. In this case, the commands are run sequentially.
The current directory will be changed to cwd before the command is executed.
List of files to watch for modifications. After any change, the command is executed again. It is possible to use shell-style wildcards (* or **). It is also possible specify folders to watch, in this case /some/path/ and /some/path/** have the same effect. If watch is omitted, the command is run only once.
Copy files is a very common operation, thats the reason have a task for this operation, although would we possible to use a command task for copy files. For cp tasks there are 3 options, Source (Mandatory), Dest (Mandatory) and watch.
A file, or list of files to copy. Shell-style wildcards are allowed.
Where copy the file or files. Should be a folder, if doesn’t exist is created. Be careful, files are overwritten without any warning.
Specifies if the source files should be monitored. It is boolean value, by default the value is set to False.
This task start an HTTP server. If you are watching any files, your browser is automatically refreshed after every change. Has only one option, Path (Mandatory).
Serves files from this directory.