Skip to content

Instantly share code, notes, and snippets.

@josemarluedke
Forked from AndrewRadev/ember-projections.json
Last active August 15, 2018 01:06
Show Gist options
  • Save josemarluedke/7e437ab6d7549f1a05342100057d88e0 to your computer and use it in GitHub Desktop.
Save josemarluedke/7e437ab6d7549f1a05342100057d88e0 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.
{
"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"
},
"app/controllers/*.js": {
"type": "controller",
"alternate": "tests/unit/controllers/{}.hbs"
},
"tests/unit/controllers/*.hbs": {
"type": "controller-test",
"alternate": "app/controllers/{}.js"
},
"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