-
Notifications
You must be signed in to change notification settings - Fork 0
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 to peer dependencies #484
Move to peer dependencies #484
Conversation
Also add vite for building as we want to make stand-alone
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.
I do not fully grasp the details of the changes, but high-level — i.e. "fix dependencies, tweak build process" — this looks like an acceptable way to solve the router bug.
I commented on one dependency that I think is duplicated. After that is explained/resolved, I don't mind merging this in.
The sooner we collapse this stack of PRs ( 🛑 #463 ⬅️ #465 ⬅️ #484), the sooner we can move this to its own repo, at which point the nx/monorepo-complexity could be stripped, which I think will make the codebase more approachable.main
@wesleyboar and @sophia-massie good to review. note the following; i:
i had to do so curious if just me or something needs to be fixed there:
|
…at/TUP-700-core-components-node-pkg--use-pkg--hazmapper
I resolved the merge conflicts locally. I am testing. It's a chore you needn't do. I think I got it. I'll commit when I'm sure. Regarding
|
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.
Changes
- merged in target branch (which has latest from
main
) - resolved merge conflicts (
8065676
)
Testing & UI
TUP-UI
- Run
npx nx serve tup-ui
andnpx nx serve tup-cms
- Open http://localhost:8000/.
- Log in to Portal.
- Poke around,.
- Verify everything looks like dev server.
UI skipped.1
Core-Components Demo
- Run
npx nx serve core-components
- Open http://localhost:4400/.
- See Button.
- Verify it shows four button types that respond to state change.
Video
core-components.demo.mov
UI-Patterns (Manual Demo)
- Run
npx nx serve tup-ui
. - Open http://localhost:4200/.
- Scroll & Test.
- Verify stuff looks and works like before.
UI skipped.2
Footnotes
c7a3ea0
into
feat/TUP-700-core-components-node-pkg--use-pkg
* fix: revert FormikFieldWrapper→FieldWrapperFormik * fix: support .js imports * chore: use index.js when component is .jsx * fix: make FormikCheck useField like other fields * fix: FieldWrapper… TACC-Cloud/Hazmapper form crash TACC-Cloud/hazmapper's only form crashed. If checkbox is removed, then now it doesn't. Expect checkbox fix in next commit. TACC-Cloud/hazmapper#239 * fix: FieldWrapper… TACC-Cloud/Hazmapper checkbox TACC-Cloud/hazmapper's only checkbox field crashed. Now it doesn't. TACC-Cloud/hazmapper#239 * fix: FormikCheck not supporting ID attr * chore: npx nx format:write * fix: FieldWrapper… ID fallback support incomplete * fix: remove unused prop * refactor: use Formik field wrappers as components * fix: FieldWrapper… ID fallback support STILL incomplete * docs: update author, add contributors * Move to peer dependencies (#484) * Move to peer dependencies Also add vite for building as we want to make stand-alone * Make 0.0.3 prelease * Bump postcss and postcss-preset-env to match core styles requirements * Fix pretty issue * Add vite-plugin-lib-inject-css * Make uuid only as a dependeny allow any 8 or 9 version --------- Co-authored-by: Wesley B <[email protected]> --------- Co-authored-by: Nathan Franklin <[email protected]>
Overview
@wesleyboar , this works but i don't think we should merge in to tup-ui's main but instead move your target branch (and this) to the stand-alone repo.This main goal of this PR is PR moves react-related libraries to peerDependencies in libs/core-components:
Main issue
Moving s many libraries to be peer-dependencie is the main fix for
error useLocation() in the context of a <Router>
issue seen in TACC-Cloud/hazmapper#264.But it is also tricky, as it's easy to get duplicate react-router-dom code showing up in the package due to the mono repo and the global nature of node_modules and package-lock.json. I kept hitting that, and then I thought the peer dependency wasn't the correct or complete fix. But it works with the following
and then built a beta release for 0.0.3
Notes
Todo