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

cfml-compiler

v1.0.6 CommandBox Modules

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

$ box install cfml-compiler

No collaborators yet.
     
  • {{ getFullDate("2020-04-17T11:03:32Z") }}
  • {{ getFullDate("2020-05-04T21:14:55Z") }}
  • 3,529
  • 13,105