Export demo datasource utils from shared; Add plop generator for shared entrypoint #1484
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Export the demo datasource utils from shared
The previous PR #1477 created utils. These were not made available due to the exporting. This fixes that.
Plop generator for shared entrypoint
The current process for writing a new entry point has a lot of manual steps, many that can be missed during the development and review process. These changes add a generator
yarn plop shared-entrypoint
so we can generate all the required things.You can test this by running it and using the example resources in the description:
It creates a
packages/shared/src/todos
which has a file intended to put private/public functions, types, etc.todos.ts
and a barrel file for exporting public functions:It creates the relevant files, which should now be able to be imported into the front-end and back-end packages without issue: