exasol / extension-manager

Exasol extension-manager
MIT License
2 stars 0 forks source link

Speed up building extensionForTesting #139

Closed kaklakariada closed 1 year ago

kaklakariada commented 1 year ago

EM uses extensionForTesting as an extension in integration tests. This extension is written in typescript. The extension is a template with placeholders. Each test does the following steps:

  1. It fills the placeholders
  2. Writes the extension TS file to a temp folder
  3. Runs npm run build which
    1. Runs TypeScript compiler tsc
    2. Bundles the JS to a single file using esbuild

We can speedup this process by converting the extension file to pure JavaScript, thus saving the tsc step.

Disadvantage of this change: The extensionForTesting is not type-checked against the extension-manager-interface.

Test results

Original TypeScript

Pure JavaScript