Upgrade to Pro — share decks privately, control downloads, hide ads and more …

KISSY 5 Upgrade

yiminghe
October 16, 2014

KISSY 5 Upgrade

KISSY 5 Upgrade

yiminghe

October 16, 2014
Tweet

More Decks by yiminghe

Other Decks in Technology

Transcript

  1. 开发效率 模块规范 1. 模块格式统⼀一 • 添加模块 define • 引⽤用模块 require

    • 让出控制权 modulex.noConflict() • 返回接⼝口统⼀一 modulex.use === requirejs (相 ⽐比1.4.x去掉返回的变量S) ⽆无缝接⼊入
  2. 运⾏行效率 ⼤大瘦⾝身-拥抱⽆无线 1. seed.js 拆出util 44.kb -> 28kb 16.3kb(gzip)->10kb(gzip) 2.

    模块细分,⾃自动识别,按需加载 如anim -> anim/timer + anim/transition
  3. What 1.模块拆分 • seed -> util • anim -> anim/timer

    + anim/transition • event -> event-dom + event-dom/gesture/* + event-custom • combobox -> combobox + combobox/multiword
  4. What 2.新增模块/功能 • path • url • querystring • event-dom/gesture/edge-pan

    • navigation-view • router • scroll-view ⽀支持 pull-up-to-refresh • …
  5. How [email protected]主要升级点 ⽂文档 2.1.4.x -> 5.0 兼容包 • deprecated.js •

    兼容模块拆分 util、event • 兼容直接引⽤用 S.IO、S.all、S.one… 3.技术⽀支持 & 技术客服 4.⾃自动化升级⼯工具 @陶杰