1 | apeman-need
|
2 | ==========
|
3 |
|
4 |
|
5 | This file is generated by ape-tmpl. Do not update manually.
|
6 | --->
|
7 |
|
8 |
|
9 | <a name="badges"></a>
|
10 |
|
11 | [![Build Status][bd_travis_shield_url]][bd_travis_url]
|
12 | [![Code Climate][bd_codeclimate_shield_url]][bd_codeclimate_url]
|
13 | [![Code Coverage][bd_codeclimate_coverage_shield_url]][bd_codeclimate_url]
|
14 | [![npm Version][bd_npm_shield_url]][bd_npm_url]
|
15 |
|
16 | [bd_repo_url]: https://github.com/apeman-cmd-labo/apeman-need
|
17 | [bd_travis_url]: http://travis-ci.org/apeman-cmd-labo/apeman-need
|
18 | [bd_travis_shield_url]: http://img.shields.io/travis/apeman-cmd-labo/apeman-need.svg?style=flat
|
19 | [bd_license_url]: https://github.com/apeman-cmd-labo/apeman-need/blob/master/LICENSE
|
20 | [bd_codeclimate_url]: http://codeclimate.com/github/apeman-cmd-labo/apeman-need
|
21 | [bd_codeclimate_shield_url]: http://img.shields.io/codeclimate/github/apeman-cmd-labo/apeman-need.svg?style=flat
|
22 | [bd_codeclimate_coverage_shield_url]: http://img.shields.io/codeclimate/coverage/github/apeman-cmd-labo/apeman-need.svg?style=flat
|
23 | [bd_gemnasium_url]: https://gemnasium.com/apeman-cmd-labo/apeman-need
|
24 | [bd_gemnasium_shield_url]: https://gemnasium.com/apeman-cmd-labo/apeman-need.svg
|
25 | [bd_npm_url]: http://www.npmjs.org/package/apeman-need
|
26 | [bd_npm_shield_url]: http://img.shields.io/npm/v/apeman-need.svg?style=flat
|
27 | [bd_bower_badge_url]: https://img.shields.io/bower/v/apeman-need.svg?style=flat
|
28 |
|
29 |
|
30 |
|
31 |
|
32 |
|
33 | <a name="description"></a>
|
34 |
|
35 | Needs checker for apeman.
|
36 |
|
37 |
|
38 |
|
39 |
|
40 |
|
41 | <a name="overview"></a>
|
42 |
|
43 |
|
44 |
|
45 |
|
46 |
|
47 |
|
48 |
|
49 | <a name="sections"></a>
|
50 |
|
51 |
|
52 |
|
53 | <a name="section-doc-guides-01-installation-md"></a>
|
54 | Installation
|
55 | -----
|
56 |
|
57 | Install apeman-need module via [npm][npm_url].
|
58 | ```bash
|
59 | $ npm install apeman-need -g
|
60 | ```
|
61 |
|
62 |
|
63 | [npm_url]: https://www.npmjs.com/
|
64 |
|
65 |
|
66 |
|
67 |
|
68 |
|
69 | <a name="section-doc-guides-02-usage-md"></a>
|
70 | Usage
|
71 | ---------
|
72 |
|
73 | 1. Prepare an Apemanfile.js at your project root.
|
74 | 2. Run the command via CLI.
|
75 |
|
76 | ***Apemanfile.js***
|
77 | ```javascript
|
78 | /** Example of Apemanfile.js */
|
79 |
|
80 | "use strict";
|
81 |
|
82 | module.exports = {
|
83 | $cwd:__dirname,
|
84 | $pkg: {/*...*/},
|
85 | $proto:[/*...*/],
|
86 | $tmpls: {/*...*/},
|
87 | $tasks: {/*...*/},
|
88 | $apps: {/*...*/},
|
89 | $wchs: {/*...*/}
|
90 | };
|
91 | ```
|
92 |
|
93 | Then,
|
94 |
|
95 | ```bash
|
96 | $ apeman-need
|
97 | ```
|
98 |
|
99 |
|
100 | ##### CLI Options
|
101 |
|
102 | ```bash
|
103 | $ apeman-need -h
|
104 |
|
105 | Usage: apeman-need [options]
|
106 |
|
107 | Check project needs.
|
108 |
|
109 | Options:
|
110 |
|
111 | -h, --help output usage information
|
112 | -V, --version output the version number
|
113 | -c, --configuration <configuration> Pathname of Apemanfile
|
114 |
|
115 | Examples:
|
116 |
|
117 | $ apeman-need # Check projects needs.
|
118 |
|
119 |
|
120 | ```
|
121 |
|
122 |
|
123 |
|
124 |
|
125 |
|
126 |
|
127 | <a name="section-doc-guides-03-programmatic-a-p-i-md"></a>
|
128 | Programmatic API
|
129 | ---
|
130 |
|
131 | apeman-need also provide programmatic API.
|
132 |
|
133 | Firstly, install the module locally.
|
134 |
|
135 | ```bash
|
136 | $ npm install apeman-need --save-dev
|
137 | ```
|
138 |
|
139 | Then,
|
140 |
|
141 | ```javascript
|
142 | var apemanNeed = require('apeman-need');
|
143 |
|
144 | apemanNeed({
|
145 |
|
146 | }, function(err){
|
147 | /*...*/
|
148 | });
|
149 | ```
|
150 |
|
151 |
|
152 | ##### Programmatic Options
|
153 |
|
154 | | Key | Description | Default |
|
155 | | --- | ----------- | ------- |
|
156 | | configuration | Pathname of Apemanfile | |
|
157 |
|
158 |
|
159 |
|
160 |
|
161 |
|
162 |
|
163 |
|
164 |
|
165 |
|
166 | <a name="license"></a>
|
167 |
|
168 | License
|
169 | -------
|
170 | This software is released under the [MIT License](https://github.com/apeman-cmd-labo/apeman-need/blob/master/LICENSE).
|
171 |
|
172 |
|
173 |
|
174 |
|
175 |
|
176 | <a name="links"></a>
|
177 |
|
178 | Links
|
179 | ------
|
180 |
|
181 | + [apeman](http://github.com/apeman-labo/apeman)
|
182 | + [apeman-cmd-labo](http://github.com/apeman-cmd-labo)
|
183 |
|
184 |
|