20 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
Ruben Verborgh
528688bc4c refactor: Refactor runCli to take optional arguments. 2020-12-01 14:55:39 +01:00
Ruben Verborgh
c3b5387efb test: Test all CLI flags. 2020-12-01 14:41:19 +01:00
Ruben Taelman
db04c55196 feat: Enable dependency injection with auto-generated components 2020-09-01 09:00:15 +02:00
Ruben Taelman
e88e680ed7 feat: add support for parsing more RDF formats using rdf-parse 2020-08-31 12:01:47 +02:00
Ruben Taelman
5126356c94
feat: Move runtime config into dedicated component, Closes #67
* Move runtime config into dedicated component, Closes #67

* Migrate FileResourceStore to RuntimeConfig
2020-08-26 10:25:47 +02:00
Ruben Taelman
5649903226
fix: Move ACL init into dedicated Setup component 2020-08-25 11:11:29 +02:00
Joachim Van Herwegen
e06d0bc8c5 feat: Add more extensive permission parsing support 2020-08-18 11:21:48 +02:00
Joachim Van Herwegen
769b49293c feat: Integrate acl with rest of server 2020-08-18 10:32:07 +02:00
Joachim Van Herwegen
4403421c49 feat: Integrate data conversion with rest of server 2020-08-17 15:38:26 +02:00
Joachim Van Herwegen
dcff424f58 fix: Enable strict TypeScript settings 2020-07-24 13:30:34 +02:00
Joachim Van Herwegen
0e486cf6a6 feat: Integrate PATCH functionality 2020-07-23 10:55:53 +02:00
Joachim Van Herwegen
a9dc59bf78 feat: Set up server using express 2020-07-15 10:59:45 +02:00