add docs about npm and bower
This commit is contained in:
parent
db317a0be2
commit
0f1d415d85
5 changed files with 29 additions and 2 deletions
|
|
@ -60,6 +60,13 @@
|
|||
<h4 id="jsdelivr">JsDelivr</h4>
|
||||
<pre><code class="lang-markup"><script src="//cdn.jsdelivr.net/mithril/0.1.2/mithril.min.js"></script></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'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"><script src="/node_modules/mithril/mithril.min.js"></script></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'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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue