Sweet.apex

  • Docs
  • Tutorials
Docs Menu
  • Sweet.apex Core
    • Transpilation
    • Grammar
    • Command
    • Config
  • Features
    • Action
    • Apex Doc
    • Array Creation
    • Aspect
    • Cast
    • Default Value
    • Enum
    • File
    • Function
    • Identity
    • Injection
    • Lambda
    • Log
    • Mod
    • Not Null
    • Operator
    • Optional
    • Reflection
    • Rethrow
    • Switch
    • Template String
    • Template
    • Script
    • Tagged String
    • Annotation
    • Nullable
    • Var
    • Val
    • Map Access
    • Constructor
    • Transaction
    • Destructure
    • Import Static
    • Pipeline
    • Varargs
    • Patch
    • Import As
  • Plugin Development
    • Feature
    • Test Case

Config Guide

Config

Configuration

The configuration in Sweet.apex exists in config.json.

You can also specify some config items through command line options, which take a higher priority than configuration.

Configuration Items

Config ItemDescription
apiVersionThe api version of the generated Apex classes
isDebugEnabledWhether debug is enabled, same as '-v' option
isPerfEnabledWhether performance logging is enabled, same as '--perf' option
generateDocWhether to generate apexdoc, 'off' turns it off, 'sync' does the synchronous generating and 'async' does the asynchronous
srcDirThe source directory
destDirThe destination directory
docDirWhere the apexdoc is generated
fileSrcDirThe source directory of the files
fileDestDirThe destination directory of the files, compiled to static resources
templateDirThe directory where the templates reside
scriptDirThe directory for the generated javascript
scriptNameThe generated javascript file name
scriptAppNameThe main javascript object name exposed
silentWhether silent mode is enabled, same as '-s' option
cleanWhether to clean all cache, same as '-c' option
ignoreErrorsWheter to continue in case of errors, same as '-i' option
scanExcludePatternsThe pattern of files to be excluded in the scanning stage
generatedClassCommentSet the generated class comment
generateJavaScriptCompile Sweet Apex to JavaScript, for development purpose only
featuresThe list of features enabled, separated by comma

Contribute on Github! Edit this section.