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

Create index files for each directory #58

Open
5 tasks
nicolesorial opened this issue Mar 26, 2021 · 0 comments
Open
5 tasks

Create index files for each directory #58

nicolesorial opened this issue Mar 26, 2021 · 0 comments

Comments

@nicolesorial
Copy link
Contributor

Problem: Because we use so many entities, controllers, and routes, it is tedious to work in files that need all of the entities because we need a new import for each one.

Solution: Create an index file that exports all entities and controllers (this is already done in the routes directory), and then change all the imports to import from the correct index file.

Specs:

  • Export all entities in a new entity/index.ts file
  • Export all controllers in a new controller/index.ts file
  • In all files in entity, change imports to use directory/index.
  • In all files in controller, change imports to use directory/index.
  • In all files in seed_data/*, change imports to use directory/index.

Contact @nicolesorial if blocked or if you have questions!

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

No branches or pull requests

1 participant