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

chore: add linting scripts #1176

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

DNR800
Copy link
Contributor

@DNR800 DNR800 commented Oct 31, 2022

What problem does this solve

When working recently on a feature it was difficult to set up a local development workflow across multiple repos. Allowing a workflow across multiple repos locally allows for early feedback on development work - helping to see changes made locally while reducing the need to publish repos to see how implementation of library might effect another that depends on it.

What this PR presents

This is something I put together to just help me work locally for change across UI and app-runtime - The question here is would this be useful to anyone else?

This PR is also dependent on changes in the other PR on the app-runtime repo

I used yarn link to create locally linked repos for ui and app-runtime - links have to be established in all the packages in the dependency monorepo and then all have to be consumed in dependent repo.

With this workflow to link the repos

  1. You run yarn link:all in app-runtime
  2. In UI you run in yarn link:app-runtime
  3. In app-runtime, when you make changes running yarn build and those changes should be available in the UI repo

To unlink the repos

  1. In UI you run in yarn unlink:app-runtime
  2. In UI run yarn install --force to reinstall the original libs that the linking replaced
  3. In app-runtime run yarn unlink:all

Considerations

  • This will only work across ui and app-runtime
  • There are lots of different packages in ui - I've only seen this work in the packages I cared about for the HeaderBar work I was doing and I don't know if it will work for all packages in ui
  • With differences in dependency versions across ui and app-runtime this might stop this work
  • I wasn't able to get linking to work across ui, app-runtime and app-platform - this might have been a dependency issue as stated above

@dhis2-bot
Copy link
Contributor

🚀 Deployed on https://pr-1176--dhis2-ui.netlify.app

@dhis2-bot dhis2-bot temporarily deployed to netlify October 31, 2022 11:56 Inactive
@cypress
Copy link

cypress bot commented Oct 31, 2022



Test summary

568 0 0 0


Run details

Project ui
Status Passed
Commit ceaf08a
Started Oct 31, 2022 11:58 AM
Ended Oct 31, 2022 12:06 PM
Duration 08:07 💡
OS Linux Ubuntu - 20.04
Browser Electron 100

View run in Cypress Dashboard ➡️


This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard

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.

2 participants