tldr/pages/common/mix.md

25 lines
387 B
Markdown
Raw Normal View History

2017-11-29 18:10:56 +00:00
# mix
> 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
- Display help:
2017-12-01 08:30:32 +00:00
`mix help`