Skip to content

Instantly share code, notes, and snippets.

@veverkap
Created January 13, 2017 03:36
Show Gist options
  • Save veverkap/4b4bfa5cbfb41d8ab45c0efbe22303f5 to your computer and use it in GitHub Desktop.
Save veverkap/4b4bfa5cbfb41d8ab45c0efbe22303f5 to your computer and use it in GitHub Desktop.
➜ Code mkdir scratch
➜ Code cd scratch
➜ scratch pwd
/Users/patrickveverka/Code/scratch
➜ scratch mix new replicate_error --umbrella
* creating .gitignore
* creating README.md
* creating mix.exs
* creating apps
* creating config
* creating config/config.exs
Your umbrella project was created successfully.
Inside your project, you will find an apps/ directory
where you can create and host many apps:
cd replicate_error
cd apps
mix new my_app
Commands like "mix compile" and "mix test" when executed
in the umbrella project root will automatically run
for each application in the apps/ directory.
➜ scratch cd replicate_error/apps
➜ apps pwd
/Users/patrickveverka/Code/scratch/replicate_error/apps
➜ apps mix new foobar
* creating README.md
* creating .gitignore
* creating mix.exs
* creating config
* creating config/config.exs
* creating lib
* creating lib/foobar.ex
* creating test
* creating test/test_helper.exs
* creating test/foobar_test.exs
Your Mix project was created successfully.
You can use "mix" to compile it, test it, and more:
cd foobar
mix test
Run "mix help" for more commands.
➜ apps cd ..
➜ replicate_error pwd
/Users/patrickveverka/Code/scratch/replicate_error
➜ replicate_error mix test test/foobar_test.exs:5
==> foobar
Compiling 1 file (.ex)
Generated foobar app
==> foobar
Including tags: [line: "5"]
Excluding tags: [:test]
.
Finished in 0.02 seconds
1 test, 0 failures
Randomized with seed 659616
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment