@appthreat/atom
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -18,3 +18,3 @@ #!/usr/bin/env node | ||
const ASTGEN_VERSION = "3.1.0"; | ||
const ASTGEN_VERSION = "3.4.0"; | ||
@@ -21,0 +21,0 @@ const babelParserOptions = { |
16
index.js
@@ -16,13 +16,13 @@ #!/usr/bin/env node | ||
const LOG4J_CONFIG = join(dirName, "plugins", "log4j2.xml"); | ||
const ATOM_HOME = join(dirName, "plugins", "atom-1.0.0"); | ||
const APP_LIB_DIR = join(ATOM_HOME, "lib"); | ||
export const LOG4J_CONFIG = join(dirName, "plugins", "log4j2.xml"); | ||
export const ATOM_HOME = join(dirName, "plugins", "atom-1.0.0"); | ||
export const APP_LIB_DIR = join(ATOM_HOME, "lib"); | ||
const freeMemoryGB = Math.max(Math.floor(freemem() / 1024 / 1024 / 1024), 4); | ||
const JVM_ARGS = | ||
export const JVM_ARGS = | ||
"-XX:+UseG1GC -XX:+ExplicitGCInvokesConcurrent -XX:+ParallelRefProcEnabled -XX:+UseStringDeduplication -XX:+UnlockExperimentalVMOptions -XX:G1NewSizePercent=20 -XX:+UnlockDiagnosticVMOptions -XX:G1SummarizeRSetStatsPeriod=1"; | ||
const JAVA_OPTS = `${process.env.JAVA_OPTS || ""} -Xms${Math.round( | ||
export const JAVA_OPTS = `${process.env.JAVA_OPTS || ""} -Xms${Math.round( | ||
Math.floor(freeMemoryGB / 2) | ||
)}G -Xmx${freeMemoryGB}G ${JVM_ARGS}`; | ||
const APP_MAIN_CLASS = "io.appthreat.atom.Atom"; | ||
const APP_CLASSPATH = join( | ||
export const APP_MAIN_CLASS = "io.appthreat.atom.Atom"; | ||
export const APP_CLASSPATH = join( | ||
APP_LIB_DIR, | ||
@@ -39,3 +39,3 @@ "io.appthreat.atom-1.0.0-classpath.jar" | ||
const executeAtom = (atomArgs) => { | ||
export const executeAtom = (atomArgs) => { | ||
if (!detectJava()) { | ||
@@ -42,0 +42,0 @@ // If we couldn't detect java but there is a JAVA_HOME defined then |
{ | ||
"name": "@appthreat/atom", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Create atom (⚛) representation for your application, packages and libraries", | ||
@@ -5,0 +5,0 @@ "exports": "./index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
115171685
167