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

move fixtures to app package, get cosmos working for web #4189

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from

Conversation

patosullivan
Copy link
Member

@patosullivan patosullivan commented Nov 15, 2024

fixes TLON-3223

  • Moves most of our fixtures to /packages/app/fixtures. (some mobile specific fixtures still exist in the tlon-mobile app package, and can still be selected in cosmos).
  • Adds cosmos:web, cosmos:native, and cosmos scripts to the root. cosmos runs the two other scripts concurrently.
  • Required forking cosmos to allow passing a new parameter to config, fixturesLocation.
  • Removes old tlon-web fixtures and the cosmos dep there.

If you pull this down, run pnpm i, you should be able to run pnpm cosmos from the root and then see cosmos running at both http://localhost:5000/ and http://localhost:5001/, one for the web and one for mobile.

Note: I couldn't get separate web fixtures working with this setup (yet). For now, any fixture in the app package should work on both platforms.

Also: I used gitpkg because react-cosmos is a monorepo, more about gitpkg here: https://gitpkg.vercel.app/about

Copilot description:
This pull request includes significant changes to the tlon-mobile and tlon-web-new applications to improve the configuration and module imports for React Cosmos. The most important changes include the removal of automatically generated files, updates to package dependencies, and adjustments to import paths and fixture configurations.

Configuration and Dependency Updates:

Import Path Adjustments:

Removal of Unnecessary Files and Code:

Fixture Configuration Changes:

Copy link

linear bot commented Nov 15, 2024

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.

1 participant