gren-compiler-library
This package makes it easy to communicate with the Gren compiler from JavaScript.
This library is compatible with Gren 0.3.0.
API
You can find more details in the documentation comments in the source code, but here's a short overview.
-
compilerVersion
: The version of the Gren compiler this package supports. -
compilerPath
: A string containing the actual location to where the Gren compiler will be installed. -
downloadCompiler()
: Download the Gren compiler, if it doesn't already exist atcompilerPath
. -
execute(path, args, options)
: Execute any command through the Gren compiler. -
installDependencies(path, options)
: Install all dependencies of project onpath
. -
compileProject(path, options)
: Compile the project onpath
. -
compileDocs(path, options)
: Extract documentation from project onpath
. -
validateFormatting(path, options)
: Check that project onpath
is compiled withgren format
. -
validateProject(path, options)
: Check that project onpath
compiles successfully.