Cli usage

Now that the cli is installed we can start using it. There are 3 commands in total:

htx # or 'htx run' if you prefer that
htx watch ./path/to/folder/to/watch
htx init

htx run

This command converts either the default pages folder (./src/pages) or one that is defined in the htx_config.json You can see this as a 'build' command.

htx watch

This one is simular to the run command, but it detects changes in the folder you specify (see example at the top on how to use it) and reruns the run command. It is worth noting that because of how windows works the program will ignore changes for 5 seconds after a change is detected, because on windows there sometimes are multiple events for 1 change. You can see this as a 'dev' command.

htx init

Usually once you start a project it's a good idea to create a htx_config.json file. This command automaticly generates a configuration file with the default settings. I'll explain the config file it self later on TODO: Explain config file