UNPKG

3.93 kBMarkdownView Raw
1apeman-need
2==========
3
4<!---
5This file is generated by ape-tmpl. Do not update manually.
6--->
7
8<!-- Badge Start -->
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<!-- Badge End -->
30
31
32<!-- Description Start -->
33<a name="description"></a>
34
35Needs checker for apeman.
36
37<!-- Description End -->
38
39
40<!-- Overview Start -->
41<a name="overview"></a>
42
43
44
45<!-- Overview End -->
46
47
48<!-- Sections Start -->
49<a name="sections"></a>
50
51<!-- Section from "doc/guides/01.Installation.md.hbs" Start -->
52
53<a name="section-doc-guides-01-installation-md"></a>
54Installation
55-----
56
57Install 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<!-- Section from "doc/guides/01.Installation.md.hbs" End -->
66
67<!-- Section from "doc/guides/02.Usage.md.hbs" Start -->
68
69<a name="section-doc-guides-02-usage-md"></a>
70Usage
71---------
72
731. Prepare an Apemanfile.js at your project root.
742. Run the command via CLI.
75
76***Apemanfile.js***
77```javascript
78/** Example of Apemanfile.js */
79
80"use strict";
81
82module.exports = {
83 $cwd:__dirname,
84 $pkg: {/*...*/},
85 $proto:[/*...*/],
86 $tmpls: {/*...*/},
87 $tasks: {/*...*/},
88 $apps: {/*...*/},
89 $wchs: {/*...*/}
90};
91```
92
93Then,
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<!-- Section from "doc/guides/02.Usage.md.hbs" End -->
124
125<!-- Section from "doc/guides/03.Programmatic API.md.hbs" Start -->
126
127<a name="section-doc-guides-03-programmatic-a-p-i-md"></a>
128Programmatic API
129---
130
131apeman-need also provide programmatic API.
132
133Firstly, install the module locally.
134
135```bash
136$ npm install apeman-need --save-dev
137```
138
139Then,
140
141```javascript
142var apemanNeed = require('apeman-need');
143
144apemanNeed({
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<!-- Section from "doc/guides/03.Programmatic API.md.hbs" End -->
160
161
162<!-- Sections Start -->
163
164
165<!-- LICENSE Start -->
166<a name="license"></a>
167
168License
169-------
170This software is released under the [MIT License](https://github.com/apeman-cmd-labo/apeman-need/blob/master/LICENSE).
171
172<!-- LICENSE End -->
173
174
175<!-- Links Start -->
176<a name="links"></a>
177
178Links
179------
180
181+ [apeman](http://github.com/apeman-labo/apeman)
182+ [apeman-cmd-labo](http://github.com/apeman-cmd-labo)
183
184<!-- Links End -->