Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
计算机应用开发
前端
Vuepress
提交
c004fb34
V
Vuepress
项目概览
计算机应用开发
/
前端
/
Vuepress
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
V
Vuepress
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
c004fb34
编写于
8月 12, 2018
作者:
U
ULIVZ
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat: extract @vuepress/cli
上级
f1e6dd4a
变更
11
隐藏空白更改
内联
并排
Showing
11 changed file
with
87 addition
and
25 deletion
+87
-25
packages/@vuepress/cli/.npmignore
packages/@vuepress/cli/.npmignore
+2
-0
packages/@vuepress/cli/README.md
packages/@vuepress/cli/README.md
+3
-0
packages/@vuepress/cli/index.js
packages/@vuepress/cli/index.js
+23
-11
packages/@vuepress/cli/package.json
packages/@vuepress/cli/package.json
+28
-0
packages/@vuepress/core/lib/config.js
packages/@vuepress/core/lib/config.js
+0
-0
packages/@vuepress/core/package.json
packages/@vuepress/core/package.json
+0
-3
packages/@vuepress/plugin-docs/.npmignore
packages/@vuepress/plugin-docs/.npmignore
+2
-0
packages/@vuepress/plugin-docs/README.md
packages/@vuepress/plugin-docs/README.md
+3
-0
packages/@vuepress/plugin-docs/package.json
packages/@vuepress/plugin-docs/package.json
+25
-0
packages/docs/docs/.vuepress/config.js
packages/docs/docs/.vuepress/config.js
+0
-7
packages/docs/package.json
packages/docs/package.json
+1
-4
未找到文件。
packages/@vuepress/cli/.npmignore
0 → 100644
浏览文件 @
c004fb34
__tests__
__mocks__
\ No newline at end of file
packages/@vuepress/cli/README.md
0 → 100644
浏览文件 @
c004fb34
# @vuepress/cli
> cli for vuepress
\ No newline at end of file
packages/@vuepress/c
ore/bin/vuepress
.js
→
packages/@vuepress/c
li/index
.js
100755 → 100644
浏览文件 @
c004fb34
#!/usr/bin/env node
const
chalk
=
require
(
'
chalk
'
)
const
semver
=
require
(
'
semver
'
)
const
requiredVersion
=
require
(
'
../package.json
'
).
engines
.
node
try
{
require
.
resolve
(
'
@vuepress/core
'
)
}
catch
(
err
)
{
console
.
log
(
chalk
.
red
(
`\n[vuepress] @vuepress/cli `
+
`requires @vuepress/core to be installed.\n`
))
process
.
exit
(
1
)
}
const
pkg
=
require
(
'
@vuepress/core/package.json
'
)
const
requiredVersion
=
pkg
.
engines
.
node
if
(
!
semver
.
satisfies
(
process
.
version
,
requiredVersion
))
{
console
.
log
(
chalk
.
red
(
...
...
@@ -14,12 +24,12 @@ if (!semver.satisfies(process.version, requiredVersion)) {
}
const
path
=
require
(
'
path
'
)
const
{
dev
,
build
,
eject
}
=
require
(
'
../lib
'
)
const
{
dev
,
build
,
eject
}
=
require
(
'
@vuepress/core
'
)
const
program
=
require
(
'
commander
'
)
program
.
version
(
require
(
'
../package.json
'
)
.
version
)
.
version
(
pkg
.
version
)
.
usage
(
'
<command> [options]
'
)
program
...
...
@@ -94,12 +104,6 @@ enhanceErrorMessages('optionMissingArgument', (option, flag) => {
)
})
program
.
parse
(
process
.
argv
)
if
(
!
process
.
argv
.
slice
(
2
).
length
)
{
program
.
outputHelp
()
}
function
wrapCommand
(
fn
)
{
return
(...
args
)
=>
{
return
fn
(...
args
).
catch
(
err
=>
{
...
...
@@ -108,3 +112,11 @@ function wrapCommand (fn) {
})
}
}
exports
.
program
=
program
exports
.
bootstrap
=
function
()
{
program
.
parse
(
process
.
argv
)
if
(
!
process
.
argv
.
slice
(
2
).
length
)
{
program
.
outputHelp
()
}
}
packages/@vuepress/cli/package.json
0 → 100644
浏览文件 @
c004fb34
{
"name"
:
"@vuepress/cli"
,
"version"
:
"1.0.0"
,
"description"
:
"cli for vuepress"
,
"main"
:
"index.js"
,
"publishConfig"
:
{
"access"
:
"public"
},
"repository"
:
{
"type"
:
"git"
,
"url"
:
"git+https://github.com/vuejs/vue-cli.git"
},
"keywords"
:
[
"documentation"
,
"vue"
,
"vuepress"
,
"generator"
],
"author"
:
"Evan You"
,
"license"
:
"MIT"
,
"bugs"
:
{
"url"
:
"https://github.com/vuejs/vuepress/issues"
},
"peerDependencies"
:
{
"@vuepress/core"
:
"^1.0.0"
},
"homepage"
:
"https://github.com/vuejs/vuepress/packages/@vuepress/cli#readme"
}
\ No newline at end of file
packages/@vuepress/core/lib/config.js
0 → 100644
浏览文件 @
c004fb34
packages/@vuepress/core/package.json
浏览文件 @
c004fb34
...
...
@@ -3,9 +3,6 @@
"version"
:
"1.0.0"
,
"description"
:
"Minimalistic doc generator with Vue component based layout system"
,
"main"
:
"lib/index.js"
,
"bin"
:
{
"vuepress"
:
"bin/vuepress.js"
},
"scripts"
:
{
"lint"
:
"eslint --fix --ext .js,.vue bin/ lib/ test/"
,
"prepublishOnly"
:
"conventional-changelog -p angular -r 2 -i CHANGELOG.md -s"
,
...
...
packages/@vuepress/plugin-docs/.npmignore
0 → 100644
浏览文件 @
c004fb34
__tests__
__mocks__
\ No newline at end of file
packages/@vuepress/plugin-docs/README.md
0 → 100644
浏览文件 @
c004fb34
# @vuepress/plugin-docs
> docs plugin for vuepress
\ No newline at end of file
packages/@vuepress/plugin-docs/package.json
0 → 100644
浏览文件 @
c004fb34
{
"name"
:
"@vuepress/plugin-docs"
,
"version"
:
"1.0.0"
,
"description"
:
"docs plugin for vuepress"
,
"main"
:
"index.js"
,
"publishConfig"
:
{
"access"
:
"public"
},
"repository"
:
{
"type"
:
"git"
,
"url"
:
"git+https://github.com/vuejs/vue-cli.git"
},
"keywords"
:
[
"documentation"
,
"vue"
,
"vuepress"
,
"generator"
],
"author"
:
"Evan You"
,
"license"
:
"MIT"
,
"bugs"
:
{
"url"
:
"https://github.com/vuejs/vuepress/issues"
},
"homepage"
:
"https://github.com/vuejs/vuepress/packages/@vuepress/plugin-docs#readme"
}
\ No newline at end of file
packages/docs/docs/.vuepress/config.js
浏览文件 @
c004fb34
const
testPlugin
=
require
(
'
@vuepress/plugin-test
'
)
module
.
exports
=
{
dest
:
'
vuepress
'
,
locales
:
{
...
...
@@ -26,11 +24,6 @@ module.exports = {
[
'
meta
'
,
{
name
:
'
msapplication-TileColor
'
,
content
:
'
#000000
'
}]
],
serviceWorker
:
true
,
theme
:
'
default
'
,
plugins
:
[
testPlugin
,
'
translation-ui
'
,
],
themeConfig
:
{
repo
:
'
vuejs/vuepress
'
,
editLinks
:
true
,
...
...
packages/docs/package.json
浏览文件 @
c004fb34
...
...
@@ -22,9 +22,6 @@
},
"homepage"
:
"https://github.com/vuejs/vuepress#readme"
,
"devDependencies"
:
{
"@vuepress/core"
:
"^1.0.0"
,
"@vuepress/theme-default"
:
"^1.0.0"
,
"@vuepress/plugin-test"
:
"^1.0.0"
,
"@vuepress/plugin-translation-ui"
:
"^1.0.0"
"vuepress"
:
"^1.0.0"
}
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录