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

Plugin Development Guide

Plugin Development

Sweet.apex Plugin System

All Sweet.apex features are implemented as plugins in the src/features directory.

To implement your own feature, you need:

  • Create a new directory under src/features

  • Implement your feature in src/features/FeatureName/index.js

  • Register your feature in the feature list in config.json

  • Test your feature

  • Write test cases

  • Write documentations

Contribute on Github! Edit this section.