Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
CoffeeScript Vim Projections for Ember JS
{
"app/assets/javascripts/router.js.coffee": {
"command": "jini"
},
"app/controllers/api/v1/*_controller.rb": {
"command": "apicontroller",
"alternate": "spec/controllers/api/v1/%s_controller_spec.rb",
"template": "class Api::V1::%SController < ApplicationController\n respond_to :json\nend"
},
"app/assets/javascripts/models/*.js.coffee": {
"command": "jmodel",
"alternate": "spec/javascripts/models/%s_spec.js.coffee",
"template": "App.%S = DS.Model.extend"
},
"app/assets/javascripts/views/*.js.coffee": {
"command": "jview",
"alternate": "spec/javascripts/views/%s_spec.js.coffee",
"template": "App.%SView = Ember.View.extend"
},
"app/assets/javascripts/controllers/*.js.coffee": {
"command": "jcontroller",
"alternate": "spec/javascripts/controllers/%s_spec.js.coffee",
"template": "App.%SController = Ember.Controller.extend"
},
"app/assets/javascripts/routes/*.js.coffee": {
"command": "jroute",
"alternate": "spec/javascripts/routes/%s_spec.js.coffee",
"template": "App.%SRoute = Ember.Route.extend"
},
"app/assets/javascripts/mixins/*.js.coffee": {
"command": "jmixin",
"alternate": "spec/javascripts/mixins/%s_spec.js.coffee",
"template": "App.%S = Ember.Mixin.create"
},
"app/assets/javascripts/templates/*.js.emblem": {
"command": "jtemplate"
},
"spec/javascripts/**/*_spec.js.coffee": {
"command": "jspec",
"alternate": "app/assets/javascripts/%s.coffee"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment