Skip to content

Commit

Permalink
Update ABAP template (#636)
Browse files Browse the repository at this point in the history
  • Loading branch information
iliyan-velichkov authored Aug 23, 2024
1 parent 8c6d180 commit 542e7b9
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 42 deletions.
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{
"name" : "kronos-api",
"private" : true,
"version" : "1.0.0",
"scripts" : {
"transpile" : "rm -rf output && abap_transpile abap_transpile.json",
"lint" : "abaplint --config abaplint.json"
"name": "kronos-api",
"private": true,
"version": "1.0.0",
"scripts": {
"transpile": "rm -rf output && abap_transpile abap_transpile.json",
"lint": "abaplint --config abaplint.json"
},
"dependencies" : {
"buffer" : "^6.0.3",
"@abaplint/runtime" : "^2.8.27",
"@abaplint/cli" : "^2.110.1",
"@abaplint/transpiler-cli" : "^2.8.27"
"dependencies": {
"buffer": "^6.0.3",
"@abaplint/runtime": "^2.10.9",
"@abaplint/cli": "^2.112.17",
"@abaplint/transpiler-cli": "^2.10.9"
},
"author" : "codbex",
"license" : "EPL"
"author": "codbex",
"license": "EPL"
}
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
{
"name" : "{{projectName}}",
"private" : true,
"version" : "1.0.0",
"scripts" : {
"transpile" : "rm -rf output && abap_transpile abap_transpile.json",
"lint" : "abaplint --config abaplint.json",
"unit" : "npm run transpile && echo RUNNING && node dist/abap/index.mjs && echo OK",
"test" : "npm run lint && npm run unit",
"run" : "node dist/run.mjs"
"name": "{{projectName}}",
"private": true,
"version": "1.0.0",
"scripts": {
"transpile": "rm -rf output && abap_transpile abap_transpile.json",
"lint": "abaplint --config abaplint.json",
"unit": "npm run transpile && echo RUNNING && node dist/abap/index.mjs && echo OK",
"test": "npm run lint && npm run unit",
"run": "node dist/run.mjs"
},
"dependencies" : {
"buffer" : "^6.0.3",
"@abaplint/runtime" : "^2.8.27",
"@abaplint/cli" : "^2.110.1",
"@abaplint/transpiler-cli" : "^2.8.27"
"dependencies": {
"buffer": "^6.0.3",
"@abaplint/runtime": "^2.10.9",
"@abaplint/cli": "^2.112.17",
"@abaplint/transpiler-cli": "^2.10.9"
},
"author" : "",
"license" : "EPL"
}
"author": "",
"license": "EPL"
}
Original file line number Diff line number Diff line change
@@ -1,19 +1,33 @@
{
"guid" : "{{projectName}}",
"actions" : [
"guid": "{{projectName}}",
"actions": [
{
"name" : "build",
"commands" : [
"name": "Transpile ABAP",
"commands": [
{
"os" : "mac",
"command" : "sh build-mac.sh"
"os": "mac",
"command": "sh build-mac.sh"
},
{
"os" : "linux",
"command" : "sh build-linux.sh"
"os": "linux",
"command": "sh build-linux.sh"
}
],
"publish" : "true"
"publish": "true"
},
{
"name": "Build TypeScript",
"commands": [
{
"os": "unix",
"command": "tsc"
},
{
"os": "windows",
"command": "cmd /c tsc"
}
],
"registry": "true"
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ async function initialize() {
await initializeABAP();
}

await initialize();
export async function execute(parameters = {}) {
await initialize();
return await zcl_abap_app.run(parameters);
}

await zcl_abap_app.run();
const result = await execute();
console.log("Result: " + JSON.stringify(result));

0 comments on commit 542e7b9

Please sign in to comment.