Compiler

compile. Compiler

new Compiler(sourcePathList, bm, flatten, outputFull)

A reusable Compiler for Democracy.js with a search path and custom outputter.

Parameters:
Name Type Description
sourcePathList Array

of strings for local directories. Can omit the ./ for relative paths.

bm Object

optional, a BuildsManager if you've already created one with the inputters and outputters you need, possibly shared with a Linker and Deployer.

flatten Boolean

whether to save a flattened source file into /sourcesFlattened/${sourceFileName}

outputFull Boolean

where to save fill compile outputs into /compileOutputs/$(sourceFileName}

Source: