Es4x
🚀 fast JavaScript 4 Eclipse Vert.x
Install / Use
/learn @reactiverse/Es4xREADME
ES4X
This is the EcmaScript (5.1+) language support for Eclipse Vert.x
Why?
JavaScript is fast, and this is the way to make it even faster 🚀🚀🚀
Usage
Create a project:
# create a generic project
mkdir my-app
cd my-app
# init the project
npm init @es4x project
# add other 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="es4x" />
// @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.
Related Skills
Writing Hookify Rules
84.4kThis skill should be used when the user asks to "create a hookify rule", "write a hook rule", "configure hookify", "add a hookify rule", or needs guidance on hookify rule syntax and patterns.
review-duplication
99.5kUse this skill during code reviews to proactively investigate the codebase for duplicated functionality, reinvented wheels, or failure to reuse existing project best practices and shared utilities.
openhue
341.0kControl Philips Hue lights and scenes via the OpenHue CLI.
sag
341.0kElevenLabs text-to-speech with mac-style say UX.

