newjersey / njwds

NJ Web Design Standards
https://newjersey.github.io/njwds/
MIT License
9 stars 2 forks source link

Technical Discovery #56

Open aloverso opened 4 months ago

aloverso commented 4 months ago
Sarah-Shively commented 3 months ago

Update - started 6/11, likely to lean towards Stencil

SirSamuelJoseph commented 3 months ago

Progress update:

Was able to recreate nj-banner in Lit.js, very similar construction as to Stencil, no preferences there. I've also been able to export that as an JS web component.

I've built a stateful component on the litJs playground and that was pretty easy, but haven't been able to do the same for Stencil because of export issues I'll describe below (or rather, I was able to build the React component but can't verify it without exporting).

Have been having trouble getting both projects to properly export as React components. Spencer helped me figure out an export issue yesterday with Stencil but it is now looking like I'll have to restructure that repo to match the expected structure that's apparently extremely recommended for React exporting.

I've been getting pulled away for more time-sensitive work but I'll be working on this primarily the rest of the week. If I can get Stencil to export to React well then I can hopefully build the other components fairly quickly

SirSamuelJoseph commented 3 months ago

Progress update:

Still having a really difficult time getting the export to work right. I'm pushing my changes to the njwds-stencil-components repo on a branch named nx-stencil-react if someone else wants to look at it while I'm on vacation (until July 9) but if not, when I get back I am going to need to pair with someone on this because I am just stuck. Also didn't spend as much time on this as I was hoping for due to emergency issues popping up on business.nj.gov

aloverso commented 2 months ago

Anne's convo with Lizzy:

NPM setup:

Stencil technical output: