- Add to deps:
libraryDependencies ++= Seq(
"ba.sake" % "hepek-core" % "0.2.0"
)
Core of the sbt-hepek.
This project contains two interfaces (Renderable
and RelativePath
)
and a single helper class (ClassycleDependencyUtils
).
Interfaces are essential to the sbt-hepek:
- All objects that are meant to be rendered must extend
Renderable
RelativePath
is used for getting a relative path to aRenderable
or another file (css, js or whatever)
The ClassycleDependencyUtils
class has one handy method called reverseDependencies
that returns Map[AtomicVertex, Set[AtomicVertex]]
.
Vertices here are actually Java bytecode classes.
It is used for optimized rendering of objects. When an object is changed and compiled, this method determines which other objects use it, so that they are rendered again too.
Special thanks to Classycle! :)