Currently babili-cli is an alias to babel-cli with babili-preset and there is no way to specify babili options via CLI.
So, a new CLI that takes in babili-preset options () and some of babel options - for example - sourcemap support.
Examples:
babili --mangle=false # or babili --no-mangle
babili --mangle.topLevel
babili --mangle.blacklist=Foo,Bar,Baz
babili --unsafe false
babili --unsafe.guards false # for option group
babili --unsafe.typeConstructors.string false # for delegating options to plugins in a group
All the options in Preset Options should be available from the CLI.
File API: (examples)
babili --unsafe=false /path/to/input.js # outputs to STDOUT
babili --unsafe=false --out /path/to/out/dir /path/to/input/dir/*.js # takes multiple arguments
babili --unsafe=false --out /path/to/out --source-map /path/to/input.js # outputs sourcemap
# Option to provide input sourcemap -
# Can be --input-source-map. But need some way to do for multiple files
# Or can just NOT have support for soucemaps for multiple files via CLI
Related:
Currently babili-cli is an alias to babel-cli with babili-preset and there is no way to specify babili options via CLI.
So, a new CLI that takes in babili-preset options () and some of babel options - for example - sourcemap support.
Examples:
All the options in Preset Options should be available from the CLI.
File API: (examples)
Related:
babili --versionshows babel-cli version instead of babili version #418