I have a clj
file which defines a schema. There are about 3 or 4 files that depend on the definition of that schema to generate functions. I would like it so that whenever the schema file changes, the dependent files are automatically reevaluated within the repl.
This is quite useful because re-evaluation is also needed when macros are changed. I've looked at load-file
but I don't think it does the trick. Are there any suggestion of how might one go about doing this?
I want to manually trigger a commented out form in A. Files B, C, D have a dependency on A. If A changes then B, C, D gets evaluated.
:reload-all
does the reverse, ie. A has a dependency on B, C and D and will evaluate all it's dependents.