add docs about component

This commit is contained in:
Leo Horie 2014-04-06 15:34:06 -04:00
parent 751cc683dd
commit 85a2259964
7 changed files with 47 additions and 4 deletions

View file

@ -68,13 +68,22 @@
<pre><code class="lang-markup">&lt;script src=&quot;/node_modules/mithril/mithril.min.js&quot;&gt;&lt;/script&gt;</code></pre>
<hr>
<h3 id="bower">Bower</h3>
<p><a href="http://http://bower.io">Bower</a> is a package manager for <a href="http://nodejs.org/">NodeJS</a>. If you&#39;re using NodeJS already or planning on using <a href="http://gruntjs.com/">Grunt</a> to create a build system, you can use Bower to conveniently keep up-to-date with Mithril versions.</p>
<p><a href="http://bower.io">Bower</a> is a package manager for <a href="http://nodejs.org/">NodeJS</a>. If you&#39;re using NodeJS already or planning on using <a href="http://gruntjs.com/">Grunt</a> to create a build system, you can use Bower to conveniently keep up-to-date with Mithril versions.</p>
<p>Assuming you have NodeJS installed, you can install Bower by typing this in the command line:</p>
<pre><code>npm install -g bower</code></pre>
<p>And you can download Mithril by typing this:</p>
<pre><code>bower install mithril</code></pre>
<p>Then, to use Mithril, point a script tag to the downloaded file:</p>
<pre><code class="lang-markup">&lt;script src=&quot;/bower_components/mithril/mithril.min.js&quot;&gt;&lt;/script&gt;</code></pre>
<hr>
<h3 id="component">Component</h3>
<p><a href="http://component.io">Component</a> is another package manager for <a href="http://nodejs.org/">NodeJS</a>. If you&#39;re using NodeJS already or planning on using <a href="http://gruntjs.com/">Grunt</a> to create a build system, you can use Component to conveniently keep up-to-date with Mithril versions.</p>
<p>Assuming you have NodeJS installed, you can install Bower by typing this in the command line:</p>
<pre><code>npm install -g component</code></pre>
<p>And you can download Mithril by typing this:</p>
<pre><code>component install lhorie/mithril@gh-pages</code></pre>
<p>Then, to use Mithril, point a script tag to the downloaded file:</p>
<pre><code class="lang-markup">&lt;script src=&quot;/components/lhorie/mithril/master/mithril.min.js&quot;&gt;&lt;/script&gt;</code></pre>
</div>
</div>