O'Reilly logo

Front-End Tooling with Gulp, Bower, and Yeoman by Stefan Baumgartner

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required