Skip to content

Instantly share code, notes, and snippets.

@mishelen
Forked from therealklanni/ES6.sublime-build
Created March 31, 2016 21:38
Show Gist options
  • Save mishelen/098ec42141438c2cdb8394c2b8bd60b0 to your computer and use it in GitHub Desktop.
Save mishelen/098ec42141438c2cdb8394c2b8bd60b0 to your computer and use it in GitHub Desktop.
ES6 REPL in Sublime Text

ES6 REPL in Sublime Text

By adding this build system to Sublime, you can turn any "scratch" JS file into a ES6 REPL (or any ES6 JS file).

Save ES6.sublime-build to your Sublime Packages/User directory and select "ES6" as your build system. Press ⌘B to run the file in the current tab through Babel.

{
"cmd": ["/usr/local/bin/babel-node $file"],
"shell": true,
"selector": "*.js"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment