Skip to content

Instantly share code, notes, and snippets.

@AndrewRadev
Last active May 6, 2021 17:47
Show Gist options
  • Save AndrewRadev/3524ee46bca8ab349329 to your computer and use it in GitHub Desktop.
Save AndrewRadev/3524ee46bca8ab349329 to your computer and use it in GitHub Desktop.
A `.projections.json` file that can be used with vim-projectionist for navigating ember.js projects
{
"app/initializers/*.js": {
"type": "initializer"
},
"app/models/*.js": {
"type": "model",
"alternate": "app/adapters/{}.js",
},
"app/adapters/*.js": {
"type": "adapter",
"alternate": "app/serializers/{}.js",
},
"app/serializers/*.js": {
"type": "serializer",
"alternate": "app/models/{}.js",
},
"app/services/*.js": {
"type": "service",
},
"app/routes/*.js": {
"type": "route",
"alternate": "app/controllers/{}.js",
},
"app/controllers/*.js": {
"type": "controller",
"alternate": "app/templates/{}.hbs",
},
"app/templates/*.hbs": {
"type": "template",
"alternate": "app/routes/{}.js",
},
"app/components/*.js": {
"type": "component",
"alternate": "app/templates/components/{}.hbs",
},
"app/components/*/component.js": {
"type": "component",
"alternate": "app/components/{}/template.hbs",
},
"app/templates/components/*.hbs": {
"type": "ctemplate",
"alternate": "app/components/{}.js",
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment