Skip to content

Instantly share code, notes, and snippets.

@jrock2004
Forked from josemarluedke/ember-projections.json
Last active October 2, 2019 00:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jrock2004/83ce09452d48363e0005ee8229bf40c3 to your computer and use it in GitHub Desktop.
Save jrock2004/83ce09452d48363e0005ee8229bf40c3 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 classic structure app.

EmberJS Vim Projections

This file is used to help you navigate around in your project. You will want to install Tpope Vim Projections.

Create a new file .projections.json and put it in your root project directory and take the above code and put it in there.

{
"app/initializers/*.js": {
"type": "initializer",
"alternate": "tests/unit/initializers/{}-test.js"
},
"tests/unit/initializers/*-test.js": {
"type": "initializer-test",
"alternate": "app/initializers/{}.js"
},
"app/instance-initializers/*.js": {
"type": "instance-initializer",
"alternate": "tests/unit/instance-initializers/{}-test.js"
},
"tests/unit/instance-initializers/*-test.js": {
"type": "instance-initializer-test",
"alternate": "app/initializers/{}.js"
},
"app/models/*.js": {
"type": "model",
"alternate": "tests/unit/models/{}-test.js"
},
"tests/unit/models/*-test.js": {
"type": "model-test",
"alternate": "app/models/{}.js"
},
"app/adapters/*.js": {
"type": "adapter",
"alternate": "app/serializers/{}.js"
},
"app/serializers/*.js": {
"type": "serializer",
"alternate": "app/adapters/{}.js"
},
"app/services/*.js": {
"type": "service",
"alternate": "tests/unit/services/{}-test.js"
},
"tests/unit/services/*-test.js": {
"type": "service-test",
"alternate": "app/services/{}.js"
},
"app/transforms/*.js": {
"type": "transform",
"alternate": "tests/unit/transforms/{}-test.js"
},
"tests/unit/transforms/*-test.js": {
"type": "transform-test",
"alternate": "app/transforms/{}.js"
},
"app/routes/*.js": {
"type": "route",
"alternate": "app/templates/{}.hbs",
"related": "app/controllers/{}.js"
},
"app/templates/*.hbs": {
"type": "template",
"alternate": "app/routes/{}.js"
},
"tests/unit/routes/*-test.js": {
"type": "route-test",
"alternate": "app/routes/{}.js"
},
"app/controllers/*.js": {
"type": "controller",
"alternate": "tests/unit/controllers/{}.hbs"
},
"tests/unit/controllers/*.hbs": {
"type": "controller-test",
"alternate": "app/controllers/{}.js"
},
"app/components/*.js": {
"type": "component",
"alternate": "app/templates/components/{}.hbs"
},
"app/templates/components/*.hbs": {
"type": "ctemplate",
"alternate": "app/components/{}.js"
},
"tests/integration/components/*-test.js": {
"type": "component-test",
"alternate": "app/components/{}.js"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment