Skip to content

Latest commit

 

History

History
33 lines (28 loc) · 948 Bytes

File metadata and controls

33 lines (28 loc) · 948 Bytes

fire

Universal Hot reloading

Installation

$ git clone https://github.com/adrienreveleau/fire.git

Requirements

Python 3.11.4

$ pip install watchdog  

Lancement

$ 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.sh

Variables

CONFIG = {"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