coffeescript Blog Posts
8 posts, page 1 of 2
-
TypesScript and CoffeeScript ports of the Meteor Leaderboard
Apr 23, 2012I added a TypeScript port and login authenication – changes that made the original post out of date.
-
Bash completion for cake files
Nov 1, 2011To implement bash(1) tab completion for Cakefile task names all you need to do is add this completion function and command to your
~/.bashrc
file: -
Testing CoffeeScript apps with Selenium
Oct 25, 2011This blog entry describes how to write functional tests for CoffeeScript web apps using Selenium. By way of example I’ll describe how I added Selenium tests to the Routeless Backbone Contacts tutorial app and automated it’s execution with a Cakefile.
-
Compiling CoffeeScript with Vim
Oct 20, 2011You can configure Vim to automatically compile CoffeeScript files when you save them from within Vim, it’s easy, just add an autocmd to run the CoffeeScript compiler to your
~/.vimrc
file: -
Getters and Setters for Backbone Model attributes
Oct 16, 2011The Backbone.js Model class provides get and set methods to read and write Model attributes which is not a concise or natural as object property access. But it’s not difficult to add a class method to generate Model getter/setter properties so that you can do this in CoffeeScript:
person.name = 'Joe Bloggs' ph = person.phone
instead of this:
person.set {name: 'Joe Bloggs'} ph = person.get 'name'