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

@ -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:

View file

@ -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.