Compile Selected ES6
[DEPRECATED] a sublime plugin for compiling the selected es6 code on the fly, since the babel sublime plugin did not provide this feature
Details
Installs
- Total 3K
- Win 2K
- Mac 894
- Linux 314
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 | Apr 12 | Apr 11 | Apr 10 | Apr 9 | Apr 8 | Apr 7 | Apr 6 | Apr 5 | Apr 4 | Apr 3 | Apr 2 | Apr 1 | Mar 31 | Mar 30 | Mar 29 | Mar 28 | Mar 27 | Mar 26 | Mar 25 | Mar 24 | Mar 23 | Mar 22 | Mar 21 | Mar 20 | Mar 19 | Mar 18 | Mar 17 | Mar 16 | Mar 15 | Mar 14 | Mar 13 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 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 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 |
Mac | 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 | 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
Compile Selected ES6 Package for Sublime Text 3
[DEPRECATED] This project has been deprecated – please use the official project babel-sublime instead
A sublime plugin for compiling the selected es6 code on the fly, since the babel sublime plugin did not provide this feature
Requirements
In order for build system to work you will need babel installed via npm and available in your PATH
.
Install
The easiest way to install this is with Package Control.
- Bring up the Command Palette (Command+Shift+p on OS X, Control+Shift+p on Linux/Windows).
- Select “Package Control: Install Package” (it'll take a few seconds)
- Select Compile Selected ES6 when the list appears.
Package Control will automatically keep the package up to date with the latest version.
Screenshots
Compile Select ES6
plugin supports both javascript ES6 sytax and JSX syntax. First you select the content you want to compile, then you right click the mouse and selectcompile es
menu.
- Now you got the compiled code.
Note that you can also use the keyboard shortcut
Option+Shift+d
to compile the code without using the mouse way.
- By default, the plugin will check synax error when you save the file. You can disable this feature by changing the plugin user setting
checkSyntaxOnSave
to false.
Settings
Go to Preferences > Package Settings > Compile Selected ES6 > Settings - User
to change settings.
Full details in the comments in Preferences > Package Settings > Compile Selected ES6 > Settings - Default
There's two ways to change the stage
option. One way is using the
plugin user setting. Another way is creating a .babelrc
file in the project directory. The .babelrc
file settings will override the plugin user settings.
Note if you changed the
stage
value in the settings, make sure you installed the latest version of Babel whose CLI support--stage
.
Issues & Feature Requests
Please use GitHub Issue Tracker to report any bugs and make feature requests.
Licensing
Licensed under permissive MIT-style license