Skip to content

Commit 9b167a0

Browse files
committed
rebuilding site Mon Jul 10 21:37:23 CDT 2017
1 parent 1bd34b3 commit 9b167a0

File tree

9 files changed

+256
-381
lines changed

9 files changed

+256
-381
lines changed

categories/index.xml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
2+
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
3+
<channel>
4+
<title>Categories on Elixirscript</title>
5+
<link>https://elixirscript.github.io/categories/</link>
6+
<description>Recent content in Categories on Elixirscript</description>
7+
<generator>Hugo -- gohugo.io</generator>
8+
<language>en-us</language>
9+
10+
<atom:link href="https://elixirscript.github.io/categories/index.xml" rel="self" type="application/rss+xml" />
11+
12+
13+
</channel>
14+
</rss>

guide/index.xml

Lines changed: 9 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -2,94 +2,26 @@
22
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
33
<channel>
44
<title>Guides on Elixirscript</title>
5-
<link>https://elixirscript.github.io/guide/index.xml</link>
5+
<link>https://elixirscript.github.io/guide/</link>
66
<description>Recent content in Guides on Elixirscript</description>
77
<generator>Hugo -- gohugo.io</generator>
88
<language>en-us</language>
99
<lastBuildDate>Sun, 05 Mar 2017 14:27:53 -0600</lastBuildDate>
10-
<atom:link href="https://elixirscript.github.io/guide/index.xml" rel="self" type="application/rss+xml" />
10+
11+
<atom:link href="https://elixirscript.github.io/guide/index.xml" rel="self" type="application/rss+xml" />
12+
1113

1214
<item>
1315
<title>using with phoenix</title>
1416
<link>https://elixirscript.github.io/guide/using-with-phoenix/</link>
1517
<pubDate>Sun, 05 Mar 2017 14:27:53 -0600</pubDate>
1618

1719
<guid>https://elixirscript.github.io/guide/using-with-phoenix/</guid>
18-
<description>&lt;p&gt;This guide will walk through setting up a Phoenix project with Elixirscript. This guide assumes you have already created a Phoenix project&lt;/p&gt;
19-
20-
&lt;p&gt;&lt;strong&gt;NOTE&lt;/strong&gt;: This guide covers Phoenix 1.2. It will be updated when Phoenix 1.3 is released&lt;/p&gt;
21-
22-
&lt;p&gt;Update your mix.exs file to add the current version of elixirscript to your dependencies:&lt;/p&gt;
23-
24-
&lt;pre&gt;&lt;code class=&#34;language-elixir&#34;&gt; defp deps do
25-
[
26-
#other deps
27-
{:elixir_script, &amp;quot;~&amp;gt; x.x.x&amp;quot;}
28-
]
29-
&lt;/code&gt;&lt;/pre&gt;
30-
31-
&lt;p&gt;Run &lt;code&gt;mix deps.get&lt;/code&gt;:&lt;/p&gt;
32-
33-
&lt;pre&gt;&lt;code class=&#34;language-bash&#34;&gt;mix deps.get
34-
&lt;/code&gt;&lt;/pre&gt;
35-
36-
&lt;p&gt;Next, Add the &lt;code&gt;elixir_script&lt;/code&gt; compiler to your list of mix compilers. Also add in the &lt;code&gt;elixir_script&lt;/code&gt; configuration:&lt;/p&gt;
37-
38-
&lt;pre&gt;&lt;code class=&#34;language-elixir&#34;&gt;def project do
39-
[app: :my_app,
40-
version: &amp;quot;0.0.1&amp;quot;,
41-
elixir: &amp;quot;~&amp;gt; 1.2&amp;quot;,
42-
elixirc_paths: elixirc_paths(Mix.env),
43-
compilers: [:phoenix, :gettext, :elixir_script] ++ Mix.compilers,
44-
build_embedded: Mix.env == :prod,
45-
start_permanent: Mix.env == :prod,
46-
deps: deps(),
47-
elixir_script: [
48-
input: &amp;quot;web/static/elixirscript&amp;quot;,
49-
output: &amp;quot;web/static/js/build&amp;quot;
50-
]
51-
]
52-
end
53-
&lt;/code&gt;&lt;/pre&gt;
54-
55-
&lt;p&gt;Elixirscript by default will looks for input in the &lt;code&gt;lib/elixirscript&lt;/code&gt; directory. It will also by default output to &lt;code&gt;priv/elixirscript&lt;/code&gt;. Update the input directory to &lt;code&gt;web/static/elixirscript&lt;/code&gt;. Update the output directory to &lt;code&gt;web/static/js/build&lt;/code&gt;. This lets it tie into Brunch&amp;rsquo;s pipeline.&lt;/p&gt;
56-
57-
&lt;p&gt;Next, update the watcher configuration to use the Elixirscript watcher:&lt;/p&gt;
58-
59-
&lt;pre&gt;&lt;code class=&#34;language-elixir&#34;&gt; watchers: [node: [&amp;quot;node_modules/brunch/bin/brunch&amp;quot;, &amp;quot;watch&amp;quot;, &amp;quot;--stdin&amp;quot;,
60-
cd: Path.expand(&amp;quot;../&amp;quot;, __DIR__)], mix: [&amp;quot;elixirscript.watch&amp;quot;]]
61-
&lt;/code&gt;&lt;/pre&gt;
62-
63-
&lt;p&gt;Whenever your Elixirscript code changes, the elixirscript compiler will recompile it.&lt;/p&gt;
64-
65-
&lt;p&gt;Create &lt;code&gt;app.ex&lt;/code&gt; in the &lt;code&gt;web/static/elixirscript&lt;/code&gt; directory&lt;/p&gt;
66-
67-
&lt;pre&gt;&lt;code class=&#34;language-bash&#34;&gt;touch web/static/elixirscript/app.ex
68-
&lt;/code&gt;&lt;/pre&gt;
69-
70-
&lt;p&gt;For this example, write a simple module that will write &lt;code&gt;Hello, world&lt;/code&gt; to the console on start:&lt;/p&gt;
71-
72-
&lt;pre&gt;&lt;code class=&#34;language-elixir&#34;&gt;defmodule App do
73-
74-
def start(_type, _args) do
75-
:console.log(&amp;quot;Hello, world&amp;quot;)
76-
end
77-
78-
end
79-
&lt;/code&gt;&lt;/pre&gt;
80-
81-
&lt;p&gt;Finally, update &lt;code&gt;web/static/js/app.js&lt;/code&gt; to start your Elixirscript app:&lt;/p&gt;
82-
83-
&lt;pre&gt;&lt;code class=&#34;language-javascript&#34;&gt;import Elixir from &#39;./build/Elixir.App&#39;;
84-
Elixir.start(Elixir.App, [])
85-
&lt;/code&gt;&lt;/pre&gt;
86-
87-
&lt;p&gt;The empty array is list of initial arguments for your app.&lt;/p&gt;
88-
89-
&lt;p&gt;If you run &lt;code&gt;mix compile&lt;/code&gt;, you should see a JavaScript file, &lt;code&gt;Elixir.App.js&lt;/code&gt; in your &lt;code&gt;web/static/js/build&lt;/code&gt; directory.&lt;/p&gt;
90-
91-
&lt;p&gt;If you run &lt;code&gt;mix phoenix.server&lt;/code&gt;, open your browser, and then open your console, you should see &lt;code&gt;Hello, world&lt;/code&gt;. Any changes should cause a reload&lt;/p&gt;
92-
</description>
20+
<description>This guide will walk through setting up a Phoenix project with Elixirscript. This guide assumes you have already created a Phoenix project
21+
NOTE: This guide covers Phoenix 1.2. It will be updated when Phoenix 1.3 is released
22+
Update your mix.exs file to add the current version of elixirscript to your dependencies:
23+
defp deps do [ #other deps {:elixir_script, &amp;quot;~&amp;gt; x.x.x&amp;quot;} ] Run mix deps.get:
24+
mix deps.get Next, Add the elixir_script compiler to your list of mix compilers.</description>
9325
</item>
9426

9527
</channel>

index.html

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,22 @@ <h1 class="title is-4">Elixirscript</h1>
4141
<section class="section">
4242
<div class="container">
4343

44+
<article>
45+
<h2 class="subtitle is-6">July 10, 2017</h2>
46+
<h1 class="title"><a href="https://elixirscript.github.io/post/elixirscript-project-update/">elixirscript project update</a></h1>
47+
48+
<div class="content">
49+
A major change is happening to ElixirScript. The compiler has been rewritten to take advantage of features in Erlang 20 and the upcoming Elixir 1.5. The work for this started shortly after my presentation on ElixirScript at Lonestar Elixir. This post will go over the changes that are happening and why.
50+
The Old Compiler ElixirScript&rsquo;s old compiler compiled Elixir source code files. It would take these files and turn the code into the Elixir Abstract Syntax Tree (AST). ...
51+
<a class="button is-link" href="https://elixirscript.github.io/post/elixirscript-project-update/" style="height:28px">
52+
Read more
53+
<span class="icon is-small">
54+
<i class="fa fa-angle-double-right"></i>
55+
</span>
56+
</a>
57+
</div>
58+
</article>
59+
4460
<article>
4561
<h2 class="subtitle is-6">March 17, 2017</h2>
4662
<h1 class="title"><a href="https://elixirscript.github.io/post/elixirscript-0.27.0-released/">elixirscript 0.27.0 released</a></h1>

0 commit comments

Comments
 (0)