cloudoperators / juno

Monorepo for the Juno modular frontend framework, apps, design system and component library
http://cloudoperators.github.io/juno/
Apache License 2.0
4 stars 0 forks source link

feat(mock-server): add mock-server package and detach juno-utils usage. #591

Closed barsukov closed 1 week ago

barsukov commented 3 weeks ago

Summary

This pull request move out dependency from the juno-utils package, to a new package @cloudoperators/juno-mock-server, and updates its usage within our applications (greenhouse, supernova, example, and doop).

Changes Made

Maybe we need to reconsider the whole implementation and just use simple usage of json-server + faker.js but still keep it in our package... I would also reconsider it as a whole process inside the apps how we use this mock server instead of whole logic I would simply change url to a mock server and start it in a dev mode...

@ArtieReus lets discuss it.

Related Issues

Testing Instructions

  1. Run npm i to ensure dependencies are up-to-date.
  2. Start the application with turbo dev --filter=supernova and try to start it with mock property set to true.
  3. Any action should go to a mock logic server

Checklist

changeset-bot[bot] commented 3 weeks ago

⚠️ No Changeset found

Latest commit: 03a258aadae3f3db6e32dff43ab0b80aaf01bb63

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

github-actions[bot] commented 3 weeks ago

PR Preview Action v1.4.8 :---: Preview removed because the pull request was closed. 2024-11-21 09:42 UTC

barsukov commented 2 weeks ago

Close until I am back from sick 🤧 leave