Command
The main entry of Sweet.apex is a node.js command line tool. And you run it like this:
node transpile.js The main entry of Sweet.apex is a node.js command line tool. And you run it like this:
node transpile.js The transpile.js expects three optional arguments.
node transpile.js [srcDir] [destDir] [features]| Argument Name | Description |
|---|---|
| srcDir | The source directory or the single file name, using './resources' by default |
| destDir | The destination directory, using './build' by default |
| features | The list of features enabled, separated by comma, using all features by default |
You can specify command options.
| Option Name | Description |
|---|---|
| -v | Show debug information |
| --perf | Show performance information |
| -s | Silent mode, disabling all prints |
| -c | Clean mode, removing all cache |
| -i | Ignore errors, continuing even if a file fails |
| -h | Show command line help |
| -e | Empty the generated class comment |
| -j | Generate JavaScript instead of Apex classes, for development purpose only |
Contribute on Github! Edit this section.