EcmaScript Language Support for Eclipse Vert.x
Clone or download
Latest commit 5fd984e Jan 16, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
codegen avoid json null Jan 16, 2019
docs Fix shell related issues Jan 10, 2019
es4x-cli runtime support Dec 21, 2018
es4x fix inspector param which was overlaping Jan 14, 2019
examples bump Nov 12, 2018
generator simple cleanup Jan 16, 2019
pm Update for next development version Jan 10, 2019
.editorconfig initial import Mar 15, 2018
.gitignore ignore site builds Dec 12, 2018
.travis.yml upgrade graalvm Jan 16, 2019
CHANGELOG.md bump versions Dec 17, 2018
LICENSE Initial commit Mar 14, 2018
README.md fix travis link Jan 14, 2019
mkdocs.yml add the include plugin Jan 16, 2019
pom.xml bump graal to rc11 Jan 14, 2019
settings.xml update server id Mar 20, 2018

README.md

ES4X

This is the EcmaScript (5.1+) language support for Eclipse Vert.x

Build Status Join the chat at https://gitter.im/es4x/Lobby

Usage

Create a project:

# create a generic project
mkdir my-app
cd my-app
npm init -y
# init the es4x bits
npx es4x-cli init
# add dependencies
npm install @vertx/unit --save-dev
npm install @vertx/core --save-prod
# will trigger the download
# of the java dependencies
npm install

Create your index.js:

/// <reference types="@vertx/core/runtime" />
// @ts-check

vertx
  .createHttpServer()
  .requestHandler(function (req) {
    req.response().end("Hello!");
  })
  .listen(8080);

console.log('Server listening at: http://localhost:8080/');

and your index.test.js:

import { TestSuite } from '@vertx/unit';

const suite = TestSuite.create("the_test_suite");

suite.test("my_test_case", function (context) {
  var s = "value";
  context.assertEquals("value", s);
});

suite.run();
npm start

Profit!

Documentation

For more documentation please see docs.