Skip to content
This repository has been archived by the owner on Dec 1, 2020. It is now read-only.

Commit

Permalink
⚡ improvement: default docs command
Browse files Browse the repository at this point in the history
  • Loading branch information
kazupon committed Jan 20, 2019
1 parent f36e526 commit 9e15945
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,15 @@ module.exports = (api, options) => {
description: 'documentation for plugin',
usage: 'vue-cli-service docs [options]',
options: {
'--mode': '`dev` or `build` mode, default `dev`'
'--mode': 'specify `dev` or `build` mode (default: `dev`)'
}
}, async args => {
const bin = require.resolve(path.join(__dirname, './node_modules/.bin/vuepress'))
const docs = require('./lib/docs')
return docs(bin, args)
})
}

module.exports.defaultModes = {
docs: 'dev'
}

0 comments on commit 9e15945

Please sign in to comment.