~/talk

Build, Test, and Deploy a Web Component

Talkat Windy City DevFest 2018 · on Friday, 2018-01-12· [web-platform, frontend-architecture]
slides:none on file

Nutmeg scaffolds a ready web component with Nutmeg CLI generating a TypeScript custom element (Custom Elements v1, shadow DOM attached), prewired tests (Karma) and a webpack build. The demo builds a to‑do item that renders a relative due date using moment, tests fail then pass as the feature is implemented, and npm publish produces ES module, bundled and minified artifacts. Live‑reload dev server works; note polyfills may be needed for older browsers and HTML imports are avoided.

AI-written summary · about

  1. 0:00Build, Test, and Deploy a Web Component
  2. 6:25Web Components • Encapsulated • Reusable
  3. 7:39Uses the platform Best practices baked in Test suite included Easy to publish on NPM
  4. 8:42Nutmeg CLI Nutmeg Seed
  5. 9:15Install npm install --global @nutmeg/cli
  6. 11:01Custom Element v1, Shadow DOM v1 Typescript • Webpack pre-configured • Karma test runner, Mocha tests, headless browsers
  7. 17:37Attribute reflection • Encapsulation with Shadow DOM • Intelligent re-rendering • Lazy property upgrading • One-time complex property JSON decoding
  8. 21:15Test npm run test
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.