add docs about npm and bower
This commit is contained in:
parent
db317a0be2
commit
0f1d415d85
5 changed files with 29 additions and 2 deletions
|
|
@ -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's now a <a href="mailto:mithriljs@googlegroups.com">community mailing list</a>. There's also <a href="https://groups.google.com/forum/#!forum/mithriljs">web interface</a></li>
|
||||
<li>There's now a <a href="mailto:mithriljs@googlegroups.com">community mailing list</a>. There'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>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -4,9 +4,10 @@
|
|||
|
||||
### News:
|
||||
|
||||
- There's now a [community mailing list](mailto:mithriljs@googlegroups.com). There's also [web interface](https://groups.google.com/forum/#!forum/mithriljs)
|
||||
- There's now a [community mailing list](mailto:mithriljs@googlegroups.com). There's also a [web interface](https://groups.google.com/forum/#!forum/mithriljs)
|
||||
- Mithril is now on Travis CI. The build status can be found in the [project homepage](https://github.com/lhorie/mithril.js)
|
||||
- Mithril is now available via the CommonJS and AMD API
|
||||
- Mithril can now [be installed via npm and bower](installation.md)
|
||||
|
||||
### Bug Fixes:
|
||||
|
||||
|
|
|
|||
|
|
@ -38,6 +38,24 @@ Content delivery networks allow the library to be cached across different websit
|
|||
|
||||
---
|
||||
|
||||
### NPM
|
||||
|
||||
NPM is the default package manager for [NodeJS](http://nodejs.org/). If you're using NodeJS already or planning on using [Grunt](http://gruntjs.com/) to create a build system, you can use NPM to conveniently keep up-to-date with Mithril versions.
|
||||
|
||||
Assuming you have NodeJS installed, you can download Mithril by typing this:
|
||||
|
||||
```
|
||||
npm install mithril
|
||||
```
|
||||
|
||||
Then, to use Mithril, point a script tag to the downloaded file:
|
||||
|
||||
```markup
|
||||
<script src="/node_modules/mithril/mithril.min.js"></script>
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
### Bower
|
||||
|
||||
[Bower](http://http://bower.io) is a package manager for [NodeJS](http://nodejs.org/). If you're using NodeJS already or planning on using [Grunt](http://gruntjs.com/) to create a build system, you can use Bower to conveniently keep up-to-date with Mithril versions.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue