-
Notifications
You must be signed in to change notification settings - Fork 7
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
Conversation
There was a problem hiding this 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!
packages/web-frontend/package.json
Outdated
"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" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"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?
There was a problem hiding this 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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks again!
Issue WAITP-1145
Changes:
ui-components
start-dev
that watches changesweb-frontend
start-servers
that just starts the servers, so that when running the frontend you can run the servers separately if you wish.web-frontend
start-ui-components
that runs thestart-dev
command in theui-components
packageweb-frontend
start-frontend
that runs and watches theweb-frontend
andui-components
packages. This means when you update anything inui-components/src
, it will trigger a reload ofweb-frontend
so you don't have to rebuild anything manually.