Build, Test, and Deploy a Web Component
summary
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
chapters (8)
- 0:00Build, Test, and Deploy a Web Component
- 6:25Web Components • Encapsulated • Reusable
- 7:39Uses the platform Best practices baked in Test suite included Easy to publish on NPM
- 8:42Nutmeg CLI Nutmeg Seed
- 9:15Install npm install --global @nutmeg/cli
- 11:01Custom Element v1, Shadow DOM v1 Typescript • Webpack pre-configured • Karma test runner, Mocha tests, headless browsers
- 17:37Attribute reflection • Encapsulation with Shadow DOM • Intelligent re-rendering • Lazy property upgrading • One-time complex property JSON decoding
- 21:15Test npm run test
related talks
02h 32mBuild next gen web apps using web components
51mBuilding web applications with Web Components
01h 12mMake Web Development Fun Again, with Web Components
28mAngular and Webcomponents
21mThe Year of Web Components
40mWeb Components: It’s about Time
46mFuture-proof your Web Apps with Web Components and LitElement
53mFuture-proof your Web Apps with Web Components and LitElement
