🚀 fast JavaScript 4 Eclipse Vert.x
APACHE-2.0 License
Published by pmlopes about 4 years ago
es4x-pm
npm renamed to @vertx/create
Published by pmlopes over 4 years ago
logging.properties
Published by pmlopes over 4 years ago
security.policy
files to sandbox an application.d.ts
generation from plain java classesbyte
typeenum
to use proper enums, not string valuesSet
pg-sqlclient
Published by pmlopes over 4 years ago
typedef
to generated js files to better hint IDE supportjvmci
hiperf compile is activateddocgen
to allow generate manuals for modulesBuffer
(Java <=> JS)Throwable
as a type to JS
alias for non instantiable Error
Published by pmlopes almost 5 years ago
versions
commandtarget
Published by pmlopes almost 5 years ago
tsc
tsc
(but fixes have been pushed upstream)es4x
script will also take JAVA_OPTS
into consideration when runningaarch64
Published by pmlopes about 5 years ago
runtime.d.ts
to es4x.d.ts
and integrated the missing internal modules too..mjs
vertx
to 3.8.3Published by pmlopes about 5 years ago
Published by pmlopes about 5 years ago
Published by pmlopes about 5 years ago
Published by pmlopes about 5 years ago
pm
launcher that doesn't add itself to the classpathpm
lancher that picks the wrong java if GRAALVM_HOME
esm
, polyglot
, etc... run flags to jvm flags in order to beJsonObject
to be a Graal ProxyObject
(this allowsJsonArray
to be a Graal ProxyArray
(this is aPublished by pmlopes about 5 years ago
--polyglot
enables Graal Polyglot
access--prefix
allows usage from outside the CWD
Published by pmlopes about 5 years ago
Published by pmlopes about 5 years ago
Published by pmlopes over 5 years ago
process.on
event emitter.es4x-cli
as it has been replaced with es4x-pm
module
property.Published by pmlopes over 5 years ago
version
command to list all versionsjlink
command to create slim packagesvscode
command to generate launcher scriptsThis release introduces TypeScript
as a valid language to write vert.x code. Given the following package.json
:
{
"name": "example-ts",
"version": "0.0.1",
"private": true,
"main": "dist/index.js",
"scripts": {
"prestart": "tsc",
"start": "example-ts",
"postinstall": "es4x install"
},
"devDependencies": {
"typescript": "^3.2.2",
"es4x-pm": "^0.7.2"
},
"dependencies": {
"@vertx/core": "^3.6.3"
}
}
And the tsconfig.json
:
{
"compilerOptions": {
"outDir": "dist",
"sourceMap": true,
"noImplicitAny": true,
"module": "commonjs",
"target": "es5",
"allowJs": true
}
}
You can code:
/// <reference types="@vertx/core/runtime" />
vertx
.createHttpServer()
.requestHandler((req: any) => {
req.response()
.putHeader("content-type", "text/plain")
.end("Hello!");
}).listen(8080);
console.log('Listening at http://127.0.0.1:8080');
Published by pmlopes almost 6 years ago
This release marks the departure from maven as a toolchain tool. A small runtime should be installed either globally (recommended) or per project.
npm install -g es4x-pm
With the runtime you can use ES4X on your simple scripts e.g.:
#!/usr/bin/env es4x
vertx
.createHttpServer()
.requestHandler(function (req) {
req.response().end("Hello from ES4X!");
})
.listen(8080);
And run as:
./index.js
Docker is now the preferred way to deploy applications, once you're happy with your code:
es4x dockerfile
A `Dockerfile will be available in the current path.
docker build -t my-project:1.0.0 .
# Run your application with:
docker run --rm -it --net=host my-project:1.0.0
Published by pmlopes almost 6 years ago
This release marks the departure from maven as a toolchain tool. A small runtime should be installed either globally (recommended) or per project.
npm install -g es4x-pm
With the runtime you can use ES4X on your simple scripts e.g.:
#!/usr/bin/env es4x
vertx
.createHttpServer()
.requestHandler(function (req) {
req.response().end("Hello from ES4X!");
})
.listen(8080);
And run as:
./index.js
Docker is now the preferred way to deploy applications, once you're happy with your code:
es4x dockerfile
A `Dockerfile will be available in the current path.
docker build -t my-project:1.0.0 .
# Run your application with:
docker run --rm -it --net=host my-project:1.0.0
Published by pmlopes almost 6 years ago