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

@ -63,9 +63,10 @@
<p><a href="/mithril/archive/v0.1.2">v0.1.2</a> - maintenance</p>
<h3 id="news-">News:</h3>
<ul>
<li>There&#39;s now a <a href="mailto:mithriljs@googlegroups.com">community mailing list</a>. There&#39;s also <a href="https://groups.google.com/forum/#!forum/mithriljs">web interface</a></li>
<li>There&#39;s now a <a href="mailto:mithriljs@googlegroups.com">community mailing list</a>. There&#39;s also a <a href="https://groups.google.com/forum/#!forum/mithriljs">web interface</a></li>
<li>Mithril is now on Travis CI. The build status can be found in the <a href="https://github.com/lhorie/mithril.js">project homepage</a></li>
<li>Mithril is now available via the CommonJS and AMD API</li>
<li>Mithril can now <a href="installation.html">be installed via npm and bower</a></li>
</ul>
<h3 id="bug-fixes-">Bug Fixes:</h3>
<ul>

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>

Binary file not shown.