ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Lebab ES6 Transform

by uniibu ST3 New

A sublime package to easily transform your code to ES6

Details

Installs

  • Total 17
  • Win 12
  • OS X 3
  • Linux 2
May 27 May 26 May 25 May 24 May 23 May 22 May 21 May 20 May 19 May 18 May 17 May 16 May 15 May 14 May 13 May 12 May 11 May 10 May 9 May 8 May 7 May 6 May 5 May 4 May 3 May 2 May 1 Apr 30 Apr 29 Apr 28 Apr 27 Apr 26 Apr 25 Apr 24 Apr 23 Apr 22 Apr 21 Apr 20 Apr 19 Apr 18 Apr 17 Apr 16 Apr 15 Apr 14 Apr 13
Windows 0 1 1 1 2 1 0 0 1 1 2 6 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
OS X 0 0 0 0 0 1 1 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 0 0 0 0 0 0 0 0
Linux 0 0 0 0 1 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 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:

  1. No longer needs Nodejs. The bundled lebab versions are already packed with Nodejs v8.9.0
  2. 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.

  1. Within Sublime Text, bring up the Command Palette and type install. Among the commands you should see Package 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.
  2. When the plugin list appears, type lebab. Among the entries you should see Lebab-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.