JavaScript Awesome Development Environment (in Emacs) https://petton.fr/git/nico/jade

Nicolas Petton 2bacd4da0b Fix issue #1 2 months ago
screenshots 6e72c17e39 crop the debugger screenshot 6 months ago
test 87697c66f8 Add regression tests for jade-active-connections 3 months ago
.drone.yml 78afe28430 Replace travis builds with drone 3 months ago
.gitignore 7ae0983c03 Make console messages interactive as in direct repl evaluation 5 months ago
Cask 843b19dad7 Make websocket a runtime dependency 2 months ago
LICENSE eec403f827 Add LICENSE and readme 8 months ago
jade-backend.el fe482e2cc5 Fix jade-reload 3 months ago
jade-chrome.el 331651fa3e Handle errors in connections to Chrome 4 months ago
jade-debugger.el fc0c467db0 Fix debugger evaluation 3 months ago
jade-faces.el 3cab1efb16 Extract frames url face 4 months ago
jade-inspector.el 57ab364377 Fix the history of jade inspectors 6 months ago
jade-interaction.el fe482e2cc5 Fix jade-reload 3 months ago
jade-nodejs.el bd272a2d57 Add documentation to jade-nodejs.el 7 months ago
jade-render.el b7e6d0608e Better rendering of links 3 months ago
jade-repl.el 2bacd4da0b Fix issue #1 2 months ago
jade-scratch.el 3338606b24 Enable scratch buffer completions 3 months ago
jade-test-helpers.el 87697c66f8 Add regression tests for jade-active-connections 3 months ago
jade-webkit.el 93d36dc45b Add compatibility with the webkit protocol v1.2 3 months ago
jade.el 1ec4939d81 0.25 release 3 months ago
readme.md 93d36dc45b Add compatibility with the webkit protocol v1.2 3 months ago
run-tests.sh c6225418f2 Fix running tests 6 months ago

readme.md

Jade MELPA Build Status

JavaScript Awesome Development Environment (in Emacs)

Jade connects to a browser tab or nodejs process and provides many features for JavaScript development, including:

  • a REPL (with auto completion) & object inspection;
  • an inspector, with history and navigation;
  • a scratch buffer (M-x jade-scratch);
  • JavaScript evaluation in JS buffers with jade-interaction-mode;
  • a stepping Debugger, similar to edebug, or cider.

Screenshots

The REPL with company-mode

REPL

The REPL showing clickable output

REPL

The inspector

REPL

The stepping debugger, and an inspector on locals

REPL

Getting started

(Emacs 25 is required)

It's available on melpa:

M-x package-install jade

Connection to a chrom[e|ium] tab

Chrom[e|ium] >= 54.0 is required for Jade to properly work (debugging protocol v1.2).

Start chrom[e|ium] with the --remote-debugging-port flag:

chromium --remote-debugging-port=9222 https://gnu.org

Evaluate M-x jade-connect-to-chrome.

Connection to a nodejs process

Nodejs >= 6.9.1 is required for Jade to work.

Start a node process with the --inspect flag:

node --inspect myfile.js

Evaluate M-x jade-connect-to-nodejs.

If you wish to break on the first line of the application code, start node using:

node --inspect --debug-brk myfile.js

Connecting Jade to the node process will open a debugger on the first line of the application code.

JavaScript evaluation in JS buffers

Add the following to enable evaluation in all JS buffers:

(add-hook 'js2-mode-hook #'jade-interaction-mode)

Then C-x C-e will evaluate the node before the point, and C-c M-i will inspect the result.

The entire buffer can also be executed with jade-eval-buffer.

Missing features

Jade is young, here's a list of missing/wanted features

  • Code evaluation using C-x C-e from project JS buffers
  • Adding breakpoints (to remove the need for debugger statements)
  • Network inspector (could get inspiration from restclient.el)
  • DOM inspector
  • Start processes (chromium, node, grunt, gulp, etc.) from Emacs and attach a jade connection to it.

Backends

There is currently support for Chrom[e|ium], & nodejs. The firefox backend is currently missing.