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

@ -2,6 +2,11 @@
[v0.1.3](/mithril/archive/v0.1.3) - maintenance
### News:
- Mithril is now available via [Component](http://component.io)
- There's now an extra low-level optimization hook called a SubtreeDirective, which allows implementing plugins that only create virtual trees if necessary.
### Bug Fixes:
- diff no longer touch the DOM when processing `style` attributes and event handlers

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>
```

View file

@ -2,7 +2,7 @@
"name": "mithril",
"description": "A Javascript framework for building brilliant applications",
"keywords": ["mvc", "framework"],
"repo": "lhorie/mithril",
"repository": "lhorie/mithril",
"main": "mithril.min.js",
"scripts": ["mithril.min.js"],
"version": "$version",