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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remix "Eurodance Stack" aka "Enka Stack" aka Vulcan Remix #116

Merged
merged 21 commits into from
May 6, 2022

Conversation

eric-burel
Copy link
Collaborator

@eric-burel eric-burel commented May 4, 2022

馃嚜馃嚭 馃惛 馃浀

Yarn 3 workspaces

  • basic Setup in the monorepo
  • First, I disabled hoisting in the Remix starter package.json. This way, the "remix" binary is installed at the package level to avoid any issue: workspaces "bin" symlinks not created for sub-dependencies 聽yarnpkg/yarn#4964. This doesn't affect other packages or starters. This not optimal though, we'd like to find a way to hoist but keep "remix" CLI and critical deps in the right folder.
  • We have a message "Missing the "remix" package. Please run npm install remix before remix setup." on postinstall => this is probably normal at this point, since we have the same issue in raw Indie stack.
  • The "remix init" command is only run with "create-remix"! Not on "postinstall"! So you need to run it manually when cloning the monorepo => added some info in the readme, but we must double check a clean install of "vulcan-npm". I suspect remix.init folder packages are not installed automatically either, so we need first a "cd remix.init && npm installand thenyarn run remix init`.
    This init script is for instance in charge of copying ".env.example" to ".env"
  • "yarn run dev" doesn't work, because "run-p" is probably not run at the correct level. ./node_modules/.bin/run-p dev:* does work though. Same for "yarn run build". => concurrently actually have the same features and should work better, to be tested https://www.npmjs.com/package/concurrently => Remix might also update to other better maintained tools
  • Maybe I should remove this starter from Yarn workspaces, however I am afraid this would later be problematic when importing local Vulcan packages (basically Yarn will fetch them on NPM, not link them locally)?

Mongo and db

  • Support Mongo

GraphQL

  • Setup GraphQL API consumption with "remix-graphql" https://github.com/thomasheyenbrock/remix-graphql, demo on the Rick and Morty API https://rickandmortyapi.com/documentation/
  • Demo a mutation
  • Investigate caching => no client-side GraphQL also means no Apollo cache. We purely rely on Remix loaders. How do they cache graphql queries? Given that they all use the same URL?
  • Setup a GraphQL Resource route,basic
  • Demo a query using directly a schema
  • Setup type generation
  • Setup Vulcan Artemis in the GraphQL Resource route
  • Connect to Prisma via a Vulcan connector?

Storybook

  • Setup Storybook
  • Setup storybook loading in unit tests

Testing

  • Verify that fixtures can be shared between Cypress, unit tests, and storybook

Vercel

  • Deploy on Vercel

Styling

  • Setup tailwind autocomplete

@eric-burel eric-burel changed the title Remix "Eurodance Stack" aka Vulcan Remix Remix "Eurodance Stack" aka "Enka Stack" aka Vulcan Remix May 5, 2022
@eric-burel eric-burel merged commit 10e4e43 into main May 6, 2022
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

Successfully merging this pull request may close these issues.

None yet

1 participant