Chinese pages: correct Chinese punctuation (#5240)

This commit is contained in:
bl-ue
2021-08-02 04:41:09 -04:00
committed by GitHub
parent eaef3b4d21
commit 289e30dfb3
373 changed files with 1817 additions and 1810 deletions

View File

@@ -1,32 +1,32 @@
# babel
> 一款JavaScript的编译器将下一代ES语法转换为兼容语法。
> 更多信息: <https://babeljs.io/>.
> 一款 JavaScript 的编译器,将下一代 ES 语法转换为兼容语法。
> 更多信息 <https://babeljs.io/>.
- 转编译指定文件到标准输出:
- 转编译指定文件到标准输出
`babel {{路径/到/文件}}`
- 转编译指定文件,输入为特定文件:
- 转编译指定文件,输入为特定文件
`babel {{路径/到/输入文件}} --out-file {{路径/到/输出文件}}`
- 监听文件变动触发转编译:
- 监听文件变动触发转编译
`babel {{路径/到/输入文件}} --watch`
- 转编译整个目录下的js文件:
- 转编译整个目录下的 js 文件
`babel {{路径/到/输入文件目录}}`
- 跳过指定目录下指定文件的编译(多文件使用英文逗号“,”分隔):
- 跳过指定目录下指定文件的编译(多文件使用英文逗号“,”分隔)
`babel {{路径/到/输入文件目录}} --ignore {{被忽略文件}}`
- 转编译后,执行压缩:
- 转编译后,执行压缩
`babel {{路径/到/输入文件}} --minified`
- 使用预设值:
- 使用预设值
`babel {{路径/到/输入文件}} --presets {{预设项}}`