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

WAITP-1145 create commands for reloading on dev #4420

Merged
merged 6 commits into from
Apr 4, 2023

Conversation

alexd-bes
Copy link
Contributor

Issue WAITP-1145

Changes:

  • Created command for ui-components start-dev that watches changes
  • Created command for web-frontend start-servers that just starts the servers, so that when running the frontend you can run the servers separately if you wish.
  • Created command for web-frontend start-ui-components that runs the start-dev command in the ui-components package
  • Created command for web-frontend start-frontend that runs and watches the web-frontend and ui-components packages. This means when you update anything in ui-components/src, it will trigger a reload of web-frontend so you don't have to rebuild anything manually.

Copy link
Contributor

@chris-pollard chris-pollard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks Good To Me (LGTM!). This is going to help a lot, thanks!

"test": "node scripts/test.js --env=jsdom"
"test": "node scripts/test.js --env=jsdom",
"start-ui-components": "yarn workspace @tupaia/ui-components start-dev",
"start-frontend": "npm-run-all -c -l -p start-components start-dev"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"start-frontend": "npm-run-all -c -l -p start-components start-dev"
"start-frontend": "npm-run-all -c -l -p start-ui-components start-dev"

I think this should be start-ui-components right?

Copy link
Contributor

@tcaiger tcaiger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Amazing work getting the watch to work in ui-components. I tried to test it locally and the ui-components dev build seems to work well but I'm getting an error when I run the yarn build in ui-components and also for some reason the my server scripts are throwing errors too when I try to start them. Do you get these errors locally too? I think that is why the codeship build is failing too.

packages/ui-components/package.json Outdated Show resolved Hide resolved
Copy link
Contributor

@IgorNadj IgorNadj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Copy link
Contributor

@tcaiger tcaiger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks again!

@alexd-bes alexd-bes merged commit 13c803c into dev Apr 4, 2023
@alexd-bes alexd-bes deleted the waitp-1145-create-ui-dev-build branch April 4, 2023 04:18
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.

4 participants