Skip to content
This repository has been archived by the owner on Jul 13, 2021. It is now read-only.

Latest commit

 

History

History
89 lines (80 loc) · 4.05 KB

js-modules.md

File metadata and controls

89 lines (80 loc) · 4.05 KB

Modules in JavaScript

In the lesson scope will be covered such topics as, Modules Basics (scope, syntax, features), also Modules Types and their Development History.

Agenda

  • What is module / module pattern? For what purposes they were created?
  • Modules types (AMD, ES6, CommonJS, UMD).
  • Modules syntax.
  • Common modules features (export default, named exports, exports as, etc).
  • Dynamic imports.

Required to self-study

To further self-education

Time consumption

  • 2.5 hours for main block
  • 3.5 hours for additional block

RS School Video

Content

  1. CommonJS modules
    • Node.js and require
    • NPM and package.json
    • Bower and bower.json
  2. Modules in JavaScript
    • ECMAScript 5 module systems
    • ECMAScript 6 modules
  3. The basics of ES6 modules
    • Named exports
    • Default exports
    • Cyclic dependencies
  4. Import and Export in details
    • Babel
    • System.js

Further reading

  1. начало лекции https://youtu.be/7e-5P6iPFzY?t=171
  2. зачем нужны модули https://youtu.be/7e-5P6iPFzY?t=193
  3. пример без модульности https://youtu.be/7e-5P6iPFzY?t=299
  4. как организовать модули https://youtu.be/7e-5P6iPFzY?t=353

  5. одиночный модуль (самовызывающиеся функции) - https://youtu.be/7e-5P6iPFzY?t=422
  6. много-файловый модуль - https://youtu.be/7e-5P6iPFzY?t=633

  7. commonJS - https://youtu.be/7e-5P6iPFzY?t=893
  8. commonJS loaders - https://youtu.be/7e-5P6iPFzY?t=1083

  9. AMD - https://youtu.be/7e-5P6iPFzY?t=1337
  10. AMD loaders - https://youtu.be/7e-5P6iPFzY?t=1473
  11. AMD loaders optimizer - https://youtu.be/7e-5P6iPFzY?t=2029

  12. ES6 modules - https://youtu.be/7e-5P6iPFzY?t=2258
  13. ES6 modules imports - https://youtu.be/7e-5P6iPFzY?t=3177
  14. ES6 modules loader API - https://youtu.be/7e-5P6iPFzY?t=4502

  15. лексика :
    • require (рекваер) - требовать-запрашивать
    • resolve - разрешить
    • parsing - разбираться на части
    • implementation - (имплементить) - выполненить, осуществить