UNPKG

4.18 kBMarkdownView Raw
1apeman-demo-cmd
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-demo-labo/apeman-demo-cmd
17[bd_travis_url]: http://travis-ci.org/apeman-demo-labo/apeman-demo-cmd
18[bd_travis_shield_url]: http://img.shields.io/travis/apeman-demo-labo/apeman-demo-cmd.svg?style=flat
19[bd_license_url]: https://github.com/apeman-demo-labo/apeman-demo-cmd/blob/master/LICENSE
20[bd_codeclimate_url]: http://codeclimate.com/github/apeman-demo-labo/apeman-demo-cmd
21[bd_codeclimate_shield_url]: http://img.shields.io/codeclimate/github/apeman-demo-labo/apeman-demo-cmd.svg?style=flat
22[bd_codeclimate_coverage_shield_url]: http://img.shields.io/codeclimate/coverage/github/apeman-demo-labo/apeman-demo-cmd.svg?style=flat
23[bd_gemnasium_url]: https://gemnasium.com/apeman-demo-labo/apeman-demo-cmd
24[bd_gemnasium_shield_url]: https://gemnasium.com/apeman-demo-labo/apeman-demo-cmd.svg
25[bd_npm_url]: http://www.npmjs.org/package/apeman-demo-cmd
26[bd_npm_shield_url]: http://img.shields.io/npm/v/apeman-demo-cmd.svg?style=flat
27[bd_bower_badge_url]: https://img.shields.io/bower/v/apeman-demo-cmd.svg?style=flat
28
29<!-- Badge End -->
30
31
32<!-- Description Start -->
33<a name="description"></a>
34
35Demo of command project.
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-demo-cmd module via [npm][npm_url].
58```bash
59$ npm install apeman-demo-cmd -g
60```
61
62
63[npm_url]: https://www.npmjs.com/
64
65
66<!-- Section from "doc/guides/01.Installation.md.hbs" End -->
67
68<!-- Section from "doc/guides/02.Usage.md.hbs" Start -->
69
70<a name="section-doc-guides-02-usage-md"></a>
71Usage
72---------
73
741. Prepare an Apemanfile.js at your project root.
752. Run the command via CLI.
76
77***Apemanfile.js***
78```javascript
79/** Example of Apemanfile.js */
80
81"use strict";
82
83module.exports = {
84 $cwd: __dirname,
85 $pkg: {/*...*/},
86 $proto: [/*...*/],
87 $tmpls: {/*...*/},
88 $tasks: {/*...*/},
89 $apps: {/*...*/},
90 $wtchs: {/*...*/},
91 $infra: {/*...*/}
92};
93```
94
95Then,
96
97```bash
98$ apeman-demo-cmd
99```
100
101
102##### CLI Options
103
104```bash
105$ apeman-demo-cmd -h
106
107 Usage: apeman-demo-cmd [options]
108
109 Demo of command project.
110
111 Options:
112
113 -h, --help output usage information
114 -V, --version output the version number
115 -v, --verbose Show verbose logs
116 -c, --configuration <configuration> Pathname of Apemanfile
117
118 Examples:
119
120 $ apeman-demo-cmd # __description_of_command_usage__
121
122
123```
124
125
126<!-- Section from "doc/guides/02.Usage.md.hbs" End -->
127
128<!-- Section from "doc/guides/03.Programmatic API.md.hbs" Start -->
129
130<a name="section-doc-guides-03-programmatic-a-p-i-md"></a>
131Programmatic API
132---
133
134apeman-demo-cmd also provide programmatic API.
135
136Firstly, install the module locally.
137
138```bash
139$ npm install apeman-demo-cmd --save-dev
140```
141
142Then,
143
144```javascript
145"use strict";
146
147const apemanDemoCmd = require('apeman-demo-cmd');
148
149apemanDemoCmd({
150
151}, (err) =>{
152 /*...*/
153});
154```
155
156
157##### Programmatic Options
158
159| Key | Description | Default |
160| --- | ----------- | ------- |
161| verbose | Show verbose logs | |
162| configuration | Pathname of Apemanfile | |
163
164
165<!-- Section from "doc/guides/03.Programmatic API.md.hbs" End -->
166
167
168<!-- Sections Start -->
169
170
171<!-- LICENSE Start -->
172<a name="license"></a>
173
174License
175-------
176This software is released under the [MIT License](https://github.com/apeman-demo-labo/apeman-demo-cmd/blob/master/LICENSE).
177
178<!-- LICENSE End -->
179
180
181<!-- Links Start -->
182<a name="links"></a>
183
184Links
185------
186
187+ [apeman](http://github.com/apeman-labo/apeman)
188+ [apeman-cmd-labo](http://github.com/apeman-cmd-labo)
189
190<!-- Links End -->