Packages
surface
0.8.1
0.12.3
0.12.2
0.12.1
0.12.0
0.11.5
0.11.4
0.11.3
0.11.2
0.11.1
0.11.0
0.10.0
0.9.5
0.9.4
0.9.3
0.9.2
0.9.1
0.9.0
0.8.4
0.8.3
0.8.2
0.8.1
0.8.0
0.7.6
0.7.5
0.7.4
0.7.3
0.7.2
0.7.1
0.7.0
0.6.1
0.6.0
0.5.2
0.5.1
0.5.0
0.4.1
0.4.0
0.3.2
0.3.1
0.3.0
0.2.1
0.2.0
0.1.1
0.1.0
0.1.0-alpha.2
0.1.0-alpha.1
0.1.0-alpha.0
A component based library for Phoenix LiveView
Current section
46 Versions
Jump to
Current section
46 Versions
Compare versions
8
files changed
+17
additions
-6
deletions
| @@ -1,6 +1,11 @@ | |
| 1 1 | # Changelog |
| 2 2 | |
| 3 | - ## v0.8.0 |
| 3 | + ## v0.8.1 (2022-09-02) |
| 4 | + |
| 5 | + * Fix surface compiler when setting a different `css_output_file` (#646) |
| 6 | + * Fix formatter for `:debug` |
| 7 | + |
| 8 | + ## v0.8.0 (2022-09-01) |
| 4 9 | |
| 5 10 | * Support Elixir `v1.14` |
| 6 11 | * Support scoped CSS styles for components using either inline `<style>` tags or colocated |
| @@ -76,7 +76,7 @@ Add `surface` to the list of dependencies in `mix.exs`: | |
| 76 76 | ```elixir |
| 77 77 | def deps do |
| 78 78 | [ |
| 79 | - {:surface, "~> 0.8.0"} |
| 79 | + {:surface, "~> 0.8.1"} |
| 80 80 | ] |
| 81 81 | end |
| 82 82 | ``` |
| @@ -198,4 +198,4 @@ | |
| 198 198 | {<<"optional">>,false}, |
| 199 199 | {<<"repository">>,<<"hexpm">>}, |
| 200 200 | {<<"requirement">>,<<"~> 0.9">>}]]}. |
| 201 | - {<<"version">>,<<"0.8.0">>}. |
| 201 | + {<<"version">>,<<"0.8.1">>}. |
| @@ -48,6 +48,7 @@ defmodule Mix.Tasks.Compile.Surface.AssetGenerator do | |
| 48 48 | content = to_string([header(), "\n" | content]) |
| 49 49 | |
| 50 50 | if content != dest_file_content do |
| 51 | + dest_file |> Path.dirname() |> File.mkdir_p!() |
| 51 52 | File.write!(dest_file, content) |
| 52 53 | end |
| @@ -47,6 +47,10 @@ defmodule Mix.Tasks.Compile.Surface do | |
| 47 47 | |
| 48 48 | @doc false |
| 49 49 | def run(args) do |
| 50 | + # Do nothing if it's a dependency. We only have to run it once for the main project |
| 51 | + if "--from-mix-deps-compile" in args do |
| 52 | + {:noop, []} |
| 53 | + else |
| 50 54 | {compile_opts, _argv, _err} = OptionParser.parse(args, switches: @switches) |
| 51 55 | opts = Application.get_env(:surface, :compiler, []) |
| 52 56 | asset_opts = Keyword.take(opts, [:hooks_output_dir, :css_output_file]) |
| @@ -60,6 +64,7 @@ defmodule Mix.Tasks.Compile.Surface do | |
| 60 64 | |> List.flatten() |
| 61 65 | |> handle_diagnostics(compile_opts) |
| 62 66 | end |
| 67 | + end |
| 63 68 | |
| 64 69 | @doc false |
| 65 70 | def handle_diagnostics(diagnostics, compile_opts) do |
Loading more files…