2017-11-29 18:10:56 +00:00
|
|
|
# mix
|
|
|
|
|
|
|
|
> Mix is a build tool that provides tasks for creating, compiling, and testing Elixir projects, managing its dependencies, and more.
|
2019-06-04 10:25:12 +01:00
|
|
|
> More information: <https://hexdocs.pm/mix>.
|
2017-11-29 18:10:56 +00:00
|
|
|
|
2017-12-01 08:30:32 +00:00
|
|
|
- Execute a particular file:
|
2017-11-29 18:10:56 +00:00
|
|
|
|
|
|
|
`mix run {{my_script.exs}}`
|
|
|
|
|
|
|
|
- Create a new project:
|
|
|
|
|
|
|
|
`mix new {{project_name}}`
|
|
|
|
|
|
|
|
- Compile project:
|
|
|
|
|
|
|
|
`mix compile`
|
|
|
|
|
|
|
|
- Run project tests:
|
|
|
|
|
2017-11-29 18:24:50 +00:00
|
|
|
`mix test`
|
2017-12-01 08:30:32 +00:00
|
|
|
|
|
|
|
- List all mix commands:
|
|
|
|
|
|
|
|
`mix help`
|