Publish core frontend methods to NPM #1641
Replies: 6 comments
-
Yep, this has been on my list for a while. I actually thought there was an open issue for this already, but I can't seem to find it. But yes, I just need to give some more proper thought to building this out as a proper JS API that'll work well detached from the Formie library. There's a few things I need to consider |
Beta Was this translation helpful? Give feedback.
-
@engram-design It’s quite likely that we’re going to abandon/archive the React implementation at some point this year. To broaden the scope of this issue a bit, have you put any further consideration towards shipping client-side libraries as part of Formie? |
Beta Was this translation helpful? Give feedback.
-
Did you mean to close this? Certainly on our list to do! |
Beta Was this translation helpful? Give feedback.
-
@engram-design I’m abandoning my React implementation. Please can you convert this to an ‘Ideas’ discussion. |
Beta Was this translation helpful? Give feedback.
-
Ah, gotcha. I may take over that similar to https://github.com/verbb/formie-headless, but regardless, we certainly want to provide an npm package for Formie to make things easier for devs! |
Beta Was this translation helpful? Give feedback.
-
@engram-design Bump. Josh, please can you convert this to an ‘Ideas’ discussion. I don’t have the ability to do that. |
Beta Was this translation helpful? Give feedback.
-
What are you trying to do?
It’d be great to have access to some of the logic you’ve coded for the frontend in an NPM package. This would allow us to pull common logic into other implementations (e.g. React, Vue, et al.).
What's your proposed solution?
Add a
package.json
in the frontend directory or, perhaps, split the frontend logic into its own repo and pull it into this one.I would imagine some adjustment to the API surface is needed. Looking now, I don’t imagine this would be significant.
Additional context
The primary reason for the ask is to allow us to better match your ongoing changes with our React implementation.
Beta Was this translation helpful? Give feedback.
All reactions