Universal Hot reloading
$ git clone https://github.com/adrienreveleau/fire.gitPython 3.11.4
$ pip install watchdog $ python fire.py <pre-build cmd> <builder> <build dest> <exec cmd> Pour que votre fichier puisse être exécutable par fire il vous faudra exécuter la commande suivante :
$ chmod +x chemin/vers/votre/fichier.shCONFIG = {"logger": False, "logLVL": 0} # ex. --LOGGER=False --LOGLVL=0
FORMATS = [".js", ".h", ".cpp", ".css", ".scss", ".html", ".ts"]
BUILD_CMD = sys.argv[2] # ex. "ninja"
BUILD_DIR = os.path.join(os.path.dirname(os.path.realpath(__file__)), sys.argv[3]) # ex. ../build
START_CMD = f"{BUILD_DIR}/{sys.argv[4]}" # ex. htmlc
PREBUILD_CMD = sys.argv[1] # ex. ../pre_build.sh