tldr/pages/common/mix.md

25 lines
405 B
Markdown
Raw Normal View History

2017-11-29 21:10:56 +03: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 12:25:12 +03:00
> More information: <https://hexdocs.pm/mix>.
2017-11-29 21:10:56 +03:00
2017-12-01 11:30:32 +03:00
- Execute a particular file:
2017-11-29 21:10:56 +03:00
`mix run {{my_script.exs}}`
- Create a new project:
`mix new {{project_name}}`
- Compile project:
`mix compile`
- Run project tests:
2017-11-29 21:24:50 +03:00
`mix test`
2017-12-01 11:30:32 +03:00
- List all mix commands:
`mix help`