Files
speckle-server/scratch/engine_web-ifc/examples/viewer/makesrc.js
T
huanld 1686f08040
Release pipeline / Get version (push) Has been cancelled
Release pipeline / Get Chart Name (push) Has been cancelled
Release pipeline / tests (push) Has been cancelled
Release pipeline / builds (push) Has been cancelled
Release pipeline / builds-ghcr (push) Has been cancelled
Release pipeline / test-deployments (push) Has been cancelled
Release pipeline / deploy (push) Has been cancelled
Release pipeline / Helm chart oci (push) Has been cancelled
Release pipeline / npm (push) Has been cancelled
Release pipeline / snyk (push) Has been cancelled
feat: commit IFC-toolkit and engine_web-ifc source code
2026-04-16 07:47:58 +07:00

19 lines
517 B
JavaScript

const wifcapi = "../../dist/web-ifc-api-node.d.ts";
const ifc_schema = "../../dist/ifc-schema.d.ts";
const fs = require("fs");
const wifcapi_data = fs.readFileSync(wifcapi).toString();
const ifc_schema_data = fs.readFileSync(ifc_schema).toString();
let escape = (s) => {
return JSON.stringify(s.replace(/export/g, "")).slice(1, -1);
}
let tsContent = `
export let wifcapi = "${escape(wifcapi_data)}";
export let ifc_schema = "${escape(ifc_schema_data)}";
`;
fs.writeFileSync("ts_src.js", tsContent);