正在显示
4 个修改的文件
包含
30 行增加
和
33 行删除
@@ -8,49 +8,24 @@ Igloo is a lightweight, fast, and minimal framework for rapid development | @@ -8,49 +8,24 @@ Igloo is a lightweight, fast, and minimal framework for rapid development | ||
8 | View documentation for Igloo at <http://documentup.com/niftylettuce/igloo>. | 8 | View documentation for Igloo at <http://documentup.com/niftylettuce/igloo>. |
9 | 9 | ||
10 | 10 | ||
11 | -## Quick Start | ||
12 | - | ||
13 | -### Requirements | 11 | +## Dependencies |
14 | 12 | ||
15 | * [Node](http://nodejs.org) | 13 | * [Node](http://nodejs.org) |
16 | * [Redis](http://redis.io/) | 14 | * [Redis](http://redis.io/) |
17 | * [MongoDB](http://www.mongodb.org/) | 15 | * [MongoDB](http://www.mongodb.org/) |
18 | 16 | ||
19 | -### Installation | ||
20 | 17 | ||
21 | -* Install the `igloo` package globally from the NPM repository: | 18 | +## Install |
22 | 19 | ||
23 | ```bash | 20 | ```bash |
24 | npm install -g igloo | 21 | npm install -g igloo |
25 | ``` | 22 | ``` |
26 | 23 | ||
27 | -* Create a new igloo: | ||
28 | - | ||
29 | -```bash | ||
30 | -igloo [project] | ||
31 | -``` | ||
32 | - | ||
33 | -* Initialize it as a Git repository: | ||
34 | - | ||
35 | -```bash | ||
36 | -cd [project] | ||
37 | -git init | ||
38 | -``` | ||
39 | 24 | ||
40 | -* Install the NPM dependencies: | ||
41 | - | ||
42 | -```bash | ||
43 | -npm install | ||
44 | -``` | ||
45 | - | ||
46 | -* Enjoy your fresh new igloo. | ||
47 | - | ||
48 | -```bash | ||
49 | -node igloo | ||
50 | -``` | 25 | +## Usage |
51 | 26 | ||
52 | ```bash | 27 | ```bash |
53 | -info: Igloo started at http://localhost:3000 | 28 | +igloo --help |
54 | ``` | 29 | ``` |
55 | 30 | ||
56 | 31 |
bin/igloo
已删除
100755 → 0
bin/index.js
0 → 100755
1 | +#!/usr/bin/env node | ||
2 | + | ||
3 | +// # bin | ||
4 | + | ||
5 | +var chalk = require('chalk') | ||
6 | +var program = require('commander') | ||
7 | +var pkg = require('../package.json') | ||
8 | +var logger = require('../lib/logger') | ||
9 | + | ||
10 | +logger.info('igloo v' + pkg.version + ' (see --help)') | ||
11 | + | ||
12 | +program.version(pkg.version) | ||
13 | + | ||
14 | +program | ||
15 | + .command('create') | ||
16 | + .description('create a new igloo') | ||
17 | + .action(function() { | ||
18 | + logger.error('creating a new igloo (todo)') | ||
19 | + }) | ||
20 | + | ||
21 | +program.parse(process.argv) | ||
22 | + | ||
23 | + |
@@ -12,13 +12,15 @@ | @@ -12,13 +12,15 @@ | ||
12 | "url": "https://github.com/niftylettuce/igloo/issues" | 12 | "url": "https://github.com/niftylettuce/igloo/issues" |
13 | }, | 13 | }, |
14 | "bin": { | 14 | "bin": { |
15 | - "igloo": "./bin/igloo" | 15 | + "igloo": "./bin/" |
16 | }, | 16 | }, |
17 | "license": "MIT", | 17 | "license": "MIT", |
18 | "homepage": "https://github.com/niftylettuce/igloo", | 18 | "homepage": "https://github.com/niftylettuce/igloo", |
19 | "dependencies": { | 19 | "dependencies": { |
20 | "async": "~0.2.10", | 20 | "async": "~0.2.10", |
21 | "body-parser": "~1.2.0", | 21 | "body-parser": "~1.2.0", |
22 | + "chalk": "^0.4.0", | ||
23 | + "commander": "^2.2.0", | ||
22 | "connect-flash": "~0.1.1", | 24 | "connect-flash": "~0.1.1", |
23 | "connect-redis": "~2.0.0", | 25 | "connect-redis": "~2.0.0", |
24 | "cookie-parser": "~1.1.0", | 26 | "cookie-parser": "~1.1.0", |
请
注册
或
登录
后发表评论