![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
vertx-scripts
Advanced tools
This is a helper dev package to work with Eclipse Vert.x JS/TS projects.
Included scripts:
Init will bootstrap a pom.xml
file from the package.json
. The maven
pom file can be customized by supplying a handlebars template named
.pom.xml
.
By default both groupId
and artifactId
will map to the package json
name
property, the version will map to the version
property and the
main verticle will map to the main
property.
All entries in files
will be added to the final fatJar
with the caveat
that directories must be sufixed with /
so maven can understand
how to handle it.
In order to use this script in your project you should add the following to
your package.json
scripts:
{
"scripts": {
"postinstall": "vertx-scripts init"
},
"devDependencies": {
"vertx-scripts": "^1.1.4"
}
}
You can add normal dependencies as normal too.
This script will delegate to vert.x launcher, it will invoke the command you want to run and pass all arguments to it.
There are a couple of helper.
-d
will start the JVM in debug mode listening on port 9797-t
will use the test
classpath instead of the runtime
classpathWhen no arguments are passed the main verticle is derived from the
package.json
main
property. When the test classpath is enabled then
this value is suffixed by .test.js
.
An example running tests would be after adding vertx-unit
to the
devDependencies
:
{
"scripts": {
"test": "vertx-scripts launcher test -v"
},
"devDependencies": {
"vertx-scripts": "^1.1.4",
"@vertx/unit": "3.5.3"
},
"dependencies": {
"@vertx/core": "3.5.3"
}
}
This script will package your application as a fatJar so you can easily deploy it and distribute.
{
"scripts": {
"package": "vertx-scripts package -c"
},
"devDependencies": {
"vertx-scripts": "^1.1.4"
},
"dependencies": {
"@vertx/core": "3.5.3"
}
}
Once you have your code packaged you can run it as a runnable jar or even
run it using the shell
. Be aware that the shell
not not node
but
Nashorn the JVM JavaScript engine. You can run it as:
jjs -cp target/yourapp-1.0.0-fat.jar
or from the script.
Once the REPL
starts you can load vert.x and your code e.g.:
// this will initialize all the Vert.x Runtime Objects
load('classpath:vertx.js');
// run your verticle:
require('path/to/your/verticle');
FAQs
Utilities to work with Eclipse Vert.x
The npm package vertx-scripts receives a total of 2 weekly downloads. As such, vertx-scripts popularity was classified as not popular.
We found that vertx-scripts demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.