Skip to content

Instantly share code, notes, and snippets.

@jottenlips
Forked from therealklanni/ES6.sublime-build
Last active June 19, 2018 20:15
Show Gist options
  • Save jottenlips/6a581b8ffbbc77a0a4662a5053696bba to your computer and use it in GitHub Desktop.
Save jottenlips/6a581b8ffbbc77a0a4662a5053696bba to your computer and use it in GitHub Desktop.
ES6 REPL in Sublime Text

ES6 REPL in Sublime Text with NVM

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": ["/Users/<username>/.nvm/versions/node/v9.2.0/bin/babel-node $file"],
"shell": true,
"selector": "*.js"
}
@jottenlips
Copy link
Author

for use with nvm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment