Skip to content

Commit 11fe684

Browse files
committed
Rename ReactUI to React.HTML
1 parent 76ed6ef commit 11fe684

File tree

5 files changed

+29
-6
lines changed

5 files changed

+29
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ A library for using React with ElixirScript
55
## Example
66

77
```elixir
8-
use ReactUI
8+
use React.HTML
99

1010
def my_section()
1111
section id: "todoapp" do

lib/reactui.ex renamed to lib/react/html.ex

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1-
defmodule ReactUI do
1+
defmodule React.HTML do
2+
@moduledoc """
3+
Defines macros for creating React HTML elements.
4+
"""
25

36
defmacro __using__(_) do
47
quote do
5-
import ReactUI
8+
import React.HTML
69
end
710
end
811

File renamed without changes.

mix.exs

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ defmodule ElixirScriptReact.Mixfile do
77
version: "1.0.0-react.15.6.1",
88
elixir: "~> 1.5",
99
start_permanent: Mix.env == :prod,
10-
deps: deps()
10+
deps: deps(),
11+
package: package(),
12+
description: description()
1113
]
1214
end
1315

@@ -19,7 +21,25 @@ defmodule ElixirScriptReact.Mixfile do
1921

2022
defp deps do
2123
[
22-
{:elixir_script, git: "[email protected]:elixirscript/elixirscript.git"},
24+
{:elixir_script, "~> 0.30"},
25+
]
26+
end
27+
28+
defp description do
29+
"""
30+
React Library for ElixirScript
31+
"""
32+
end
33+
34+
defp package do
35+
[
36+
files: ["lib", "priv/**/*.*", "mix.exs", "README.md", "LICENSE", "CHANGELOG.md"],
37+
maintainers: ["Bryan Joseph"],
38+
licenses: ["MIT"],
39+
links: %{
40+
"GitHub" => "https://github.com/elixirscript/elixirscript_react"
41+
},
42+
build_tools: ["mix"]
2343
]
2444
end
2545
end

mix.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
%{"elixir_script": {:git, "[email protected]:elixirscript/elixirscript.git", "4666746253c8d4d5affa61c66f3878bdd9cb6425", []},
1+
%{"elixir_script": {:hex, :elixir_script, "0.30.0", "c67b2d9b6cdfa432717f4bffa3f31f476ff5c5bf15cef59142c6a85e7089d530", [:mix], [{:estree, "~> 2.6", [hex: :estree, repo: "hexpm", optional: false]}], "hexpm"},
22
"estree": {:hex, :estree, "2.6.0", "86a301b0c355fa55c19e7ef9dceb1b1e983c6df526a2b7846818a38c258fc3fb", [], [], "hexpm"},
33
"fs": {:hex, :fs, "3.4.0", "6d18575c250b415b3cad559e6f97a4c822516c7bc2c10bfbb2493a8f230f5132", [], [], "hexpm"}}

0 commit comments

Comments
 (0)