Coder Social home page Coder Social logo

laiweiwei / es4x Goto Github PK

View Code? Open in Web Editor NEW

This project forked from reactiverse/es4x

0.0 2.0 0.0 15.88 MB

EcmaScript Language Support for Eclipse Vert.x

Home Page: https://reactiverse.io/es4x/

License: Apache License 2.0

Java 83.46% JavaScript 14.04% Shell 1.95% Batchfile 0.05% Dockerfile 0.50%

es4x's Introduction

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
npx es4x-pm 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.

es4x's People

Contributors

pmlopes avatar dependabot-support avatar sdnetwork avatar cbonnissent avatar gitter-badger avatar

Watchers

James Cloos avatar laiweiwei avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.