Lebab ES6 Transform
A sublime package to easily transform your code to ES6
Details
Installs
- Total 759
- Win 461
- Mac 223
- Linux 75
Nov 21 | Nov 20 | Nov 19 | Nov 18 | Nov 17 | Nov 16 | Nov 15 | Nov 14 | Nov 13 | Nov 12 | Nov 11 | Nov 10 | Nov 9 | Nov 8 | Nov 7 | Nov 6 | Nov 5 | Nov 4 | Nov 3 | Nov 2 | Nov 1 | Oct 31 | Oct 30 | Oct 29 | Oct 28 | Oct 27 | Oct 26 | Oct 25 | Oct 24 | Oct 23 | Oct 22 | Oct 21 | Oct 20 | Oct 19 | Oct 18 | Oct 17 | Oct 16 | Oct 15 | Oct 14 | Oct 13 | Oct 12 | Oct 11 | Oct 10 | Oct 9 | Oct 8 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Mac | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Linux | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Readme
- Source
- raw.githubusercontent.com
Lebab ES6 Transform for SublimeText 3
A sublime package to easily transform your code to ES6
Installation
Note
The plugin uses a bundled version of Lebab using zeit/pkg which produces three executables files for Windows, Linux and MacOs. Therefor this package NO longer needs the following:
- No longer needs Nodejs. The bundled lebab versions are already packed with Nodejs v8.9.0
- No longer needs Lebab package and any of it's dependencies. The bundles lebab already includes all necessary dependencies.
Install plugin
Please use Package Control to install the plugin.
- Within Sublime Text, bring up the Command Palette and type
install
. Among the commands you should seePackage Control: Install Package
. If that command is not highlighted, use the keyboard or mouse to select it. There will be a pause of a few seconds while Package Control fetches the list of available plugins. - When the plugin list appears, type
lebab
. Among the entries you should seeLebab-ES6-Transform
. If that entry is not highlighted, use the keyboard or mouse to select it.
Options
format_on_save:
This will format your js file on each save. Default: true
show_warnings:
This will show any lebab warnings on your sublime panel. Default: true
transforms:
This plugin only enables the safest transforms from Lebab, but you can enable all or any of them by changing the transforms option in your user settings.
NOTE: To see a full list of transforms visit Lebab
Here are the default settings:
{
// runs lebab on the current js file upon saving
"format_on_save": true,
// shows the lebab warning message via sublime panel
"show_warnings": true,
// safe transforms https://github.com/lebab/lebab#safe-transforms
"transforms": [
"arrow",
"arg-rest",
"obj-method",
"obj-shorthand",
"class",
"let",
"includes",
"template",
"for-of",
"exponent",
"default-param",
"commonjs"
]
}
Contributing
If you find any bugs feel free to report them here.
Pull requests are also encouraged.