FORGEBOX Enterprise 🚀 - Take your ColdFusion (CFML) Development to Modern Times! Learn More...

cfml-compiler

v1.0.6 Public

cfml-compiler

CommandBox command to compile CFML

Example Usage

To compile a folder src and write the compiled files into a compiled folder using lucee 5.3.5:

box cfcompile sourcePath=./src destPath=./compiled [email protected]

Suppose now that you are building a docker container, or a CFML Lambda Function you don't need the source files, and you will eliminate the time it takes Lucee to compile your CFML on the first request:

box cfcompile sourcePath=./src --overwrite [email protected]

CFEngine

Currently only Lucee is supported. You should always specify a CFML engine that exactly matches the version that your code will run on. This way if there are any changes to the lucee compiler in a future version you won't run into incompatibale compiled classes.

Command Arguments

ArgumentRequiredDescription
sourcePathYFolder containing CFML code.
destPathNThe folder where compiled cfm/cfcs will be written. Defaults to source if not specified.
cfengineNThe version of lucee you are using, specified in commandbox cfengine format, eg: [email protected]
overwriteNPrevent prompting if source == dest

Dependencies (0)


Dev Dependencies (0)


 

$ box install cfml-compiler

No collaborators yet.
     
  • Apr 17 2020 11:03 AM
  • May 04 2020 09:14 PM
  • 334
  • 0
  • 127