nodejs snippets and bindings for Sublime Text 3
- Total 301K
- Win 176K
- OS X 77K
- Linux 48K
|Jul 23||Jul 22||Jul 21||Jul 20||Jul 19||Jul 18||Jul 17||Jul 16||Jul 15||Jul 14||Jul 13||Jul 12||Jul 11||Jul 10||Jul 9||Jul 8||Jul 7||Jul 6||Jul 5||Jul 4||Jul 3||Jul 2||Jul 1||Jun 30||Jun 29||Jun 28||Jun 27||Jun 26||Jun 25||Jun 24||Jun 23||Jun 22||Jun 21||Jun 20||Jun 19||Jun 18||Jun 17||Jun 16||Jun 15||Jun 14||Jun 13||Jun 12||Jun 11||Jun 10||Jun 9||Jun 8|
The Nodejs Sublime Text 3 Package provides a set of code completion, scripts and tools to work with nodejs.
The package code completion is generated from the main nodejs libraries and global namespaces. To invoke
the code completion start typing the namespace you want (For example, type
fs) and then Ctrl + Space, you get this:
You can access node commands in two ways.
- Via the menu in
Tools -> Node
- By accessing the Command Palette and typing
The current commands available are (with Windows binding, other bindings are provided):
- Run current script in node (Alt + R)
- Run current script in node debug (Alt + D)
- Run current script in node and arguments (Ctrl + Alt + r)
- Run current script in node debug and arguments (Ctrl + Alt + D)
- Uglify Code
- NPM Command
- Build documentation (builds the completion files)
Also included are some boilerplate snippets. They include functionality such as a http server, reading the contents of a directory, etc.
To access these snippets type
node in your editor followed by Ctrl + Space
If you have any boilerplate code you would like to see in here, get in touch.
You can install this package from Sublime Text 3 package manager. Also you can install this package manually:
`git clone https://github.com/tanepiper/SublimeText-Nodejs.git ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/Nodejs`
`git clone https://github.com/tanepiper/SublimeText-Nodejs "%APPDATA%\Sublime Text 3\Packages\Nodejs"`
`git clone https://github.com/tanepiper/SublimeText-Nodejs $HOME/.config/sublime-text-3/Packages/Nodejs`
After the package is installed, install Node.js packages needed for working the package built-in tools. You can to install either globaly by:
npm install -g commander@"~2.9.0" uglify-js@"~2.6.0" or localy by adding previously mentioned Node.js packages to your current project, either:
npm install commander@"~2.9.0" uglify-js@"~2.6.0" or manully editing your project
PLEASE NOTE: When your installed Node.js packages (previously mentioned) globaly, you also need to set the package
node_path setting. For that, go to the
Preferences -> Package Settings -> Nodejs -> Settings User.
PLEASE NOTE: The build system will be refactored to provide different nodejs build systems (such as jake)
Tools -> Build Systems -> Nodejs and
then hitting Ctrl + B, you will activate the node build system on your file and node will try to run it.
You may need to add a
path variable to the settings object for this if your node executable is not found
uglify_js.js and other ./tools/*.js scripts dosen't work when the package is installed by SublimeText package manager Use events API to install NodeJs dependicies for tools provided by the package Refactor plugin's classes inheritance in Nodejs.py Use events API to generate Sublime Text completions during installation phase depending on a version of installed NodeJs Check for nvm installation
- Replace the Nodejs.sublime-build to work with jake
Reorganise menu structure Improve code completion snippets where possible