Skip to content

Instantly share code, notes, and snippets.

@vicramon
Created July 7, 2014 13:41
Show Gist options
  • Save vicramon/b626f24df31a1f64780b to your computer and use it in GitHub Desktop.
Save vicramon/b626f24df31a1f64780b to your computer and use it in GitHub Desktop.
Javascript Vim Projections for Ember JS
{
"app/assets/javascripts/router.js": {
"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": {
"command": "jmodel",
"alternate": "spec/javascripts/models/%s_spec.js.coffee",
"template": "App.%S = DS.Model.extend({"
},
"app/assets/javascripts/views/*.js": {
"command": "jview",
"alternate": "spec/javascripts/views/%s_spec.js.coffee",
"template": "App.%SView = Ember.View.extend({"
},
"app/assets/javascripts/controllers/*.js": {
"command": "jcontroller",
"alternate": "spec/javascripts/controllers/%s_spec.js",
"template": "App.%SController = Ember.Controller.extend({"
},
"app/assets/javascripts/routes/*.js": {
"command": "jroute",
"alternate": "spec/javascripts/routes/%s_spec.js",
"template": "App.%SRoute = Ember.Route.extend({"
},
"app/assets/javascripts/mixins/*.js": {
"command": "jmixin",
"alternate": "spec/javascripts/mixins/%s_spec.js",
"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