nodeshift / nodejs-reference-architecture

The Red Hat and IBM Node.js Reference architecture. The teams 'opinion' on what components our customers and internal teams should use when building Node.js applications and guidance for how to be successful in production with those components.
https://nodeshift.dev/nodejs-reference-architecture/
Apache License 2.0
1.71k stars 122 forks source link

feat: add npm development section. #135

Closed lholmquist closed 1 year ago

lholmquist commented 1 year ago

All Sections should be complete. I've left the ESM/CJS section as TBD since we are still talking about this section in various chat rooms

lholmquist commented 1 year ago

Is this explicitly node-only, or should it have consideration for browser and deno (and bun)?

Usually are main focus is node, but package development kind of dips into both node and front-end. I don't think we are ready to make any recommendations around deno/bun

bennypowers commented 1 year ago

I don't think we are ready to make any recommendations

the advantage of esm is that it's a language feature, not a runtime feature. recommending esm is a recommendation that works with all runtimes. recommending cjs is a recommendation to have to deal with interop issues