Rage Report: Subgraph in Monorepo - HausDAO/daohaus-monorepo-deprecated GitHub Wiki
name: Subgraph in the monorepo
about: Supporting a new development use case in nx
title: 'Subgraph in the monorepo'
labels: rage, report
assignees: 'Keating'
Goals
- Determine whether we can support a subgraph in the monorepo
- Determine how difficult it is to support advanced use cases with custom plugins
Thoughts Going In
- That it would be relatively easy to implement existing tooling for subgraphs with a custom nx plugin
Learnings/Actual Results
There were two main learnings
- Leveraging the "@nrwl/workspace:run-commands" plugin can be a quick way to validate a workflow with nx. Also, custom plugin commands can be built after the flow is fully understood with "@nrwl/workspace:run-commands".
- When creating complex executors for a new technology like the graph it is helpful to create generators first and work off of an example within the plugins repo. In this rage I built the plugins in a separate repo from the rage repo. It may also be helpful to build the plugins within the monorepo.
Next Steps/Future Rages
- Integrate the subgraph in the sage monorepo