simplify steps

This commit is contained in:
Leo Horie 2016-11-15 10:16:14 -05:00
parent 9a3551c575
commit 60df92cfba

View file

@ -6,7 +6,7 @@ NPM (Node package manager) is the default package manager that is bundled w/ Nod
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 --yes` from the command line. This will create a file called `package.json`.
- run `npm install mithril@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
You are now ready to start using Mithril. The recommended way to structure code is to modularize it via CommonJS modules: