Skip to content

update #16

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions extra.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import * as fs from "node:fs";

// workaround for the class_constructor

const filename = "./output/zcl_excel_worksheet.clas.mjs";
let contents = fs.readFileSync(filename).toString("utf8");
contents = `await import("./cl_abap_elemdescr.clas.mjs");\n` + contents;
fs.writeFileSync(filename, contents);
24 changes: 12 additions & 12 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
"clone": "npm run clone1 && npm run clone2 && npm run clone3",
"dev": "webpack serve --mode development --env development",
"webpack": "webpack",
"transpile": "abap_transpile abap_transpile.json",
"transpile": "abap_transpile abap_transpile.json && node extra.mjs",
"test": "npm run clone && rm -rf input && mkdir input && node abap.mjs && npm run transpile && node examples.mjs && npm run webpack"
},
"author": "",
"license": "MIT",
"devDependencies": {
"@abaplint/monaco": "^2.113.7",
"@abaplint/monaco": "^2.113.8",
"@abaplint/runtime": "^2.10.18",
"@abaplint/transpiler": "^2.10.18",
"@abaplint/transpiler-cli": "^2.10.18",
Expand All @@ -36,7 +36,7 @@
"string_decoder": "^1.3.0",
"style-loader": "^4.0.0",
"ts-loader": "^9.5.1",
"typescript": "^5.5.4",
"typescript": "^5.6.2",
"webpack": "^5.94.0",
"webpack-cli": "^5.1.4",
"webpack-dev-server": "^5.1.0"
Expand Down
Binary file modified public/zcl_excel_demo1.xlsx
Binary file not shown.
Binary file modified public/zcl_excel_demo2.xlsx
Binary file not shown.
Binary file modified public/zcl_excel_demo4.xlsx
Binary file not shown.
Binary file modified public/zcl_excel_demo5.xlsx
Binary file not shown.
Binary file modified public/zcl_excel_demo6.xlsx
Binary file not shown.
Binary file modified public/zcl_excel_demo7.xlsx
Binary file not shown.
Binary file modified public/zcl_excel_demo8.xlsx
Binary file not shown.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ import * as abaplint from "@abaplint/core";
import * as abapMonaco from "@abaplint/monaco";
import Split from "split-grid";
import { abapfiles } from "./abap.js";
import * as initabap from "../output/init.mjs";
import "../output/_init.mjs";
import {Buffer} from "buffer";
console.dir(initabap); // just to make sure its not shaked away
// console.dir(initabap); // just to make sure its not shaked away

const reg = new abaplint.Registry(new abaplint.Config(JSON.stringify(config)));
for (const filename in abapfiles) {
Expand Down