Skip to content

adrienreveleau/fire

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 

Repository files navigation

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

About

Universal Hot Reloading

Topics

Resources

License

Stars

Watchers

Forks

Contributors

Languages