Chapter 9. Creating modules and Bower components
This chapter covers
- Asynchronous module definitions
- CommonJS module system
- Universal module definitions
- Exposure of module functionality
- Deployment of private and public components
When developing, we usually try to encapsulate specific functionality into reusable patterns, be it functions that have defined output on various input or objects and classes that combine state and behavior in a broader sense. The idea is to reuse the provided functionality and rely on the trustworthiness of a thoroughly specified and tested module.
Modules wrap functionality and provide an API to the outside program code. Other modules can consume this module’s API and use its functionality, without knowing ...
Get Front-End Tooling with Gulp, Bower, and Yeoman now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.