Posts

Showing posts from June, 2014

Bower and Require.js Integration

In the past we've talked about Bower package manager and God knows, I have been obsessively repeating myself about using Require.js  and it's integration with object oriented programming . So how do they integrate with each other? In this article we'll cover the integration of both and see how they get along together. Bower Initiation Let's start by defining, which packages we want to use in our project by filling the bower.json . You can create one yourself or run bower init command for interactive creation. { "name": "RequireJS Starter", "version": "1.0.0", "dependencies": { "jquery": "1.9", "underscore": null, "requirejs": null } } So we'll be needing jQuery, Underscore and of course Require.js. Putting null as a version number will download the latest version. Now run bower install to download all the packages into bo