A Place For Me To Leave My Thoughts

Don't Hold Me To Anything Here

Javascript/Node Build System for Sublime

To be able to build Javascript in Sublime Text, it’s necessary to add a new Build System.

To be able to do that, it’s necessary to first have Node installed, so head over to Node.js homepage to install node.js first.

With the Sublime Text program open, navigate to Tools -> Build System -> New Build System ...

And add the following:

Node.sublime-build
1
2
3
4
{
    "cmd": ["/usr/local/bin/node", "$file"],
    "working_dir": "${project_path:${folder}}"
}

It might be necessary to adjust the path to node for your own setup.

Now save, restart Sublime Text, and you should be able to build Javascript with Sublime Text!

Comments