8 Commits

Author SHA1 Message Date
Joachim Van Herwegen
6248ed0938 refactor: Replace linting configurations
The previous package was outdated, preventing us from updating TS.
This one also lints YAML and JSON,
and applies many more rules to the test files,
explaining all the changes in this PR.
2023-11-02 09:49:17 +01:00
Joachim Van Herwegen
76248b9e16 chore: Log uncaught exceptions 2022-11-14 16:52:27 +01:00
Joachim Van Herwegen
c216efd62f
feat: Allow for custom CLI and variable options
* feat: (AppRunner) Mechanism to configure cli args and derive componentsjs vars from them implemented

* fix: (AppRunner) tidying

* fix: (AppRunner) tidying up

* fix: (AppRunner) runCli method made sync

* fix; (VarResolver) refactored to multiple files, and other stylistic fixes.

* chore: (AppRunner) Uses builder pattern for yargs base arguments setup to enable better typescript inference

* fix(AppRunner): refactoring AppRunner and VarResolver

* fix(AppRunner): refactoring AppRunner promise handling

* fix(AppRunner): verror dependency removal

* fix: Simplify CLI error handling

* feat: Use same config for both CLI and app instantiation

* fix: Update typings and imports

* feat: Split VariableResolver behaviour to 2 classes

* feat: Move default value behaviour from CLI to ValueComputers

* test: Add unit tests for new CLI classes

* feat: Integrate new CLI configuration with all default configurations

* feat: Add createApp function to AppRunner

* docs: Update comments in CLI-related classes

* fix: Various fixes and refactors

Co-authored-by: damooo <damodara@protonmail.com>
2022-02-11 10:00:12 +01:00
Ruben Taelman
d1eadd75e7
feat: Expose AppRunner.run for easily serving from JS apps
* feat: make methods in CliRunner public

* change: rename CliRunner to AppRunner

* fix: process being passed incorrectly to runCli

* feat: expose AppRunner.run for easily serving from JS apps

* change: only make run methods on AppRunner public
2021-04-28 09:59:10 +02:00
Ruben Verborgh
66dc136fec refactor: Explicitly pass process argument in CLI. 2021-02-23 10:50:55 +01:00
Ruben Verborgh
49551eb9eb fix: Distinguish instantiation and initialization errors. 2021-01-01 16:37:16 +01:00
Ruben Verborgh
d9f18f813e chore: Extend linting to .js files. 2020-12-14 10:08:31 +00:00
Ruben Verborgh
0f56b715ae chore: Do not build bin script. 2020-12-08 09:30:18 +01:00