Skip to content

Commit fed6cc2

Browse files
committed
small tweaks
1 parent 0010bfb commit fed6cc2

File tree

3 files changed

+19
-11
lines changed

3 files changed

+19
-11
lines changed

bin/vue

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ program
2121
*/
2222

2323
program.on('--help', function () {
24+
console.log()
2425
console.log(' Commands:')
2526
console.log()
2627
console.log(' init generate a new project from a template')
@@ -35,15 +36,6 @@ program.on('--help', function () {
3536
program.parse(process.argv)
3637
if (!program.args.length) program.help()
3738

38-
/**
39-
* Padding.
40-
*/
41-
42-
console.log()
43-
process.on('exit', function () {
44-
console.log()
45-
})
46-
4739
/**
4840
* Settings.
4941
*/

bin/vue-list

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,19 @@ var logger = require('../lib/logger')
44
var request = require('request')
55
var chalk = require('chalk')
66

7+
/**
8+
* Padding.
9+
*/
10+
11+
console.log()
12+
process.on('exit', function () {
13+
console.log()
14+
})
15+
16+
/**
17+
* List repos.
18+
*/
19+
720
request({
821
url: 'https://api.github.com/users/vuejs-templates/repos',
922
headers: {
@@ -14,6 +27,9 @@ request({
1427
console.log(' Available official templates:')
1528
console.log()
1629
JSON.parse(body).forEach(function (repo) {
17-
console.log(' ' + chalk.yellow('★') + ' ' + chalk.blue(repo.name) + ' - ' + repo.description)
30+
console.log(
31+
' ' + chalk.yellow('★') +
32+
' ' + chalk.blue(repo.name) +
33+
' - ' + repo.description)
1834
})
1935
})

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "vue-cli",
33
"version": "1.0.1",
4-
"description": "Opinionated CLI for starting Vue.js single page applications",
4+
"description": "A simple CLI for scaffolding Vue.js projects.",
55
"preferGlobal": true,
66
"bin": {
77
"vue": "bin/vue"

0 commit comments

Comments
 (0)