讀源碼01

1. node-s3-policy

  • Makefile中test寫法
  • History.md文件

代碼

2. commander.js

  • .travis.yml
  • 測試的寫法:
  • sh執行文件test/run參考
  • makefile
  • 使用sinon.js參考

代碼

  • Option中對字符串的處理
  • Command的繼承: 使用inherits繼承注意要放在prototype定義以前
  • 傳入參數的處理

3. swiper

  • gulpfile.js中各類插件的使用,包括autoprefixer, browser-sync
  • 使用mocha進行前端測試

代碼

  • 函數封裝: requireJS, commonJS, global
  • 使用transform的translate3d和transition整個移動頁面

4. pure

  • package.json中scripts: pre處理
    *使用tap測試build文件成功

代碼

  • 參考javascript

  • base: 引入了Normalize.csscss

相關文章
相關標籤/搜索