sashafirsov / slotted-element

fetch-element and slotted-element web components to expose fetch() functionality, render JSON as HTML and support fetch() lifecycle via slot without ShadowDOM
Apache License 2.0
13 stars 0 forks source link

Diary - binaries publishing #17

Open sashafirsov opened 2 years ago

sashafirsov commented 2 years ago

binary ESM in CDN

As slotted-element.js has dependencies on css-chain, just compiling binary would work only when loaded with import maps. The import map entries which would be revision-aware and have to be published along with release

Bundled ESM

Would reduce the number of JS calls and eliminate the need for import maps as JS URL on CDN would be sufficient.

export all dependencies

To keep all modules (slotted-element, fetch-element, CssChain, ApiChain) available, each entry would be exported from dist/bundle/slotted-element.js bundle module.

type definitions and JSDoc for bundle

? When imported from bundle, it would be handy to have the type definitions and JSDocs available in same manner as module level ones.

links

Slack question: https://lit-and-friends.slack.com/archives/C03PF4L4L/p1647160319947189

sashafirsov commented 2 years ago

🤔 should deployment be targeting "Instant NPM" as deployment config quality assurance.