• Stars
    star
    1,128
  • Rank 41,247 (Top 0.9 %)
  • Language
    Python
  • License
    Do What The F*ck ...
  • Created about 13 years ago
  • Updated 9 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

nodejs snippets and bindings for Sublime Text 3

Nodejs Sublime Text 3 Package Build Status Build status

Overview

The Nodejs Sublime Text 3 Package provides a set of code completion, scripts and tools to work with nodejs.

Code Completion

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:

A picture of the file system context menu

Node Commands

You can access node commands in two ways.

  • Via the menu in Tools -> Node
  • By accessing the Command Palette and typing node

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)

Snippets

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.

Install

You can install this package from Sublime Text 3 package manager. Also you can install this package manually:

MacOSX

`git clone https://github.com/tanepiper/SublimeText-Nodejs.git ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/Nodejs`

Windows

`git clone https://github.com/tanepiper/SublimeText-Nodejs "%APPDATA%\Sublime Text 3\Packages\Nodejs"`

Linux

`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 package.json file.

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.

Build Systems

PLEASE NOTE: The build system will be refactored to provide different nodejs build systems (such as jake)

If you have a JavaScript file open, by selecting 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

TODO

  • 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
  • Provide an interface for writing JavaScript plugins

Author & Contributors

The original author of this package Tane Piper. At the time the project maintainer is Vardan Pogosian.

More Repositories

1

obsidian-garden

A knowledge management garden for https://obsidian.md, in which to grow your ideas
JavaScript
220
star
2

node-bitly

A Bit.ly library for node.js - This project is looking for a new maintainer
TypeScript
172
star
3

svelte-formula

Zero-Configuration Reactive forms for Svelte
TypeScript
126
star
4

mm-components

Music Markups components
TypeScript
49
star
5

cloud9-livecoffee-ext

A extension for Cloud9ide for CoffeeScript functionality
CoffeeScript
46
star
6

ngx-tinynodes

Monorepo for components released on NPM @tinynodes
TypeScript
38
star
7

jquery.ui.pwstrength

jQueryUI Password Strength Meter
JavaScript
29
star
8

npm-lint

A linter for npm & node package.json files with a focus on dependency security
TypeScript
26
star
9

dokku-parse-server

JavaScript
22
star
10

steal-ur-stuff

Steal Ur Stuff
21
star
11

sublime-todomanager

A simple ToDo list manager
Python
21
star
12

quorra

Hapi route handler that makes react-router your isomorphic server side router.
JavaScript
15
star
13

robots-webpack-plugin

A webpack plugin to output a robots.txt file with options per environment
JavaScript
14
star
14

web-serial-controller

A Web Serial API application inspired by Windows XP - Built with Svelte and RxJS Ninja
JavaScript
13
star
15

node-gitio

A nodejs module for accessing the git.io URL shortner
JavaScript
13
star
16

hapi-react-handler

A handler for rendering react files via react-router
JavaScript
13
star
17

cloud9-scratchpad

A scratchpad for random text and code you need to work with
CoffeeScript
13
star
18

webfs

Node.js FS API wrapper for the Web File System
JavaScript
12
star
19

nell

An opinionated nodejs clone of Octopress
JavaScript
10
star
20

Stochastic-Parrot

Polly The Stochastic Parrot - a Mastodon Bot that uses empty ChatGPT prompts to generate Toots.
JavaScript
8
star
21

dnode-upload-example

ABANDONED - A quick nodejs example of using Connect, Formidable + Dnode to handle uploads and return response of upload progress
JavaScript
7
star
22

pastemonkey

ABANDONED - An Ajax Pastebin for storing code snippets
PHP
6
star
23

browser-band

A Garageband-like app that plays any sound instruments via the browser midi interface
JavaScript
5
star
24

dnode-mediaplayer

ABANDONED - An attempt at streaming audio data over RPC
HTML
3
star
25

learning-android

ABANDONED - The source project for Learning Android
Java
2
star
26

techmech

PoC for a meta tool for Battletech
CSS
2
star
27

jmaps

ABANDONED - jMaps Google Maps library for jQuery < 1.5
JavaScript
2
star
28

jquery-password-meter

ABANDONED - Old code for a jQuery password meter. May do something with it one day
JavaScript
1
star
29

typedoc-plugin-ghpages-cname

A Typedoc Plugin for adding a CNAME file for Github Docs
TypeScript
1
star
30

node-simplesmtp

ABANDONED - A real simple SMTP client for node.js, handy for debugging
JavaScript
1
star
31

tane.dev

The generated output from hugo for tane.dev
HTML
1
star
32

gml-helpers

A collection of my helpers for Game Maker Studio 2
Game Maker Language
1
star
33

obsidian-gpt-helper

TypeScript
1
star
34

octopress_server

ABANDONED - This is a simple Express + Socket.IO server I am running my static Octopress site behind, to give it little more kick
JavaScript
1
star
35

astro-ssr-express-2

Tentei melhorar o astrojs-ssr-expressjs 1.
Astro
1
star