Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to virtualize resource trees #262

Open
Kaliumhexacyanoferrat opened this issue Dec 9, 2021 · 0 comments
Open

Allow to virtualize resource trees #262

Kaliumhexacyanoferrat opened this issue Dec 9, 2021 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@Kaliumhexacyanoferrat
Copy link
Owner

Kaliumhexacyanoferrat commented Dec 9, 2021

As a developer, I would like to virtualize existing resource trees, so that I can extend them with my own content.

Example

var tree = ResourceTree.FromDirectory("/app")
                       .Virtualize()
                       .Add("config.js", Resource.FromFile("/cfg/config.js"));

var spa = SinglePageApplication.From(tree);

Acceptance criteria

  • The functionality is implemented in the IO module
  • The Virtualize() method can be called on any IBuilder<IResourceTree>
  • The Virtualize() method returns a configured VirtualTreeBuilder
  • If the original tree is disposable, disposing the virtual tree will dispose the inner tree as well
  • There are acceptance tests to test the behavior
@Kaliumhexacyanoferrat Kaliumhexacyanoferrat added enhancement New feature or request good first issue Good for newcomers labels Dec 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant