~/talk

Polymer & the Closure Compiler

Talkat Polymer Summit 2016 · 2016-10-17..10-18· [javascript, developer-experience]
slides:none on file

Closure Compiler compiles, typechecks and minifies Polymer code using either SIMPLE or ADVANCED modes; SIMPLE gives type warnings with minimal annotations while ADVANCED renames properties and needs workarounds like string keys, goog.reflect.object or polymer-rename. The tool ships as a Java JAR and now a pure-JS build, requires a polymer-pass flag and HTML→JS extraction (crisper). Google runs it across ~350 Polymer build targets with Bazel and Piper, and it produces reliably smaller, checked bundles used in production.

AI-written summary · about

  1. 0:00Intro
  2. 0:58Closure Compiler
  3. 2:04Your first compile
  4. 4:00Simple compilation
  5. 5:36The hard parts
  6. 7:42Closure is about types
  7. 8:24Element types
  8. 9:04Behaviours
  9. 10:56Advanced, continued
  10. 12:37Further reading
  11. 13:27Polymer inside Google
  12. 13:38Pulling back the curtain
  13. 14:36PIPER is PIPER expanded recursively
  14. 16:03Projects
~/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.