Compiler.Paths
Paths commonly used by the compiler.
Search the filesystem for the root of a Gren project, starting with the current working directory and moving up towards the filesystem root.
Similar to projectRoot, but returns the Path
to the gren.json
file of a project.
A system specific Path
to a directory where it's common to cache things. The compiler
will use this path to store package sources and the backend binary.
Construct a CacheRoot using the current Platform
, environment variables,
the user's home directory and the current compiler version.
Convert the CacheRoot to a Path
.
The Path
where we'll store the backend binary.
The Path
where we'll store package sources prior to turning them into
gren_packages
bundles.
The Path
for the project that backs the gren repl
command.
Checks to see if the given Path
points to a real file.