Skip to content

Commit c35dfac

Browse files
committed
run verb
1 parent 483e172 commit c35dfac

File tree

2 files changed

+48
-63
lines changed

2 files changed

+48
-63
lines changed

.verb.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +0,0 @@
1-
## History

README.md

Lines changed: 48 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -9,52 +9,17 @@ Generator for initializing a git repository and adding first commit.
99

1010
# generate-git
1111

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

1414
![generate-git demo](https://raw.githubusercontent.com/generate/generate-git/master/docs/demo.gif)
1515

16-
## Table of Contents
17-
18-
- [What is "Generate"?](#what-is-generate)
19-
- [Getting started](#getting-started)
20-
* [Install](#install)
21-
* [Usage](#usage)
22-
* [Help](#help)
23-
- [Tasks](#tasks)
24-
* [default](#default)
25-
* [first-commit](#first-commit)
26-
* [gitattributes](#gitattributes)
27-
* [gitignore](#gitignore)
28-
* [prompt-git](#prompt-git)
29-
- [About](#about)
30-
* [Related projects](#related-projects)
31-
* [Community](#community)
32-
* [Contributing](#contributing)
33-
* [Running tests](#running-tests)
34-
* [Author](#author)
35-
* [License](#license)
36-
37-
_(TOC generated by [verb](https://github.com/verbose/verb) using [markdown-toc](https://github.com/jonschlinkert/markdown-toc))_
38-
39-
## What is "Generate"?
40-
41-
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}.
42-
43-
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.
44-
45-
**For more information**:
46-
47-
* Visit the [generate project](https://github.com/generate/generate/)
48-
* Visit the [generate documentation](https://github.com/generate/generate/blob/master/docs/)
49-
* 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})
50-
5116
## Getting started
5217

5318
### Install
5419

5520
**Installing the CLI**
5621

57-
To run the `git` 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:
22+
To run the `readme` 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:
5823

5924
```sh
6025
$ npm install --global generate
@@ -70,19 +35,19 @@ Install this module with the following command:
7035
$ npm install --global generate-git
7136
```
7237

73-
### Usage
38+
### CLI
7439

7540
Run this generator's `default` [task](https://github.com/generate/generate/blob/master/docs/tasks.md#default) with the following command:
7641

7742
```sh
78-
$ gen git
43+
$ gen readme
7944
```
8045

8146
**What will happen?**
8247

8348
Running `$ gen git` will run this generator's `default` task, which initializes a new git repository, git adds the files, and does a first commit with the message `first commit`.
8449

85-
When [generate](https://github.com/generate/generate) is installed globally, you can run this generator with the `$ gen git` command, or use in your own generator as a plugin or sub-generator to make it a continuous part of the build workflow when scaffolding out a new project.
50+
When [generate](https://github.com/generate/generate) is installed globally, you can run this generator with the `$ gen readme` command, or use in your own generator as a plugin or sub-generator to make it a continuous part of the build workflow when scaffolding out a new project.
8651

8752
**What you should see in the terminal**
8853

@@ -106,9 +71,7 @@ $ gen help
10671

10772
## Tasks
10873

109-
All available tasks.
110-
111-
### [default](generator.js#L25)
74+
### [default](generator.js#L38)
11275

11376
Initialize a git repository, including `git add` and first commit.
11477

@@ -118,7 +81,7 @@ Initialize a git repository, including `git add` and first commit.
11881
$ gen git
11982
```
12083

121-
### [first-commit](generator.js#L38)
84+
### [first-commit](generator.js#L51)
12285

12386
Alias for the default task, to provide a semantic task name when using this generator as a plugin or sub-generator.
12487

@@ -128,40 +91,63 @@ Alias for the default task, to provide a semantic task name when using this gene
12891
$ gen git:first-commit
12992
```
13093

131-
### [gitattributes](generator.js#L68)
94+
### [clone](generator.js#L80)
13295

133-
Generate a `.gitattributes` file. You can override the default template by adding a custom template at the following path `~/templates/_gitattributes` (in user home). See the [git documentation](https://git-scm.com/docs/gitattributes) for `.gitattributes` files.
96+
Alias for the default task, to provide a semantic task name when using this generator as a plugin or sub-generator.
13497

13598
**Example**
13699

137100
```sh
138-
$ gen git:gitattributes
101+
$ gen git:clone
102+
$ gen git:git-clone # aliased for API usage
139103
```
140104

141-
### [gitignore](generator.js#L81)
105+
### [updater:prompt-git](generator.js#L111)
142106

143-
Generate a `.gitignore` file. You can override the default template by adding a custom template at the following path: `~/templates/_gitignore` (in user home).
107+
Prompts the user to confirm if they'd like to initialize a git repository with first [first-commit](#first-commit).
144108

145109
**Example**
146110

147111
```sh
148-
$ gen git:gitignore
112+
$ gen updater:prompt-git
149113
```
150114

151-
### [prompt-git](generator.js#L94)
115+
## Next steps
152116

153-
Prompt the user to initialize a git repository and create a first commit, runs the [first-commit](#first-commit) task if specified by the user.
117+
### Running unit tests
154118

155-
**Example**
119+
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:
156120

157121
```sh
158-
$ gen git:prompt-git
122+
$ npm install && test
159123
```
160124

161-
Visit Generate's [documentation for tasks](https://github.com/generate/generate/blob/master/docs/){tasks.md}.
125+
### Publishing your generator
126+
127+
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:
128+
129+
**Are you sure you're ready?!**
130+
131+
Let's go!
132+
133+
```sh
134+
$ npm publish
135+
```
162136

163137
## About
164138

139+
### What is "Generate"?
140+
141+
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).
142+
143+
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.
144+
145+
**For more information**:
146+
147+
* Visit the [generate project](https://github.com/generate/generate/)
148+
* Visit the [generate documentation](https://github.com/generate/generate/blob/master/docs/)
149+
* 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))
150+
165151
### Related projects
166152

167153
* [generate-license](https://www.npmjs.com/package/generate-license): Generate a license file for a GitHub project. | [homepage](https://github.com/generate/generate-license "Generate a license file for a GitHub project.")
@@ -170,7 +156,7 @@ Visit Generate's [documentation for tasks](https://github.com/generate/generate/
170156

171157
### Community
172158

173-
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?
159+
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?
174160

175161
Here are some suggestions!
176162

@@ -186,24 +172,24 @@ Pull requests and stars are always welcome. For bugs and feature requests, [plea
186172

187173
### Running tests
188174

189-
Install dev dependencies:
175+
Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:
190176

191177
```sh
192-
$ npm install -d && npm test
178+
$ npm install && npm test
193179
```
194180

195181
### Author
196182

197183
**Jon Schlinkert**
198184

199185
* [github/jonschlinkert](https://github.com/jonschlinkert)
200-
* [twitter/jonschlinkert](http://twitter.com/jonschlinkert)
186+
* [twitter/jonschlinkert](https://twitter.com/jonschlinkert)
201187

202188
### License
203189

204-
Copyright © 2016, [Jon Schlinkert](https://github.com/jonschlinkert).
205-
Released under the [MIT license](https://github.com/generate/generate-git/blob/master/LICENSE).
190+
Copyright © 2017, [Jon Schlinkert](https://github.com/jonschlinkert).
191+
Released under the [MIT License](LICENSE).
206192

207193
***
208194

209-
_This file was generated by [verb](https://github.com/verbose/verb), v0.9.0, on July 27, 2016._
195+
_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.6.0, on May 05, 2017._

0 commit comments

Comments
 (0)