Skip to content

Commit

Permalink
update phoenix_slim deps lesson 9: Mix (elixirschool#541)
Browse files Browse the repository at this point in the history
  • Loading branch information
yepesasecas authored and doomspork committed Jul 20, 2016
1 parent 8cedfa1 commit 703714f
Show file tree
Hide file tree
Showing 16 changed files with 69 additions and 69 deletions.
8 changes: 4 additions & 4 deletions bg/lessons/basics/mix.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,10 @@ For this example let's look at a project with dependencies, like [phoenix_slim](

```elixir
def deps do
[{:phoenix, "~> 0.16"},
{:phoenix_html, "~> 2.1"},
{:cowboy, "~> 1.0", only: [:dev, :test]},
{:slim_fast, ">= 0.6.0"}]
[{:phoenix, "~> 1.1 or ~> 1.2"},
{:phoenix_html, "~> 2.3"},
{:cowboy, "~> 1.0"},
{:slime, "~> 0.14"}]
end
```

Expand Down
8 changes: 4 additions & 4 deletions cn/lessons/basics/mix.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,10 @@ $ iex -S mix

```elixir
def deps do
[{:phoenix, "~> 0.16"},
{:phoenix_html, "~> 2.1"},
{:cowboy, "~> 1.0", only: [:dev, :test]},
{:slim_fast, ">= 0.6.0"}]
[{:phoenix, "~> 1.1 or ~> 1.2"},
{:phoenix_html, "~> 2.3"},
{:cowboy, "~> 1.0"},
{:slime, "~> 0.14"}]
end
```

Expand Down
8 changes: 4 additions & 4 deletions es/lessons/basics/mix.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,10 @@ Para este ejemplo vamos a ver un proyecto con dependencias, como [phoenix_slim](

```elixir
def deps do
[{:phoenix, "~> 0.16"},
{:phoenix_html, "~> 2.1"},
{:cowboy, "~> 1.0", only: [:dev, :test]},
{:slim_fast, ">= 0.6.0"}]
[{:phoenix, "~> 1.1 or ~> 1.2"},
{:phoenix_html, "~> 2.3"},
{:cowboy, "~> 1.0"},
{:slime, "~> 0.14"}]
end
```

Expand Down
10 changes: 5 additions & 5 deletions fr/lessons/basics/mix.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,10 @@ Pour cet exemple, regardons les dépendances d'un projet existant, comme [phoeni

```elixir
def deps do
[{:phoenix, "~> 0.16"},
{:phoenix_html, "~> 2.1"},
{:cowboy, "~> 1.0", only: [:dev, :test]},
{:slim_fast, ">= 0.6.0"}]
[{:phoenix, "~> 1.1 or ~> 1.2"},
{:phoenix_html, "~> 2.3"},
{:cowboy, "~> 1.0"},
{:slime, "~> 0.14"}]
end
```

Expand All @@ -122,7 +122,7 @@ Et voilà ! Nous avons défini et obtenu nos dépendances. On est maintenant pr

## Environnements

Mix, tout comme Bundler, supportes différents environnements. De base, mix fonctionne avec trois environnements:
Mix, tout comme Bundler, supportes différents environnements. De base, mix fonctionne avec trois environnements:

+ `:dev` — L'environnement par défaut.
+ `:test` — Utilisé par `mix test`. Couvert plus loin dans la leçon suivante.
Expand Down
8 changes: 4 additions & 4 deletions id/lessons/basics/mix.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,10 @@ Untuk contoh ini mari lihat sebuah project dengan dependensi, seperti [phoenix_s

```elixir
def deps do
[{:phoenix, "~> 0.16"},
{:phoenix_html, "~> 2.1"},
{:cowboy, "~> 1.0", only: [:dev, :test]},
{:slim_fast, ">= 0.6.0"}]
[{:phoenix, "~> 1.1 or ~> 1.2"},
{:phoenix_html, "~> 2.3"},
{:cowboy, "~> 1.0"},
{:slime, "~> 0.14"}]
end
```

Expand Down
8 changes: 4 additions & 4 deletions it/lessons/basics/mix.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,10 @@ Per questo esempio, diamo uno sguardo ad un progetto con le dipendenze, come [ph

```elixir
def deps do
[{:phoenix, "~> 0.16"},
{:phoenix_html, "~> 2.1"},
{:cowboy, "~> 1.0", only: [:dev, :test]},
{:slim_fast, ">= 0.6.0"}]
[{:phoenix, "~> 1.1 or ~> 1.2"},
{:phoenix_html, "~> 2.3"},
{:cowboy, "~> 1.0"},
{:slime, "~> 0.14"}]
end
```

Expand Down
8 changes: 4 additions & 4 deletions jp/lessons/basics/mix.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,10 @@ Generated example app

```elixir
def deps do
[{:phoenix, "~> 0.16"},
{:phoenix_html, "~> 2.1"},
{:cowboy, "~> 1.0", only: [:dev, :test]},
{:slim_fast, ">= 0.6.0"}]
[{:phoenix, "~> 1.1 or ~> 1.2"},
{:phoenix_html, "~> 2.3"},
{:cowboy, "~> 1.0"},
{:slime, "~> 0.14"}]
end
```

Expand Down
8 changes: 4 additions & 4 deletions ko/lessons/basics/mix.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,10 @@ Generated example app

```elixir
def deps do
[{:phoenix, "~> 0.16"},
{:phoenix_html, "~> 2.1"},
{:cowboy, "~> 1.0", only: [:dev, :test]},
{:slim_fast, ">= 0.6.0"}]
[{:phoenix, "~> 1.1 or ~> 1.2"},
{:phoenix_html, "~> 2.3"},
{:cowboy, "~> 1.0"},
{:slime, "~> 0.14"}]
end
```

Expand Down
8 changes: 4 additions & 4 deletions lessons/basics/mix.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,10 @@ For this example let's look at a project with dependencies, like [phoenix_slim](

```elixir
def deps do
[{:phoenix, "~> 0.16"},
{:phoenix_html, "~> 2.1"},
{:cowboy, "~> 1.0", only: [:dev, :test]},
{:slim_fast, ">= 0.6.0"}]
[{:phoenix, "~> 1.1 or ~> 1.2"},
{:phoenix_html, "~> 2.3"},
{:cowboy, "~> 1.0"},
{:slime, "~> 0.14"}]
end
```

Expand Down
10 changes: 5 additions & 5 deletions my/lessons/basics/mix.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ lang: my

Sebelum kita belajar lebih mendalam mengenai Elixir kita perlu memahami tentang mix. Jika anda biasa dengan Ruby, mix adalah gabungan Bundler, RubyGems dan Rake. Ia adalah elemen penting di dalam mana-mana projek Elixir dan di dalam pelajaran ini kita akan meneroka beberapa cirinya yang hebat. Untuk melihat apa yang dibekalkan oleh mix, jalankan `mix help`.

Sehingga tahap ini kita telah bekerja dengan `iex` yang mempunyai banyak kekangan. Untuk membina sesuatu yang berguna kita perlu memisahkan kod kita kepada banyak fail supaya mudah untuk diuruskan, dan mix memudahkan kita menguruskan projek-projek kita.
Sehingga tahap ini kita telah bekerja dengan `iex` yang mempunyai banyak kekangan. Untuk membina sesuatu yang berguna kita perlu memisahkan kod kita kepada banyak fail supaya mudah untuk diuruskan, dan mix memudahkan kita menguruskan projek-projek kita.

{% include toc.html %}

Expand Down Expand Up @@ -103,10 +103,10 @@ Sebagai contoh mari kita lihat satu projek yang mengandungi komponen sokongan, s

```elixir
def deps do
[{:phoenix, "~> 0.16"},
{:phoenix_html, "~> 2.1"},
{:cowboy, "~> 1.0", only: [:dev, :test]},
{:slim_fast, ">= 0.6.0"}]
[{:phoenix, "~> 1.1 or ~> 1.2"},
{:phoenix_html, "~> 2.3"},
{:cowboy, "~> 1.0"},
{:slime, "~> 0.14"}]
end
```

Expand Down
8 changes: 4 additions & 4 deletions no/lessons/basics/mix.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,10 @@ I dette eksemplet skal vi se på et prosjekt med tilleggspakker - [phoenix_slim]

```elixir
def deps do
[{:phoenix, "~> 0.16"},
{:phoenix_html, "~> 2.1"},
{:cowboy, "~> 1.0", only: [:dev, :test]},
{:slim_fast, ">= 0.6.0"}]
[{:phoenix, "~> 1.1 or ~> 1.2"},
{:phoenix_html, "~> 2.3"},
{:cowboy, "~> 1.0"},
{:slime, "~> 0.14"}]
end
```
Som du sikkert ser fra listen av tilleggspakker ovenfor, er `cowboy` kun nødvendig under utvikling og testing. Når vi har definert våre tilleggspakker gjenstår det kun et siste steg - å hente dem. Om du er kjent med Ruby, er dette ekvivalent med `bundle install`:
Expand Down
14 changes: 7 additions & 7 deletions pl/lessons/basics/mix.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ Do skompilowania projektu wystarczy polecenie `mix compile` wywołane w katalogu
$ mix compile
```

Nasz projekt nie zawiera zbyt wielu elementów, a zatem komunikat nie będzie zbyt ekscytujący, ale jednak liczymy na sukces:
Nasz projekt nie zawiera zbyt wielu elementów, a zatem komunikat nie będzie zbyt ekscytujący, ale jednak liczymy na sukces:

```bash
Compiled lib/example.ex
Expand All @@ -97,16 +97,16 @@ W trakcie kompilacji mix tworzy katalog `_build`, w którym umieści wyniki. Jak

Jak na razie nasz projekt nie ma żadnych zależności, ale nic nie stoi nam na przeszkodzie, by je dodać.

Dodanie nowej zależności odbywa się w sekcji `deps` w pliku `mix.exs`. Lista zależności zawiera krotki o dwóch obowiązkowych elementach i jednym opcjonalnym: atomie reprezentującym nazwę pakietu, ciągu znaków określającym wersję oraz opcjonalnych przełącznikach.
Dodanie nowej zależności odbywa się w sekcji `deps` w pliku `mix.exs`. Lista zależności zawiera krotki o dwóch obowiązkowych elementach i jednym opcjonalnym: atomie reprezentującym nazwę pakietu, ciągu znaków określającym wersję oraz opcjonalnych przełącznikach.

Rzućmy okiem na przykład na projekt [phoenix_slim](https://github.com/doomspork/phoenix_slim):

```elixir
def deps do
[{:phoenix, "~> 0.16"},
{:phoenix_html, "~> 2.1"},
{:cowboy, "~> 1.0", only: [:dev, :test]},
{:slim_fast, ">= 0.6.0"}]
[{:phoenix, "~> 1.1 or ~> 1.2"},
{:phoenix_html, "~> 2.3"},
{:cowboy, "~> 1.0"},
{:slime, "~> 0.14"}]
end
```

Expand Down
8 changes: 4 additions & 4 deletions pt/lessons/basics/mix.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,10 @@ Para este exemplo vamos ver um projeto com dependências, como [phoenix_slim](h

```elixir
def deps do
[{:phoenix, "~> 0.16"},
{:phoenix_html, "~> 2.1"},
{:cowboy, "~> 1.0", only: [:dev, :test]},
{:slim_fast, ">= 0.6.0"}]
[{:phoenix, "~> 1.1 or ~> 1.2"},
{:phoenix_html, "~> 2.3"},
{:cowboy, "~> 1.0"},
{:slime, "~> 0.14"}]
end
```

Expand Down
8 changes: 4 additions & 4 deletions ru/lessons/basics/mix.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,10 @@ Generated example app

```elixir
def deps do
[{:phoenix, "~> 0.16"},
{:phoenix_html, "~> 2.1"},
{:cowboy, "~> 1.0", only: [:dev, :test]},
{:slim_fast, ">= 0.6.0"}]
[{:phoenix, "~> 1.1 or ~> 1.2"},
{:phoenix_html, "~> 2.3"},
{:cowboy, "~> 1.0"},
{:slime, "~> 0.14"}]
end
```

Expand Down
8 changes: 4 additions & 4 deletions sk/lessons/basics/mix.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,10 @@ Pozrime sa na ukážku z nejakého projektu so závislosťami, napríklad [phoen

```elixir
def deps do
[{:phoenix, "~> 0.16"},
{:phoenix_html, "~> 2.1"},
{:cowboy, "~> 1.0", only: [:dev, :test]},
{:slim_fast, ">= 0.6.0"}]
[{:phoenix, "~> 1.1 or ~> 1.2"},
{:phoenix_html, "~> 2.3"},
{:cowboy, "~> 1.0"},
{:slime, "~> 0.14"}]
end
```

Expand Down
8 changes: 4 additions & 4 deletions vi/lessons/basics/mix.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,10 @@ For this example let's look at a project with dependencies, like [phoenix_slim](

```elixir
def deps do
[{:phoenix, "~> 0.16"},
{:phoenix_html, "~> 2.1"},
{:cowboy, "~> 1.0", only: [:dev, :test]},
{:slim_fast, ">= 0.6.0"}]
[{:phoenix, "~> 1.1 or ~> 1.2"},
{:phoenix_html, "~> 2.3"},
{:cowboy, "~> 1.0"},
{:slime, "~> 0.14"}]
end
```

Expand Down

0 comments on commit 703714f

Please sign in to comment.