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

@ -58,7 +58,7 @@ Then, to use Mithril, point a script tag to the downloaded file:
### 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.
[Bower](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.
Assuming you have NodeJS installed, you can install Bower by typing this in the command line:
@ -77,3 +77,27 @@ Then, to use Mithril, point a script tag to the downloaded file:
```markup
<script src="/bower_components/mithril/mithril.min.js"></script>
```
---
### Component
[Component](http://component.io) is another 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 Component to conveniently keep up-to-date with Mithril versions.
Assuming you have NodeJS installed, you can install Bower by typing this in the command line:
```
npm install -g component
```
And you can download Mithril by typing this:
```
component install lhorie/mithril@gh-pages
```
Then, to use Mithril, point a script tag to the downloaded file:
```markup
<script src="/components/lhorie/mithril/master/mithril.min.js"></script>
```