Last active
August 10, 2017 04:54
-
-
Save jwworth/3bcdd09f36297f4f0159d5f7945c2827 to your computer and use it in GitHub Desktop.
Phoenix 1.3 Vim Projections
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"lib/tilex_web/models": { | |
"type": "model" | |
}, | |
"lib/tilex_web/models/*.ex": { | |
"type": "model", | |
"alternate": "test/models/{}_test.exs", | |
"template": [ | |
"defmodule {project|camelcase|capitalize|basename}.{camelcase|capitalize|dot} do", | |
" use {project|camelcase|capitalize|basename}Web, :model", | |
"", | |
"end" | |
] | |
}, | |
"test/models": { | |
"type": "tmodel" | |
}, | |
"test/models/*_test.exs": { | |
"type": "tmodel", | |
"alternate": "web/models/{}.ex", | |
"template": [ | |
"defmodule {project|camelcase|capitalize|basename}.{camelcase|capitalize|dot}Test do", | |
" use {project|camelcase|capitalize|basename}.ModelCase#, async: true", | |
"", | |
"end" | |
] | |
}, | |
"test/features/*.exs": { | |
"type": "feature" | |
}, | |
"lib/tilex_web/controllers": { | |
"type": "controller" | |
}, | |
"lib/tilex_web/controllers/*_controller.ex": { | |
"type": "controller", | |
"alternate": "test/controllers/{}_controller_test.exs", | |
"template": [ | |
"defmodule {project|camelcase|capitalize|basename}.{camelcase|capitalize|dot}Controller do", | |
" use {project|camelcase|capitalize|basename}Web, :controller", | |
"", | |
"end" | |
] | |
}, | |
"test/controllers": { | |
"type": "tcontroller" | |
}, | |
"test/controllers/*_controller_test.exs": { | |
"type": "tcontroller", | |
"alternate": "web/controllers/{}_controller.ex", | |
"template": [ | |
"defmodule {project|camelcase|capitalize|basename}.{camelcase|capitalize|dot}ControllerTest do", | |
" use {project|camelcase|capitalize|basename}.ConnCase#, async: true", | |
"", | |
"end" | |
] | |
}, | |
"lib/tilex_web/views": { | |
"type": "view" | |
}, | |
"lib/tilex_web/views/*_view.ex": { | |
"type": "view", | |
"alternate": "test/views/{}_view_test.exs", | |
"template": [ | |
"defmodule {project|camelcase|capitalize|basename}.{camelcase|capitalize|dot}View do", | |
" use {project|camelcase|capitalize|basename}Web, :view", | |
"", | |
"end" | |
] | |
}, | |
"test/views": { | |
"type": "tview" | |
}, | |
"test/views/*_view_test.exs": { | |
"type": "tview", | |
"alternate": "web/views/{}_view.ex", | |
"template": [ | |
"defmodule {project|camelcase|capitalize|basename}.{camelcase|capitalize|dot}ViewTest do", | |
" use {project|camelcase|capitalize|basename}.ConnCase#, async: true", | |
"", | |
"end" | |
] | |
}, | |
"lib/tilex_web/channels/*_channel.ex": { | |
"type": "channel", | |
"template": [ | |
"defmodule {project|camelcase|capitalize|basename}.{camelcase|capitalize|dot}Channel do", | |
" use Phoenix.Channel", | |
"", | |
"end" | |
] | |
}, | |
"assets/css/*.sass": { | |
"type": "stylesheet" | |
}, | |
"assets/css/*.scss": { | |
"type": "stylesheet" | |
}, | |
"lib/tilex_web/templates/*.html.eex": { | |
"type": "template" | |
}, | |
"lib": { | |
"type": "lib" | |
}, | |
"lib/*.ex": { | |
"type": "lib", | |
"alternate": "test/lib/{}_test.exs", | |
"template": [ | |
"defmodule {camelcase|capitalize|dot} do", | |
"", | |
"end" | |
] | |
}, | |
"test/lib/*.exs": { | |
"alternate": "lib/{}.ex", | |
"template": [ | |
"defmodule {camelcase|capitalize|dot} do", | |
" use ExUnit.Case", | |
"", | |
"end" | |
] | |
}, | |
"test": { | |
"type": "test" | |
}, | |
"test/*_test.exs": { | |
"type": "test", | |
"alternate": "{}.ex", | |
"template": [ | |
"defmodule {camelcase|capitalize|dot}Test do", | |
" use ExUnit.Case#, async: true", | |
"", | |
"end" | |
] | |
}, | |
"test/test_helper.exs": { | |
"type": "helper" | |
}, | |
"test/support": { | |
"type": "support" | |
}, | |
"test/support/*.ex": { | |
"type": "support", | |
"template": [ | |
"defmodule {project|camelcase|capitalize|basename}.{camelcase|capitalize|dot} do", | |
"", | |
" use ExUnit.CaseTemplate", | |
"", | |
" using do", | |
" quote do", | |
"", | |
" end", | |
" end", | |
"", | |
" setup tags do", | |
"", | |
" :ok", | |
" end", | |
"", | |
"end" | |
] | |
}, | |
"config/config.exs": { | |
"type": "config" | |
}, | |
"config/*.exs": { | |
"type": "config", | |
"template": [ | |
"use Mix.Config" | |
] | |
}, | |
"config/*.secret.exs": { | |
"type": "secret", | |
"template": [ | |
"use Mix.Config", | |
"", | |
"import_config \"{}.secret.exs\"" | |
] | |
}, | |
"mix.exs": { | |
"type": "x" | |
}, | |
"lib/tilex_web/router.ex": { | |
"type": "router" | |
}, | |
"lib/tilex_web/web.ex": { | |
"type": "web" | |
}, | |
"test/fixtures": { | |
"type": "fixture" | |
}, | |
"test/fixtures/*": { | |
"type": "fixture" | |
}, | |
"priv/repo/migrations/*.exs": { | |
"type": "migration" | |
}, | |
"priv/repo/seeds.exs": { | |
"type": "seeds" | |
}, | |
"test/support/factory.ex": { | |
"type": "factory" | |
}, | |
"*.exs": { | |
"console": "iex -S mix" | |
}, | |
"*.ex": { | |
"console": "iex -S mix" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment