add docs about npm and bower

This commit is contained in:
Leo Horie 2014-04-01 22:35:50 -04:00
parent db317a0be2
commit 0f1d415d85
5 changed files with 29 additions and 2 deletions

View file

@ -60,6 +60,13 @@
<h4 id="jsdelivr">JsDelivr</h4>
<pre><code class="lang-markup">&lt;script src=&quot;//cdn.jsdelivr.net/mithril/0.1.2/mithril.min.js&quot;&gt;&lt;/script&gt;</code></pre>
<hr>
<h3 id="npm">NPM</h3>
<p>NPM is the default 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 NPM to conveniently keep up-to-date with Mithril versions.</p>
<p>Assuming you have NodeJS installed, you can download Mithril by typing this:</p>
<pre><code>npm 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;/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>Assuming you have NodeJS installed, you can install Bower by typing this in the command line:</p>