~/talk

Packaging Angular

Talkat ng-conf 2017 · 2017-04-05..04-07· [angular, frontend-architecture]
github:jasonaden
slides:none on file

Package format requires publish .d.ts and metadata.json so AOT compilation works, and authors must use ngc from @angular/compiler-cli not plain tsc. Build with module: es2015 and target es5 for source, set angularCompilerOptions like strictMetadataEmit and skipTemplateCodegen, add flatModuleOutFile/flatModuleId, then run rollup to produce a flattened ESM. Inline templates/styles if possible, avoid a kitchen‑sink NgModule, and ship ES2015 and ES5 builds (enable annotateForClosureCompiler for Closure optimizations).

AI-written summary · about

  1. 0:00Start
  2. 1:18A What do App Devs Want?
  3. 2:20A AOT Support Requirements
  4. 3:52A NGC Process
  5. 4:38A Requirements for sconfig.json
  6. 12:09A Strategy
  7. 21:04A Advanced Optimizations
  8. 26:12A Summary
~/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.