Skip to content

Instantly share code, notes, and snippets.

@avescodes
Created February 12, 2018 18:27
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 avescodes/a2c1a1efc53f9edf73cdad03ddeb201a to your computer and use it in GitHub Desktop.
Save avescodes/a2c1a1efc53f9edf73cdad03ddeb201a to your computer and use it in GitHub Desktop.
Projectionist Projections for Phoenix 1.3
{
"lib/*.ex": {
"type": "module",
"alternate": "test/{}_test.exs"
},
"test/*_test.exs": {
"type": "test",
"alternate": "lib/{}.ex"
},
"lib/**/controllers/*_controller.ex": {
"type": "controller",
"alternate": "test/{dirname}/controllers/{basename}_controller_test.exs"
},
"lib/**/templates/*.html.eex": {
"type": "template",
"alternate": "lib/{dirname}/views/{basename}_view.ex"
},
"lib/**/views/*_view.ex": {
"type": "view",
"alternate": "test/{dirname}/views/{basename}_view_test.ex"
},
"lib/*/router.ex": {
"type": "router",
"alternate": "lib/{}/router.ex"
},
"README.md": { "type": "docs" },
"docs/*.md": { "type": "docs" },
"assets/css/*.css": { "type": "css" },
"assets/js/*.js": { "type": "js" },
"config/*.exs": { "type": "config" },
"config/config.exs": { "type": "config" },
"mix.exs": { "type": "mix" },
"priv/repo/seeds.exs": { "type": "seeds" },
"priv/repo/migrations/*.exs": {
"type": "migration",
"make": "mix ecto.migrate"
},
"*": {
"console": "iex -S mix",
"make": "mix compile",
"start": "mix phx.server"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment