Skip to content

Commit df5cf78

Browse files
committed
generate readme documentation with verb
1 parent 7800dbf commit df5cf78

File tree

1 file changed

+93
-45
lines changed

1 file changed

+93
-45
lines changed

README.md

Lines changed: 93 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
1-
# generate-appveyor [![NPM version](https://img.shields.io/npm/v/generate-appveyor.svg?style=flat)](https://www.npmjs.com/package/generate-appveyor) [![NPM downloads](https://img.shields.io/npm/dm/generate-appveyor.svg?style=flat)](https://npmjs.org/package/generate-appveyor) [![Build Status](https://img.shields.io/travis/generate/generate-appveyor.svg?style=flat)](https://travis-ci.org/generate/generate-appveyor)
1+
<p align="center">
2+
3+
<a href="https://github.com/generate/generate">
4+
<img height="150" width="150" src="https://raw.githubusercontent.com/generate/generate/master/docs/logo.png">
5+
</a>
6+
</p>
27

38
Generate an appveyor.yml file to the cwd or specified directory. Install globally and run with generate's CLI, or use as a component in your own generator.
49

5-
You might also be interested in [generate-travis](https://github.com/generate/generate-travis).
10+
# generate-appveyor
611

7-
## What is generate?
12+
[![NPM version](https://img.shields.io/npm/v/generate-appveyor.svg?style=flat)](https://www.npmjs.com/package/generate-appveyor) [![NPM downloads](https://img.shields.io/npm/dm/generate-appveyor.svg?style=flat)](https://npmjs.org/package/generate-appveyor) [![Build Status](https://img.shields.io/travis/generate/generate-appveyor.svg?style=flat)](https://travis-ci.org/generate/generate-appveyor)
813

9-
Generate is a command line tool and developer framework for scaffolding out new GitHub projects using [generators](https://github.com/generate/generate/blob/master/docs/generators.md) and [tasks](https://github.com/generate/generate/blob/master/docs/tasks.md). Answers to prompts and the user's environment can be used to determine the templates, directories, files and contents to build. Support for [gulp](http://gulpjs.com), [base](https://github.com/node-base/base) and [assemble](https://github.com/assemble/assemble) plugins, and much more.
14+
You might also be interested in [generate-travis](https://github.com/generate/generate-travis).
1015

11-
For more information about Generate:
12-
13-
* Visit the [generate project](https://github.com/generate/generate)
14-
* Visit the [generate documentation](https://github.com/generate/generate/blob/master/docs/)
15-
* Find [generators on npm](https://www.npmjs.com/browse/keyword/generate-generator) (help us [author generators](https://github.com/generate/generate/blob/master/docs/micro-generators.md))
16+
![generate-appveyor demo](https://raw.githubusercontent.com/generate/generate-appveyor/master/docs/demo.gif)
1617

1718
## tldr
1819

@@ -62,24 +63,50 @@ Alias to enable running the [appveyor](#appveyor) task with the following comman
6263
$ gen appveyor
6364
```
6465

65-
## CLI
66+
## What is "Generate"?
67+
68+
Generate is a command line tool and developer framework for scaffolding out new GitHub projects using [generators](https://github.com/generate/generate/blob/master/docs/generators.md) and [tasks](https://github.com/generate/generate/blob/master/docs/tasks.md).
69+
70+
Answers to prompts and the user's environment can be used to determine the templates, directories, files and contents to build. Support for [gulp](http://gulpjs.com), [base](https://github.com/node-base/base) and [assemble](https://github.com/assemble/assemble) plugins, and much more.
71+
72+
**For more information**:
73+
74+
* Visit the [generate project](https://github.com/generate/generate/)
75+
* Visit the [generate documentation](https://github.com/generate/generate/blob/master/docs/)
76+
* Find [generators on npm](https://www.npmjs.com/browse/keyword/generate-generator) (help us [author generators](https://github.com/generate/generate/blob/master/docs/micro-generators.md))
77+
78+
## Getting started
79+
80+
### Install
81+
82+
**Installing the CLI**
83+
84+
To run the `appveyor` generator from the command line, you'll need to install [Generate](https://github.com/generate/generate) globally first. You can do that now with the following command:
85+
86+
```sh
87+
$ npm install --global generate
88+
```
89+
90+
This adds the `gen` command to your system path, allowing it to be run from any directory.
6691

67-
**Help**
92+
**Install generate-appveyor**
6893

69-
Get general help and a menu of available commands:
94+
Install this module with the following command:
7095

7196
```sh
72-
$ gen help
97+
$ npm install --global generate-appveyor
7398
```
7499

75-
**Running the `appveyor` generator**
100+
### Usage
76101

77-
Once both [generate](https://github.com/generate/generate) and `generate-appveyor` are installed globally, you can run the generator with the following command:
102+
Run this generator's `default` [task](https://github.com/generate/generate/blob/master/docs/tasks.md#default) with the following command:
78103

79104
```sh
80105
$ gen appveyor
81106
```
82107

108+
**What you should see in the terminal**
109+
83110
If completed successfully, you should see both `starting` and `finished` events in the terminal, like the following:
84111

85112
```sh
@@ -90,42 +117,61 @@ If completed successfully, you should see both `starting` and `finished` events
90117

91118
If you do not see one or both of those events, please [let us know about it](../../issues).
92119

93-
## API
120+
### Help
121+
122+
To see a general help menu and available commands for Generate's CLI, run:
123+
124+
```sh
125+
$ gen help
126+
```
127+
128+
## Tasks
94129

95-
### Install locally
130+
All available tasks.
96131

97-
If you want to use `generate-appveyor` as a plugin or sub-generator to extend the features and settings in your own generator, you must first install it locally:
132+
### [appveyor:appveyor](generator.js#L20)
98133

99-
Install with [npm](https://www.npmjs.com/):
134+
Generates an `appveyor.yml` file in the current working directory.
135+
136+
**Example**
100137

101138
```sh
102-
$ npm install --save generate-appveyor
139+
$ gen appveyor:appveyor
103140
```
104141

105-
### Use as a plugin
142+
### [appveyor:default](generator.js#L35)
106143

107-
Use as a [plugin](https://github.com/generate/generate/blob/master/docs/plugins.md) if you want to extend your own generator with the features, settings and tasks of `generate-appveyor`, as if they were created on your generator:
144+
Alias to enable running the [appveyor](#appveyor) task with the following command:
108145

109-
```js
110-
module.exports = function(app) {
111-
app.use(require('generate-appveyor'));
112-
};
146+
**Example**
147+
148+
```sh
149+
$ gen appveyor
113150
```
114151

115-
Visit Generate's [plugin docs](https://github.com/generate/generate/blob/master/docs/plugins.md) to learn more about plugins.
152+
Visit Generate's [documentation for tasks](https://github.com/generate/generate/blob/master/docs/tasks.md).
116153

117-
### Use as a sub-generator
154+
## Next steps
118155

119-
Use as a [sub-generator](https://github.com/generate/generate/blob/master/docs/generators.md) if you want to add `generate-appveyor` to a _namespace_ in your generator:
156+
### Running unit tests
120157

121-
```js
122-
module.exports = function(app) {
123-
// register the generate-appveyor with whatever name you want
124-
app.register('foo', require('generate-appveyor'));
125-
};
158+
It's never too early to begin running unit tests. When you're ready to get started, the following command will ensure the project's dependencies are installed then run all of the unit tests:
159+
160+
```sh
161+
$ npm install && test
126162
```
127163

128-
Visit Generate's [sub-generator docs](https://github.com/generate/generate/blob/master/docs/sub-generators.md) to learn more about sub-generators.
164+
### Publishing your generator
165+
166+
If you're tests are passing and you're ready to publish your generator to [npm](https://www.npmjs.com), you can do that now with the following command:
167+
168+
**Are you sure you're ready?!**
169+
170+
Let's go!
171+
172+
```sh
173+
$ npm publish
174+
```
129175

130176
## About
131177

@@ -136,19 +182,21 @@ Visit Generate's [sub-generator docs](https://github.com/generate/generate/blob/
136182
* [generate-travis](https://www.npmjs.com/package/generate-travis): Generate a .travis.yml file to the cwd or specified directory. Install globally and run with… [more](https://github.com/generate/generate-travis) | [homepage](https://github.com/generate/generate-travis "Generate a .travis.yml file to the cwd or specified directory. Install globally and run with generate's CLI, or use as a component in your own generator.")
137183
* [generate](https://www.npmjs.com/package/generate): Command line tool and developer framework for scaffolding out new GitHub projects. Generate offers the… [more](https://github.com/generate/generate) | [homepage](https://github.com/generate/generate "Command line tool and developer framework for scaffolding out new GitHub projects. Generate offers the robustness and configurability of Yeoman, the expressiveness and simplicity of Slush, and more powerful flow control and composability than either.")
138184

139-
### Contributing
185+
### Community
140186

141-
Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).
187+
Are you using [Generate](https://github.com/generate/generate) in your project? Have you published a [generator](https://github.com/generate/generate/blob/master/docs/generators.md) and want to share your project with the world?
142188

143-
### Building docs
189+
Here are some suggestions!
144190

145-
_(This document was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme) (a [verb](https://github.com/verbose/verb) generator), please don't edit the readme directly. Any changes to the readme must be made in [.verb.md](.verb.md).)_
191+
* If you get like Generate and want to tweet about it, please feel free to mention `@generatejs` or use the `#generatejs` hashtag
192+
* Show your love by starring [Generate](https://github.com/generate/generate) and `generate-appveyor`
193+
* Get implementation help on [StackOverflow](http://stackoverflow.com/questions/tagged/generate) (please use the `generatejs` tag in questions)
194+
* **Gitter** Discuss Generate with us on [Gitter](https://gitter.im/generate/generate)
195+
* If you publish an generator, thank you! To make your project as discoverable as possible, please add the keyword `generategenerator` to package.json.
146196

147-
To generate the readme and API documentation with [verb](https://github.com/verbose/verb):
197+
### Contributing
148198

149-
```sh
150-
$ npm install -g verb verb-generate-readme && verb
151-
```
199+
Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).
152200

153201
### Running tests
154202

@@ -168,8 +216,8 @@ $ npm install -d && npm test
168216
### License
169217

170218
Copyright © 2016, [Brian Woodward](https://github.com/doowb).
171-
Released under the [MIT license](https://github.com/generate/generate-appveyor/blob/master/LICENSE).
219+
Released under the [MIT license](LICENSE).
172220

173221
***
174222

175-
_This file was generated by [verb](https://github.com/verbose/verb), v0.9.0, on July 13, 2016._
223+
_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.2.0, on October 19, 2016._

0 commit comments

Comments
 (0)