Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

🚀 fast JavaScript 4 Eclipse Vert.x

License

NotificationsYou must be signed in to change notification settings

reactiverse/es4x

Repository files navigation

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

CIJoin the chat at https://gitter.im/es4x/LobbySecurity Status

Why?

10 things I've learned making the fastest JS runtime in the world

JavaScript is fast, and this is the way to make it even faster 🚀🚀🚀

Usage

Create a project:

# create a generic projectmkdir my-appcd my-app# init the projectnpm init @es4x project# add other dependencies...npm install @vertx/unit --save-devnpm install @vertx/core --save-prod# will trigger the download# of the java dependenciesnpm install

Create yourindex.js:

/// <reference types="es4x" />//@ts-checkvertx.createHttpServer().requestHandler(function(req){req.response().end("Hello!");}).listen(8080);console.log('Server listening at: http://localhost:8080/');

and yourindex.test.js:

import{TestSuite}from'@vertx/unit';constsuite=TestSuite.create("the_test_suite");suite.test("my_test_case",function(context){vars="value";context.assertEquals("value",s);});suite.run();
npm start

Profit!

Documentation

For more documentation please seedocs.


[8]ページ先頭

©2009-2025 Movatter.jp