update npm identifier

This commit is contained in:
Leo Horie 2016-10-31 12:24:46 -04:00
parent 1994e8e596
commit adf91a4f7a
4 changed files with 5 additions and 5 deletions

View file

@ -11,7 +11,7 @@ This rewrite aims to fix longstanding API design issues, significantly improve p
You can install this via NPM using this command: You can install this via NPM using this command:
``` ```
npm install lhorie/mithril.js#rewrite npm install mithril@1.0.0-rc.2
``` ```
Examples run out of the box. Just open the HTML files. Examples run out of the box. Just open the HTML files.

View file

@ -7,7 +7,7 @@ NPM (Node package manager) is the default package manager that is bundled w/ Nod
To use Mithril via NPM: To use Mithril via NPM:
- go to your project folder, and run `npm init` from the command line. This will ask some questions (you can just press enter in all of them to set default values), and a file called `package.json` will be created. - go to your project folder, and run `npm init` from the command line. This will ask some questions (you can just press enter in all of them to set default values), and a file called `package.json` will be created.
- run `npm install lhorie/mithril.js#rewrite --save`. This will create a folder called `node_modules`, and a `mithril` folder inside of it. It will also add an entry under `dependencies` in the `package.json` file - run `npm install mithril@1.0.0-rc.2 --save`. This will create a folder called `node_modules`, and a `mithril` folder inside of it. It will also add an entry under `dependencies` in the `package.json` file
You are now ready to start using Mithril. The recommended way to structure code is to modularize it via CommonJS modules: You are now ready to start using Mithril. The recommended way to structure code is to modularize it via CommonJS modules:
@ -33,7 +33,7 @@ The easiest way to create a bundle is to setup an NPM script for Mithril's bundl
"build": "bundle index.js --output app.js --watch" "build": "bundle index.js --output app.js --watch"
}, },
"dependencies": { "dependencies": {
"mithril": "github:lhorie/mithril.js#rewrite" "mithril": "github:mithril@1.0.0-rc.2"
} }
} }
``` ```

View file

@ -12,7 +12,7 @@ The easist way to setup the test runner is to create an NPM script for it. Open
"test": "ospec" "test": "ospec"
}, },
"dependencies": { "dependencies": {
"mithril": "github:lhorie/mithril.js#rewrite" "mithril": "github:mithril@1.0.0-rc.2"
} }
} }
``` ```

View file

@ -12,5 +12,5 @@
"bin": { "bin": {
"ospec": "./bin/ospec" "ospec": "./bin/ospec"
}, },
"repository": "lhorie/mithril.js#rewrite" "repository": "mithril@1.0.0-rc.2"
} }