Current section
48 Versions
Jump to
Current section
48 Versions
Compare versions
5
files changed
+28
additions
-2
deletions
| @@ -1,5 +1,10 @@ | |
| 1 1 | # Changelog |
| 2 2 | |
| 3 | + ## 0.1.2 |
| 4 | + |
| 5 | + Bug fix: |
| 6 | + - `action_link_item`: pass class to `link` slot. |
| 7 | + |
| 3 8 | ## 0.1.1 |
| 4 9 | |
| 5 10 | First release. |
| @@ -33,4 +33,4 @@ | |
| 33 33 | {<<"optional">>,false}, |
| 34 34 | {<<"repository">>,<<"hexpm">>}, |
| 35 35 | {<<"requirement">>,<<"~> 0.18.3">>}]]}. |
| 36 | - {<<"version">>,<<"0.1.1">>}. |
| 36 | + {<<"version">>,<<"0.1.2">>}. |
unknownlib/component.ex
File is too large to be displayed (100 KB limit).
| @@ -9,6 +9,10 @@ defmodule PrimerLive do | |
| 9 9 | Since this implementation closely adheres to the <a href="https://primer.style/css/" target="_blank">Primer CSS documentation</a>, extending components with <a href="https://primer.style/css/utilities" target="blank">Primer's utility classes</a> should be simple. |
| 10 10 | </p> |
| 11 11 | |
| 12 | + ## Source code |
| 13 | + |
| 14 | + [PrimerLive at GitHub](https://github.com/ArthurClemens/primer_live) |
| 15 | + |
| 12 16 | ## Versioning |
| 13 17 | |
| 14 18 | Included dependencies: |
| @@ -28,6 +32,23 @@ defmodule PrimerLive do | |
| 28 32 | - Edit `mix.exs` and add dependency `primer_live` |
| 29 33 | - Run `mix.deps get` |
| 30 34 | |
| 35 | + ### Dependency setup for deploying |
| 36 | + |
| 37 | + To ensure that the assets are installed before your application has started, or before it has been deployed, add "npm install" to the scripts in `mix.exs`. For example: |
| 38 | + |
| 39 | + ``` |
| 40 | + defp aliases do |
| 41 | + [ |
| 42 | + setup: ["deps.get", "cmd npm --prefix assets install"], |
| 43 | + "assets.deploy": [ |
| 44 | + "cmd npm --prefix assets install", |
| 45 | + "esbuild default --minify", |
| 46 | + "phx.digest" |
| 47 | + ] |
| 48 | + ] |
| 49 | + end |
| 50 | + ``` |
| 51 | + |
| 31 52 | ### Set up JavaScript / CSS |
| 32 53 | |
| 33 54 | Install [primer-live](https://www.npmjs.com/package/primer-live) |
| @@ -4,7 +4,7 @@ defmodule PrimerLive.MixProject do | |
| 4 4 | def project do |
| 5 5 | [ |
| 6 6 | app: :primer_live, |
| 7 | - version: "0.1.1", |
| 7 | + version: "0.1.2", |
| 8 8 | elixir: "~> 1.13", |
| 9 9 | homepage_url: "https://github.com/ArthurClemens/primer_live", |
| 10 10 | description: description(), |