• Stars
    star
    638
  • Rank 70,537 (Top 2 %)
  • Language
    Python
  • License
    MIT License
  • Created over 7 years ago
  • Updated 10 months ago

Reviews

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

Repository Details

JavaScript Enhancements is a plugin for Sublime Text 3. It offers not only a smart javascript autocomplete but also a lot of features about creating, developing and managing javascript projects (real-time errors, code refactoring, etc.).

JavaScript Enhancements Share on Twitter Share on Facebook

Minimum Sublime Build Version GitHub stars Gitter Build Status codecov license

Donate to this project using Paypal Donate to this project using Patreon Donate to this project using Open Collective Backers on Open Collective Sponsors on Open Collective

JavaScript Enhancements is a plugin for Sublime Text 3.

A little introduction to this plugin could be found in this css-tricks.com article: Turn Sublime Text 3 into a JavaScript IDE

This plugin uses Flow (javascript static type checker from Facebook) under the hood.

This is in BETA version for testing.

It offers better JavaScript autocomplete and also a lot of features about creating, developing and managing JavaScript projects, such as:

  • Cordova projects (run cordova emulate, build, compile, serve, etc. directly from Sublime Text!)
  • Ionic v1 and v2 (it includes also v3) projects (same as Cordova projects!)
  • Angular v1 and v2 (it includes also v4 and v5) projects
  • Vue projects (only about the creation at this moment, see the wiki)
  • React projects (only about the creation at this moment)
  • React Native projects (only about the creation at this moment. I will add also NativeScript support)
  • Express projects (only about the creation at this moment)
  • Yeoman generators
  • Local bookmarks project
  • JavaScript real-time errors
  • Code Refactoring
  • etc.

You could use it also in existing projects (see the Wiki)!

It turns Sublime Text into a JavaScript IDE like!

This project is based on my other Sublime Text plugin JavaScript Completions

Note: If you want use this plugin, you may want uninstall/disable the JavaScript Completions plugin, if installed.

OS SUPPORTED

  • Linux (64-bit)
  • Mac OS X
  • Windows (64-bit): released without the use of TerminalView plugin. For each feature (like also creating a project) will be used the cmd.exe shell (so during the creation of a project don't close it until it finishes!). Unfortunately the TerminalView plugin supports only Linux-based OS 😞 . See this workaround using WSL (Windows Subsystem for Linux).

Dependencies

In order to work properly, this plugin has some dependencies:

  • Sublime Text 3 (build 3124 or newer)
  • Node.js (6 or newer) and npm (nodejs.org or nvm)
  • TerminalView (only for Linux and Mac OS X) sublime text plugin (TerminalView)

Not required, but useful for typescript files (Flow wont work on this type of files):

Flow Requirements

It will use Flow for type checking and auto-completions.

  • Mac OS X
  • Linux (64-bit)
  • Windows (64-bit)

You can find more information about Flow on flow.org

Installation

With Package Control:

  • Run “Package Control: Install Package” command or click to the Preferences > Package Control menu item, find and install JavaScript Enhancements plugin.

Manually:

  1. Download latest release (DON'T CLONE THE REPOSITORY!) and unzip it into your Packages folder (go to Preferences > Browse Packages... menu item to open this folder)
  2. Rename the folder with JavaScript Enhancements name (THIS STEP IS IMPORTANT).

If all is going in the right way, you will see JavaScript Enhancements - installing npm dependencies... and, after a while, JavaScript Enhancements - npm dependencies installed correctly. messages in the status bar of Sublime Text 3. Now the plugin is ready!

Fixing node.js and npm custom path

If the plugin gives to you message errors like Error during installation: "node.js" seems not installed on your system... but instead you have installed node.js and npm (for example using nvm), then you could try to set your custom path in the Global settings of the plugin and then restart Sublime Text.

If you don't know the path of them, use which node/which npm (for Linux-based OS) or where node.exe/where npm (for Windows OS) to get it.

If this doesn't work too, then you could try to add the custom path that contains binaries of node.js and npm in the PATH key-value on the same JavaScript Enhancements settings file. This variable will be appended to the $PATH environment variable, so you could use the same syntax in it. After this you need to restart Sublime Text. Example of a global setting for Linux that uses nvm:

{
  // ...

  "PATH": ":/home/lorenzo/.nvm/versions/node/v9.2.0/bin",
  "node_js_custom_path": "node",
  "npm_custom_path": "npm",

  // ...
}

For Linux-based OS REMEMBER to add : (for Windows OS REMEMBER to add ;) at the begin of the PATH value!! Like I already said, it uses the same syntax for the $PATH environment variable.

Usage

See the Wiki.

Quick Overview

Auto-completions

Errors

Projects with terminal (TerminalView)

See the Wiki for complete examples and the other features.

Support

Issues/Questions

If you have any problems, create an issue (protip: do a quick search first to see if someone else didn't ask the same question before!). For small questions, you can use Gitter.

Email me for any questions or doubts about this project on: [email protected]

Feature request/enhancement

For feature requests/enhancement, create an issue or use Gitter.

Financial contributions

If this project helps you reduce time to develop and also you like it, please support it with a donation on Patreon, Open Collective or using PayPal 😄👍. Thanks!

paypal Become a Patron opencollective

Credits

Sponsors

Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [Become a sponsor]

Backers

Thank you to all our backers! 🙏 [Become a backer]

Contributors

This project exists thanks to all the people who contribute. [Contribute].

License

MIT License

More Repositories

1

flutter_inappwebview

A Flutter plugin that allows you to add an inline webview, to use a headless webview, and to open an in-app browser window.
Dart
3,107
star
2

flutter_browser_app

A Full-Featured Mobile Browser App (such as the Google Chrome mobile browser) created using Flutter and the features offered by the flutter_inappwebview plugin.
Dart
435
star
3

JavaScript-Completions

JavaScript Completions for sublime text. It helps you to write your scripts more quickly with hints and completions.
Python
356
star
4

flutter_appavailability

A Flutter plugin that allows you to check if an app is installed/enabled, launch an app and get the list of installed apps.
Dart
92
star
5

jackson-js

JavaScript object serialization and deserialization library using decorators. It supports also advanced Object concepts such as polymorphism, Object identity and cyclic objects.
TypeScript
90
star
6

deps-report

Generate reports about dependencies and dependents of your JavaScript/TypeScript files through an AST. It supports import and require statements.
JavaScript
84
star
7

flutter_inappwebview_examples

A collection of flutter_inappwebview project examples
Dart
67
star
8

A-Frame-example

A-Frame example showing the reconstructed facade of the St. Margherita church of l'Aquila (Italy) with some light animation and interactive panels.
JavaScript
7
star
9

flutter_inappbrowser

6
star
10

jackson-js-examples

This is an example repository that gives a simple example using the jackson-js library with Angular 9 for the client side and two examples for the server side: one using Node.js + Express + SQLite3 (with Sequelize 5) and another one using Node.js + LoopBack 4.
CSS
5
star
11

mlab-speed-test

Test your download and upload speed using speed.measurementlab.net
TypeScript
4
star
12

gifski-command

Node.js module for gifski GIF encoder CLI
TypeScript
3
star
13

npm-registry-open-api

NPM Registry Open API Specification
2
star
14

create-sublime-plugin-js

Create Sublime Text 3 plugin with JavaScript
JavaScript
2
star
15

StayFitServer

Java
2
star
16

video-gif-converter

Video to GIF and viceversa converter using ffmpeg and gifski
TypeScript
2
star
17

http-status-code-db

HTTP Status Code Database
TypeScript
1
star
18

http-request-method-db

HTTP Request Method Database
TypeScript
1
star
19

flutter_inappwebview-showcase-data

1
star
20

known-http-header-db

HTTP Header Database
TypeScript
1
star
21

test

JavaScript
1
star
22

pyv8-emmet-loader

PyV8 Emmet Loader is the loader of PyV8 used by Emmet for Sublime Text plugin. This is thought to be used for Sublime Text Plugin creation!
Python
1
star
23

minimize-json

Minimize your JSON files without making a bundle
TypeScript
1
star
24

java_travis_test

Java
1
star
25

pyv8-emmet-loader-sublime-text-plugin-example

This is a very simple plugin that evaluates JavaScript code using PyV8 Emmet Loader
Python
1
star
26

inappwebview.dev

Official flutter_inappwebview website
TypeScript
1
star