Skip to content

Commit 9bac9c7

Browse files
committedMar 13, 2017
add helper files
1 parent 2681f9d commit 9bac9c7

File tree

5 files changed

+25
-2
lines changed

5 files changed

+25
-2
lines changed
 

‎.eslintignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.git/

‎.eslintrc

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
{
2-
"extends": ["vue"]
2+
"extends": [
3+
"vue"
4+
],
5+
"rules": {
6+
"no-unused-vars": "off"
7+
}
38
}

‎.npmignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.eslintignore
2+
.eslintrc
3+
.gitignore
4+
.travis.yml

‎.travis.yml

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
sudo: false
22
language: node_js
33
node_js: stable
4+
os:
5+
- linux
6+
- osx
7+
install:
8+
- npm install --no-optional

‎bin/docsify

+9-1
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,16 @@ require('yargonaut')
1717
.helpStyle('green')
1818
.errorsStyle('red.bold')
1919

20-
var argv = require('yargs')
20+
var yargs = require('yargs')
2121
.usage(chalk.bold(y18n.localized('usageDesc') + ': docsify <command> <path> [options]'))
22+
.command({
23+
command: '*',
24+
desc: 'the default command',
25+
builder: () => {},
26+
handler: (yargs) => {
27+
yargs.help()
28+
}
29+
})
2230
.command({
2331
command: 'init <path> [--local] [--theme vue]',
2432
alias: 'i',

0 commit comments

Comments
 (0)