In the very first episode, I walked through the process of refactoring an existing plugin for BackboneJS. We looked at what it really took to move from one large, monolithic object, into a set of smaller and more focused objects. But I never showed what it took to get that project off the ground and built up to the point where we started.
In this episode, then, I’m going to walk through the tools and processes that I use to create a new plugin for Backbone. I’ll start by creating a ruby environment to run the Jasmine gem so that I can write the plugin test-first. I’ll configure Jasmine, I’ll run the tests, and I’ll implement the functionality in a test-first manner.
In this episode, you’ll see:
- Setting Up A Project
- Configuring The Jasmine Gem
- Mistakes And Corrections
- Packaging With Grunt
- Creating Basic Documentation
- Deploying To Github
(Note that this is a live recording! While I have done some light editing in order to break up the episode in to chapters, and fast-forward through a few key moments, the pace is generally slower than my scripted episodes.)
Building Backbone Plugins, The eBook!
If you’re serious about building plugins and extensions for Backbone – both for fun and for the benefit of your production applications, you should check out my eBook:
It’s the only book out there that walks you through the how and why of building add-ons and extensions for Backbone, aimed at making you more productive than working with Backbone by itself!
Not A WatchMeCode Subscriber?
Sign up now and get instant access to the full WatchMeCode catalog!