Packages
graphqexl
0.1.0-alpha-rc.23
0.1.0
0.1.0-alpha-rc.docs-test-6
0.1.0-alpha-rc.docs-test-5
0.1.0-alpha-rc.docs-test-4
0.1.0-alpha-rc.docs-test-3
0.1.0-alpha-rc.docs-test-2
0.1.0-alpha-rc.docs-test
0.1.0-alpha-rc.25
0.1.0-alpha-rc.24
0.1.0-alpha-rc.23
0.1.0-alpha-rc.22
0.1.0-alpha-rc.21
0.1.0-alpha-rc.20
0.1.0-alpha-rc.19
0.1.0-alpha-rc.18
0.1.0-alpha-rc.17
0.1.0-alpha-rc.16
0.1.0-alpha-rc.15
0.1.0-alpha-rc.14
0.1.0-alpha-rc.13
0.1.0-alpha-rc.12
0.1.0-alpha-rc.11
0.1.0-alpha-rc.10
0.1.0-alpha-rc.9
0.1.0-alpha-rc.8
0.1.0-alpha-rc.7
0.1.0-alpha-rc.6
0.1.0-alpha-rc.5
0.1.0-alpha-rc.4
0.1.0-alpha-rc.3
0.1.0-alpha-rc.2
0.1.0-alpha-rc.1
0.1.0-alpha.rc-4
0.1.0-alpha.rc.4
Fully-loaded, pure-Elixir GraphQL server implementation with developer tools
Current section
Files
Jump to
Current section
Files
lib/mix/tasks/graphqexl/dev.ex
defmodule Mix.Tasks.Graphqexl.Dev do
use Mix.Task
@shortdoc "Starts a server for the given GraphQL schema"
@moduledoc """
Starts the application by configuring all endpoints servers to run.
## Command line options
This task accepts the same command-line arguments as `run`.
For additional information, refer to the documentation for
`Mix.Tasks.Run`.
For example, to run `graphqexl.dev` without recompiling:
mix graphqexl.dev --no-compile
The `--no-halt` flag is automatically added.
Note that the `--no-deps-check` flag cannot be used this way,
because Mix needs to check dependencies to find `phx.server`.
To run `graphqexl.dev` without checking dependencies, you can run:
mix do deps.loadpaths --no-deps-check, graphqexl.dev
"""
@doc false
def run(args) do
Mix.Tasks.Run.run run_args() ++ args
end
defp run_args do
if iex_running?(), do: [], else: ["--no-halt"]
end
defp iex_running? do
Code.ensure_loaded?(IEx) and IEx.started?()
end
end