Jasper Vaneessen
2814e72b34
feat: Respect root path for static assets and HTML links
...
* feat: rootpath for static assets and links1
* fix: static asset handler respects root path
* fix: use rootPath for links
* tests: fix the tests after adding consuctor params
* feat: change matchregex instead of stored URLs
* feat: baseUrl for handlebar engine and templates
* feat: full baseUrl passed to templates
* test: fix integration tests + templates
* chore: implement requested changes
* docs: Describe TemplateEngine interface changes
Co-authored-by: Joachim Van Herwegen <joachimvh@gmail.com>
2022-05-24 10:20:41 +02:00
Joachim Van Herwegen
e6519992bf
Merge branch 'main' into versions/4.0.0
...
# Conflicts:
# test/unit/storage/accessors/FileDataAccessor.test.ts
2022-04-15 10:28:50 +02:00
Jasper Vaneessen
668d0a331f
feat: Only accept NamedNodes as predicates for metadata
...
* refactor: move toCachedNamedNode (private)
* chore: only NamedNodes predicates in removes
* feat: enforce NamedNode predicates in most cases
* feat: getAll only accepts NamedNodes
* feat: toCachedNamedNode only accepts string arg
* tests: use NamedNodes for getAll calls
* test: remove unnecessary string check for coverage
* tests: fix NamedNodes in new tests after rebase
* feat: metadatawriters store NamedNodes
* refactor: toCachedNamedNode as utility function
* fix: double write of linkRelMap
* test: use the CONTENT_TYPE constant
2022-04-15 09:53:39 +02:00
Jasper Vaneessen
fe39f97ee0
refactor: Use fs-extra instead of fs to simplify file access
...
* refactor: use fs-extra instead of fs
* tests: manual mocks for fs-extra base + ensureDir
* refactor: mockFileSystem + mockFs and mockFsExtra
* add remove mock and some further test tweaks
* test: FileDataAccessor tests passing
* refactor: remove try-catch due to fs-extra handlin
* refactor: fs-extra in atomicFileDataAccessor
* refactor: AtomicFileDataAccessor fs-extra
* test: fix coverage
* refactor: use read/writeJson from fs-extra
* refactor: less duplicate mocking code
* refactor: re-use opendir mocking code
2022-04-12 11:02:30 +02:00
Joachim Van Herwegen
d2870e5c8b
fix(deps): Update dependencies
2022-02-11 15:28:50 +01:00
Joachim Van Herwegen
b3da9c9fcf
refactor: Restructure source code folder
...
This way the location of certain classes should make more sense
2021-10-12 12:51:02 +02:00
Joachim Van Herwegen
c2ad892020
feat: Create RootInitializer to set up root resources
2021-07-22 15:08:28 +02:00
Ruben Verborgh
19624dc729
refactor: Allow default template in template engines.
2021-07-22 11:12:21 +02:00
Joachim Van Herwegen
1488c7e221
feat: Differentiate between templates and non-templates for pods
2021-07-22 09:15:25 +02:00
Joachim Van Herwegen
57da67f9ee
feat: Move all metadata file knowledge to file mapper
2021-07-22 08:56:01 +02:00
Joachim Van Herwegen
452032e312
feat: Split preset configurations by feature
2021-05-19 09:40:40 +02:00
Joachim Van Herwegen
1d9b027a57
feat: Remove podTemplateFolder as a variable.
...
This is now possible due to TemplatedResourcesGenerator
accepting path strings relative to the module root.
2021-04-22 17:04:16 +02:00
Joachim Van Herwegen
b160121176
feat: Add implementation for dynamically instantiating pods
2021-03-02 11:47:07 +01:00
Joachim Van Herwegen
6e2a4b5c2b
feat: Create SubdomainIdentifierGenerator
...
To be used when creating pods.
2021-02-25 13:16:26 +01:00
Ruben Verborgh
a5413a64d3
refactor: Move pod templates to pod subfolder.
2021-01-15 12:43:34 +01:00
Ruben Verborgh
f9a20799eb
refactor: Use declarations style for functions.
2021-01-06 11:24:43 +01:00
Joachim Van Herwegen
e722cc67af
feat: Support .meta files for pod provisioning
2020-12-18 10:55:35 +01:00
Joachim Van Herwegen
f387b36dc2
feat: add template based data generator
2020-12-02 13:01:38 +01:00
Joachim Van Herwegen
9653deec7f
feat: add implementations of pod-related interfaces
2020-12-02 13:01:38 +01:00