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

Support multiple definition files in a single repository #42

Open
chrissimon-au opened this issue Jun 20, 2023 · 0 comments
Open

Support multiple definition files in a single repository #42

chrissimon-au opened this issue Jun 20, 2023 · 0 comments

Comments

@chrissimon-au
Copy link
Contributor

It should be possible to 'split' a definitions file into multiple files even in a single repo (monorepo) configuration, so that teams that 'own' a context and also 'own' a folder structure within the monorepo can keep their definitions local to their context code and own the file containing their definitions.

Some initial ideas for how to implement this:

  • Add an 'import' mechanism to the central definitions file. Other files can be located wherever and can be 'imported' via a relative path into the overall definitions structure
  • Update the contextive.path setting to be a contextive.paths setting which lists a set of files to be loaded by contextive
  • A more convention oriented approach where the whole folder structure is scanned for a well defined filename (e.g. definitions.yml or contextive.yml so it would just be a matter of creating a file anywhere with the correct filename and it would get picked up

Related Tickets

This is related to #39, however that ticket is more focussed on supporting the multi-root workspace in VSCode, which carries with it extra considerations around handling scoped settings and resources. However, the facility to at least handle definitions coming from multiple files will likely support the implementation of #39.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant