mirror of
https://github.com/WeBankFinTech/fes.js.git
synced 2025-04-06 03:59:53 +08:00
119 lines
34 KiB
HTML
119 lines
34 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="zh-CN">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width,initial-scale=1">
|
|
<meta name="generator" content="VuePress 2.0.0-beta.53">
|
|
<style>
|
|
:root {
|
|
--c-bg: #fff;
|
|
}
|
|
html.dark {
|
|
--c-bg: #22272e;
|
|
}
|
|
html, body {
|
|
background-color: var(--c-bg);
|
|
}
|
|
</style>
|
|
<script>
|
|
const userMode = localStorage.getItem('vuepress-color-scheme');
|
|
const systemDarkMode = window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches;
|
|
if (userMode === 'dark' || (userMode !== 'light' && systemDarkMode)) {
|
|
document.documentElement.classList.toggle('dark', true);
|
|
}
|
|
</script>
|
|
<link rel="manifest" href="/manifest.webmanifest"><link rel="icon" href="/logo.png"><title>命令行工具 | Fes.js</title><meta name="description" content="一个好用的前端应用解决方案">
|
|
<link rel="preload" href="/assets/style.03dc0593.css" as="style" /><link rel="stylesheet" href="/assets/style.03dc0593.css" />
|
|
<link rel="modulepreload" href="/assets/app.bd9c95b7.js"><link rel="modulepreload" href="/assets/index.html.cbd2c491.js"><link rel="modulepreload" href="/assets/index.html.4f4b557d.js"><link rel="prefetch" href="/assets/index.html.c52ea2ee.js" as="script" /><link rel="prefetch" href="/assets/index.html.4ecf73ea.js" as="script" /><link rel="prefetch" href="/assets/builder.html.246dbbe3.js" as="script" /><link rel="prefetch" href="/assets/config.html.637a9806.js" as="script" /><link rel="prefetch" href="/assets/contributing.html.8f3528e9.js" as="script" /><link rel="prefetch" href="/assets/css.html.f4729d94.js" as="script" /><link rel="prefetch" href="/assets/directory-structure.html.c7ccc960.js" as="script" /><link rel="prefetch" href="/assets/env.html.2fbe8f51.js" as="script" /><link rel="prefetch" href="/assets/faq.html.7f01d8a8.js" as="script" /><link rel="prefetch" href="/assets/getting-started.html.f4fdc148.js" as="script" /><link rel="prefetch" href="/assets/image.html.f92a08c2.js" as="script" /><link rel="prefetch" href="/assets/mock.html.561d68eb.js" as="script" /><link rel="prefetch" href="/assets/plugin.html.a5e6ae94.js" as="script" /><link rel="prefetch" href="/assets/public.html.950ba2eb.js" as="script" /><link rel="prefetch" href="/assets/route.html.8edafb3a.js" as="script" /><link rel="prefetch" href="/assets/runtime-config.html.b70d36d5.js" as="script" /><link rel="prefetch" href="/assets/template.html.900fbffc.js" as="script" /><link rel="prefetch" href="/assets/upgrade3.html.9bc44b95.js" as="script" /><link rel="prefetch" href="/assets/api.html.dd7de804.js" as="script" /><link rel="prefetch" href="/assets/cli.html.eb7c8bac.js" as="script" /><link rel="prefetch" href="/assets/index.html.833852a3.js" as="script" /><link rel="prefetch" href="/assets/index.html.1e4e9bb2.js" as="script" /><link rel="prefetch" href="/assets/index.html.4b24c667.js" as="script" /><link rel="prefetch" href="/assets/index.html.b99c3eab.js" as="script" /><link rel="prefetch" href="/assets/api.html.ad50f750.js" as="script" /><link rel="prefetch" href="/assets/access.html.ccef700f.js" as="script" /><link rel="prefetch" href="/assets/editor.html.45b1bf75.js" as="script" /><link rel="prefetch" href="/assets/enums.html.9eba9e94.js" as="script" /><link rel="prefetch" href="/assets/icon.html.1ef9becf.js" as="script" /><link rel="prefetch" href="/assets/jest.html.b6be70f6.js" as="script" /><link rel="prefetch" href="/assets/layout.html.737f0d05.js" as="script" /><link rel="prefetch" href="/assets/locale.html.a0788058.js" as="script" /><link rel="prefetch" href="/assets/login.html.3b52bc00.js" as="script" /><link rel="prefetch" href="/assets/model.html.a33983f1.js" as="script" /><link rel="prefetch" href="/assets/pinia.html.ca207361.js" as="script" /><link rel="prefetch" href="/assets/qiankun.html.fd060b60.js" as="script" /><link rel="prefetch" href="/assets/request.html.d16e6c85.js" as="script" /><link rel="prefetch" href="/assets/sass.html.be3aee7e.js" as="script" /><link rel="prefetch" href="/assets/swc.html.86a67f1f.js" as="script" /><link rel="prefetch" href="/assets/vuex.html.3e9bd488.js" as="script" /><link rel="prefetch" href="/assets/watermark.html.6ba7e245.js" as="script" /><link rel="prefetch" href="/assets/windicss.html.17a13504.js" as="script" /><link rel="prefetch" href="/assets/404.html.c3e557d0.js" as="script" /><link rel="prefetch" href="/assets/index.html.de0d80a1.js" as="script" /><link rel="prefetch" href="/assets/index.html.9f427ef5.js" as="script" /><link rel="prefetch" href="/assets/builder.html.5491993d.js" as="script" /><link rel="prefetch" href="/assets/config.html.bebaf600.js" as="script" /><link rel="prefetch" href="/assets/contributing.html.3aa886b1.js" as="script" /><link rel="prefetch" href="/assets/css.html.8c2b9f6e.js" as="script" /><link rel="prefetch" href="/assets/directory-structure.html.c7e6fd2d.js" as="script" /><link rel="prefetch" href="/assets/env.html.5728b740.js" as="script" /><link rel="prefetch" href="/assets/faq.html.d692a6e2.js" as="script" /><link rel="prefetch" href="/assets/getting-started.html.0eb9c5e2.js" as="script" /><link rel="prefetch" href="/assets/image.html.50bf0bdd.js" as="script" /><link rel="prefetch" href="/assets/mock.html.ab147021.js" as="script" /><link rel="prefetch" href="/assets/plugin.html.de4f8c7b.js" as="script" /><link rel="prefetch" href="/assets/public.html.d51b184d.js" as="script" /><link rel="prefetch" href="/assets/route.html.32be9bfc.js" as="script" /><link rel="prefetch" href="/assets/runtime-config.html.90acb818.js" as="script" /><link rel="prefetch" href="/assets/template.html.8e33412a.js" as="script" /><link rel="prefetch" href="/assets/upgrade3.html.c353af42.js" as="script" /><link rel="prefetch" href="/assets/api.html.87969763.js" as="script" /><link rel="prefetch" href="/assets/cli.html.af8c16d8.js" as="script" /><link rel="prefetch" href="/assets/index.html.9bf5bab1.js" as="script" /><link rel="prefetch" href="/assets/index.html.a2d6e9e6.js" as="script" /><link rel="prefetch" href="/assets/index.html.2877eae5.js" as="script" /><link rel="prefetch" href="/assets/index.html.d2f518d0.js" as="script" /><link rel="prefetch" href="/assets/api.html.06ea97fd.js" as="script" /><link rel="prefetch" href="/assets/access.html.1a82486a.js" as="script" /><link rel="prefetch" href="/assets/editor.html.0d361fe8.js" as="script" /><link rel="prefetch" href="/assets/enums.html.2b56cb9b.js" as="script" /><link rel="prefetch" href="/assets/icon.html.09e6d802.js" as="script" /><link rel="prefetch" href="/assets/jest.html.da327ef6.js" as="script" /><link rel="prefetch" href="/assets/layout.html.18970df4.js" as="script" /><link rel="prefetch" href="/assets/locale.html.669c5454.js" as="script" /><link rel="prefetch" href="/assets/login.html.5cb3e152.js" as="script" /><link rel="prefetch" href="/assets/model.html.17d86d37.js" as="script" /><link rel="prefetch" href="/assets/pinia.html.eb251b6e.js" as="script" /><link rel="prefetch" href="/assets/qiankun.html.03151319.js" as="script" /><link rel="prefetch" href="/assets/request.html.08c691d1.js" as="script" /><link rel="prefetch" href="/assets/sass.html.9236bc5e.js" as="script" /><link rel="prefetch" href="/assets/swc.html.1459de3d.js" as="script" /><link rel="prefetch" href="/assets/vuex.html.1794fc22.js" as="script" /><link rel="prefetch" href="/assets/watermark.html.e99470a0.js" as="script" /><link rel="prefetch" href="/assets/windicss.html.afe09b0e.js" as="script" /><link rel="prefetch" href="/assets/404.html.b697c9e3.js" as="script" /><link rel="prefetch" href="/assets/index.0b6f9a66.js" as="script" />
|
|
</head>
|
|
<body>
|
|
<div id="app"><!--[--><div class="theme-container"><!--[--><header class="navbar"><div class="toggle-sidebar-button" title="toggle sidebar" aria-expanded="false" role="button" tabindex="0"><div class="icon" aria-hidden="true"><span></span><span></span><span></span></div></div><span><a href="/" class=""><img class="logo" src="/logo.png" alt="Fes.js"><span class="site-name can-hide">Fes.js</span></a></span><div class="navbar-items-wrapper" style=""><!--[--><!--]--><nav class="navbar-items can-hide"><!--[--><div class="navbar-item"><a href="/guide/" class="" aria-label="指南"><!--[--><!--]--> 指南 <!--[--><!--]--></a></div><div class="navbar-item"><a href="/reference/config/" class="" aria-label="编译时配置"><!--[--><!--]--> 编译时配置 <!--[--><!--]--></a></div><div class="navbar-item"><a href="/reference/api/" class="" aria-label="API"><!--[--><!--]--> API <!--[--><!--]--></a></div><div class="navbar-item"><a href="/reference/plugin/" class="" aria-label="插件"><!--[--><!--]--> 插件 <!--[--><!--]--></a></div><div class="navbar-item"><a aria-current="page" href="/reference/cli/" class="router-link-active router-link-exact-active router-link-active" aria-label="CLI"><!--[--><!--]--> CLI <!--[--><!--]--></a></div><div class="navbar-item"><div class="navbar-dropdown-wrapper"><button class="navbar-dropdown-title" type="button" aria-label="v3.0.1-0"><span class="title">v3.0.1-0</span><span class="arrow down"></span></button><button class="navbar-dropdown-title-mobile" type="button" aria-label="v3.0.1-0"><span class="title">v3.0.1-0</span><span class="right arrow"></span></button><ul style="display:none;" class="navbar-dropdown"><!--[--><li class="navbar-dropdown-item"><a class="external-link" href="https://fesjs.mumblefe.cn/2.0" rel="noopener noreferrer" target="_blank" aria-label="v2.0"><!--[--><!--]--> v2.0 <span><svg class="external-link-icon" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg><span class="external-link-icon-sr-only">在新窗口打开</span></span><!--[--><!--]--></a></li><li class="navbar-dropdown-item"><a class="external-link" href="https://fesjs.mumblefe.cn/1.0" rel="noopener noreferrer" target="_blank" aria-label="v1.0"><!--[--><!--]--> v1.0 <span><svg class="external-link-icon" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg><span class="external-link-icon-sr-only">在新窗口打开</span></span><!--[--><!--]--></a></li><!--]--></ul></div></div><div class="navbar-item"><div class="navbar-dropdown-wrapper"><button class="navbar-dropdown-title" type="button" aria-label="了解更多"><span class="title">了解更多</span><span class="arrow down"></span></button><button class="navbar-dropdown-title-mobile" type="button" aria-label="了解更多"><span class="title">了解更多</span><span class="right arrow"></span></button><ul style="display:none;" class="navbar-dropdown"><!--[--><li class="navbar-dropdown-item"><a class="external-link" href="https://github.com/WeBankFinTech/fes.js/blob/next/CHANGELOG.md" rel="noopener noreferrer" target="_blank" aria-label="更新日志"><!--[--><!--]--> 更新日志 <span><svg class="external-link-icon" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg><span class="external-link-icon-sr-only">在新窗口打开</span></span><!--[--><!--]--></a></li><li class="navbar-dropdown-item"><a class="external-link" href="http://fes-design.mumblefe.cn/" rel="noopener noreferrer" target="_blank" aria-label="fes-design"><!--[--><!--]--> fes-design <span><svg class="external-link-icon" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg><span class="external-link-icon-sr-only">在新窗口打开</span></span><!--[--><!--]--></a></li><!--]--></ul></div></div><div class="navbar-item"><a class="external-link" href="https://github.com/WeBankFinTech/fes.js" rel="noopener noreferrer" target="_blank" aria-label="GitHub"><!--[--><!--]--> GitHub <span><svg class="external-link-icon" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg><span class="external-link-icon-sr-only">在新窗口打开</span></span><!--[--><!--]--></a></div><!--]--></nav><!--[--><!--]--><button class="toggle-color-mode-button" title="toggle color mode"><svg style="" class="icon" focusable="false" viewBox="0 0 32 32"><path d="M16 12.005a4 4 0 1 1-4 4a4.005 4.005 0 0 1 4-4m0-2a6 6 0 1 0 6 6a6 6 0 0 0-6-6z" fill="currentColor"></path><path d="M5.394 6.813l1.414-1.415l3.506 3.506L8.9 10.318z" fill="currentColor"></path><path d="M2 15.005h5v2H2z" fill="currentColor"></path><path d="M5.394 25.197L8.9 21.691l1.414 1.415l-3.506 3.505z" fill="currentColor"></path><path d="M15 25.005h2v5h-2z" fill="currentColor"></path><path d="M21.687 23.106l1.414-1.415l3.506 3.506l-1.414 1.414z" fill="currentColor"></path><path d="M25 15.005h5v2h-5z" fill="currentColor"></path><path d="M21.687 8.904l3.506-3.506l1.414 1.415l-3.506 3.505z" fill="currentColor"></path><path d="M15 2.005h2v5h-2z" fill="currentColor"></path></svg><svg style="display:none;" class="icon" focusable="false" viewBox="0 0 32 32"><path d="M13.502 5.414a15.075 15.075 0 0 0 11.594 18.194a11.113 11.113 0 0 1-7.975 3.39c-.138 0-.278.005-.418 0a11.094 11.094 0 0 1-3.2-21.584M14.98 3a1.002 1.002 0 0 0-.175.016a13.096 13.096 0 0 0 1.825 25.981c.164.006.328 0 .49 0a13.072 13.072 0 0 0 10.703-5.555a1.01 1.01 0 0 0-.783-1.565A13.08 13.08 0 0 1 15.89 4.38A1.015 1.015 0 0 0 14.98 3z" fill="currentColor"></path></svg></button><div id="docsearch-container"></div></div></header><!--]--><div class="sidebar-mask"></div><!--[--><aside class="sidebar"><nav class="navbar-items"><!--[--><div class="navbar-item"><a href="/guide/" class="" aria-label="指南"><!--[--><!--]--> 指南 <!--[--><!--]--></a></div><div class="navbar-item"><a href="/reference/config/" class="" aria-label="编译时配置"><!--[--><!--]--> 编译时配置 <!--[--><!--]--></a></div><div class="navbar-item"><a href="/reference/api/" class="" aria-label="API"><!--[--><!--]--> API <!--[--><!--]--></a></div><div class="navbar-item"><a href="/reference/plugin/" class="" aria-label="插件"><!--[--><!--]--> 插件 <!--[--><!--]--></a></div><div class="navbar-item"><a aria-current="page" href="/reference/cli/" class="router-link-active router-link-exact-active router-link-active" aria-label="CLI"><!--[--><!--]--> CLI <!--[--><!--]--></a></div><div class="navbar-item"><div class="navbar-dropdown-wrapper"><button class="navbar-dropdown-title" type="button" aria-label="v3.0.1-0"><span class="title">v3.0.1-0</span><span class="arrow down"></span></button><button class="navbar-dropdown-title-mobile" type="button" aria-label="v3.0.1-0"><span class="title">v3.0.1-0</span><span class="right arrow"></span></button><ul style="display:none;" class="navbar-dropdown"><!--[--><li class="navbar-dropdown-item"><a class="external-link" href="https://fesjs.mumblefe.cn/2.0" rel="noopener noreferrer" target="_blank" aria-label="v2.0"><!--[--><!--]--> v2.0 <span><svg class="external-link-icon" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg><span class="external-link-icon-sr-only">在新窗口打开</span></span><!--[--><!--]--></a></li><li class="navbar-dropdown-item"><a class="external-link" href="https://fesjs.mumblefe.cn/1.0" rel="noopener noreferrer" target="_blank" aria-label="v1.0"><!--[--><!--]--> v1.0 <span><svg class="external-link-icon" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg><span class="external-link-icon-sr-only">在新窗口打开</span></span><!--[--><!--]--></a></li><!--]--></ul></div></div><div class="navbar-item"><div class="navbar-dropdown-wrapper"><button class="navbar-dropdown-title" type="button" aria-label="了解更多"><span class="title">了解更多</span><span class="arrow down"></span></button><button class="navbar-dropdown-title-mobile" type="button" aria-label="了解更多"><span class="title">了解更多</span><span class="right arrow"></span></button><ul style="display:none;" class="navbar-dropdown"><!--[--><li class="navbar-dropdown-item"><a class="external-link" href="https://github.com/WeBankFinTech/fes.js/blob/next/CHANGELOG.md" rel="noopener noreferrer" target="_blank" aria-label="更新日志"><!--[--><!--]--> 更新日志 <span><svg class="external-link-icon" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg><span class="external-link-icon-sr-only">在新窗口打开</span></span><!--[--><!--]--></a></li><li class="navbar-dropdown-item"><a class="external-link" href="http://fes-design.mumblefe.cn/" rel="noopener noreferrer" target="_blank" aria-label="fes-design"><!--[--><!--]--> fes-design <span><svg class="external-link-icon" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg><span class="external-link-icon-sr-only">在新窗口打开</span></span><!--[--><!--]--></a></li><!--]--></ul></div></div><div class="navbar-item"><a class="external-link" href="https://github.com/WeBankFinTech/fes.js" rel="noopener noreferrer" target="_blank" aria-label="GitHub"><!--[--><!--]--> GitHub <span><svg class="external-link-icon" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg><span class="external-link-icon-sr-only">在新窗口打开</span></span><!--[--><!--]--></a></div><!--]--></nav><!--[--><!--]--><ul class="sidebar-items"><!--[--><li><p tabindex="0" class="sidebar-item sidebar-heading">命令行工具 <!----></p><ul style="" class="sidebar-item-children"><!--[--><li><a aria-current="page" href="/reference/cli/#create-fes-app" class="router-link-active router-link-exact-active sidebar-item" aria-label="create-fes-app"><!--[--><!--]--> create-fes-app <!--[--><!--]--></a><!----></li><li><a aria-current="page" href="/reference/cli/#fes" class="router-link-active router-link-exact-active sidebar-item" aria-label="fes"><!--[--><!--]--> fes <!--[--><!--]--></a><ul style="" class="sidebar-item-children"><!--[--><li><a aria-current="page" href="/reference/cli/#fes-dev" class="router-link-active router-link-exact-active sidebar-item" aria-label="fes dev"><!--[--><!--]--> fes dev <!--[--><!--]--></a><!----></li><li><a aria-current="page" href="/reference/cli/#fes-build" class="router-link-active router-link-exact-active sidebar-item" aria-label="fes build"><!--[--><!--]--> fes build <!--[--><!--]--></a><!----></li><li><a aria-current="page" href="/reference/cli/#fes-help" class="router-link-active router-link-exact-active sidebar-item" aria-label="fes help"><!--[--><!--]--> fes help <!--[--><!--]--></a><!----></li><li><a aria-current="page" href="/reference/cli/#fes-info" class="router-link-active router-link-exact-active sidebar-item" aria-label="fes info"><!--[--><!--]--> fes info <!--[--><!--]--></a><!----></li><li><a aria-current="page" href="/reference/cli/#fes-webpack" class="router-link-active router-link-exact-active sidebar-item" aria-label="fes webpack"><!--[--><!--]--> fes webpack <!--[--><!--]--></a><!----></li><!--]--></ul></li><!--]--></ul></li><!--]--></ul><!--[--><!--]--></aside><!--]--><!--[--><main class="page"><!--[--><!--]--><div class="theme-default-content"><!--[--><!--]--><div><h1 id="命令行工具" tabindex="-1"><a class="header-anchor" href="#命令行工具" aria-hidden="true">#</a> 命令行工具</h1><h2 id="create-fes-app" tabindex="-1"><a class="header-anchor" href="#create-fes-app" aria-hidden="true">#</a> create-fes-app</h2><p>通过 <code>create-fes-app</code> 命令创建项目模板,输入<code>create-fes-app -h</code>则可以看到如下信息:</p><div class="language-text line-numbers-mode" data-ext="text"><pre class="language-text"><code>Usage: create-fes-app <name>
|
|
|
|
Options:
|
|
-v, --version Output the current version
|
|
-h, --help Display help for command
|
|
-f, --force Overwrite target directory if it exists
|
|
-m, --merge Merge target directory if it exists
|
|
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div><p>可以在本机安装后使用:</p><div class="code-group"><div class="code-group__nav"><ul class="code-group__ul"><li class="code-group__li"><button class="code-group__nav-tab code-group__nav-tab-active" ariapressed="true" ariaexpanded="true">PNPM</button></li><li class="code-group__li"><button class="code-group__nav-tab" ariapressed="false" ariaexpanded="false">NPM</button></li></ul></div><!--[--><div class="code-group-item code-group-item__active" aria-selected="true"><!--[--><div class="language-bash line-numbers-mode" data-ext="sh"><pre class="language-bash"><code><span class="token comment"># 全局安装</span>
|
|
<span class="token function">pnpm</span> global <span class="token function">add</span> @fesjs/create-fes-app
|
|
|
|
<span class="token comment"># 创建模板</span>
|
|
create-fes-app fes-app
|
|
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div><!--]--></div><div class="code-group-item" aria-selected="false"><!--[--><div class="language-bash line-numbers-mode" data-ext="sh"><pre class="language-bash"><code><span class="token comment"># 全局安装</span>
|
|
<span class="token function">npm</span> i <span class="token parameter variable">-g</span> @fesjs/create-fes-app
|
|
|
|
<span class="token comment"># 创建模板</span>
|
|
create-fes-app fes-app
|
|
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div><!--]--></div><!--]--></div><p>推荐使用 <code>pnpm create</code> 和 <code>npx</code> 方式创建模板,一直使用最新的模板:</p><div class="code-group"><div class="code-group__nav"><ul class="code-group__ul"><li class="code-group__li"><button class="code-group__nav-tab code-group__nav-tab-active" ariapressed="true" ariaexpanded="true">PNPM</button></li><li class="code-group__li"><button class="code-group__nav-tab" ariapressed="false" ariaexpanded="false">NPM</button></li></ul></div><!--[--><div class="code-group-item code-group-item__active" aria-selected="true"><!--[--><div class="language-bash line-numbers-mode" data-ext="sh"><pre class="language-bash"><code><span class="token comment"># 创建模板</span>
|
|
<span class="token function">pnpm</span> create @fesjs/fes-app myapp
|
|
|
|
<span class="token comment"># 安装依赖</span>
|
|
<span class="token function">pnpm</span> i
|
|
|
|
<span class="token comment"># 运行</span>
|
|
<span class="token function">pnpm</span> dev
|
|
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div><!--]--></div><div class="code-group-item" aria-selected="false"><!--[--><div class="language-bash line-numbers-mode" data-ext="sh"><pre class="language-bash"><code><span class="token comment"># 创建模板</span>
|
|
npx @fesjs/create-fes-app myapp
|
|
|
|
<span class="token comment"># 安装依赖</span>
|
|
<span class="token function">npm</span> <span class="token function">install</span>
|
|
|
|
<span class="token comment"># 运行</span>
|
|
<span class="token function">npm</span> run dev
|
|
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div><!--]--></div><!--]--></div><h2 id="fes" tabindex="-1"><a class="header-anchor" href="#fes" aria-hidden="true">#</a> fes</h2><p>需要在项目根目录执行 <code>fes</code> 命令,输入<code>fes -h</code>则可以看到如下信息:</p><div class="language-text line-numbers-mode" data-ext="text"><pre class="language-text"><code>Usage: fes <command> [options]
|
|
|
|
一个好用的前端应用解决方案
|
|
|
|
Options:
|
|
-v, --vers output the current version
|
|
-h, --help display help for command
|
|
|
|
Commands:
|
|
build build application for production
|
|
dev [options] start a local http service for development
|
|
help show command helps
|
|
info print debugging information about your environment
|
|
webpack [options] inspect webpack configurations
|
|
|
|
Run fes <command> --help for detailed usage of given command.
|
|
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div><h3 id="fes-dev" tabindex="-1"><a class="header-anchor" href="#fes-dev" aria-hidden="true">#</a> fes dev</h3><p>启动本地开发服务器进行项目的开发调试。</p><div class="language-text line-numbers-mode" data-ext="text"><pre class="language-text"><code>Usage: fes dev [options]
|
|
|
|
start a local http service for development
|
|
|
|
Options:
|
|
--port http service port, like 8080
|
|
--https whether to turn on the https service
|
|
-h, --help display help for command
|
|
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div><p>比如:</p><div class="language-bash line-numbers-mode" data-ext="sh"><pre class="language-bash"><code>fes dev <span class="token parameter variable">--port</span><span class="token operator">=</span><span class="token number">8080</span>
|
|
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div></div></div><h3 id="fes-build" tabindex="-1"><a class="header-anchor" href="#fes-build" aria-hidden="true">#</a> fes build</h3><p>编译构建 web 产物。</p><div class="language-text line-numbers-mode" data-ext="text"><pre class="language-text"><code>Usage: fes build [options]
|
|
|
|
build application for production
|
|
|
|
Options:
|
|
-h, --help display help for command
|
|
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div><p>比如:</p><div class="language-text line-numbers-mode" data-ext="text"><pre class="language-text"><code>fes build
|
|
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div></div></div><h3 id="fes-help" tabindex="-1"><a class="header-anchor" href="#fes-help" aria-hidden="true">#</a> fes help</h3><p>打印帮助文档。 比如:</p><div class="language-bash line-numbers-mode" data-ext="sh"><pre class="language-bash"><code>fes <span class="token builtin class-name">help</span>
|
|
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div></div></div><h3 id="fes-info" tabindex="-1"><a class="header-anchor" href="#fes-info" aria-hidden="true">#</a> fes info</h3><p>打印当前项目的有用的环境信息,用来帮助定位问题。</p><div class="language-text line-numbers-mode" data-ext="text"><pre class="language-text"><code>Usage: fes info [options]
|
|
|
|
print debugging information about your environment
|
|
|
|
Options:
|
|
-h, --help display help for command
|
|
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div><p>比如:</p><div class="language-bash line-numbers-mode" data-ext="sh"><pre class="language-bash"><code>fes info
|
|
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div></div></div><h3 id="fes-webpack" tabindex="-1"><a class="header-anchor" href="#fes-webpack" aria-hidden="true">#</a> fes webpack</h3><p>查看项目使用的 webpack 配置。</p><div class="language-text line-numbers-mode" data-ext="text"><pre class="language-text"><code>Usage: fes webpack [options]
|
|
|
|
inspect webpack configurations
|
|
|
|
Options:
|
|
--rule <ruleName> inspect a specific module rule
|
|
--plugin <pluginName> inspect a specific plugin
|
|
--rules list all module rule names
|
|
--plugins list all plugin names
|
|
--verbose show full function definitions in output
|
|
-h, --help display help for command
|
|
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div><p>比如:</p><div class="language-bash line-numbers-mode" data-ext="sh"><pre class="language-bash"><code>fes webpack
|
|
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div></div></div></div><!--[--><!--]--></div><footer class="page-meta"><div class="meta-item edit-link"><a class="external-link meta-item-label" href="https://github.com/WeBankFinTech/fes.js/edit/next/docs/reference/cli/README.md" rel="noopener noreferrer" target="_blank" aria-label="在 GitHub 上编辑此页"><!--[--><!--]--> 在 GitHub 上编辑此页 <span><svg class="external-link-icon" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg><span class="external-link-icon-sr-only">在新窗口打开</span></span><!--[--><!--]--></a></div><div class="meta-item last-updated"><span class="meta-item-label">上次更新: </span><!----></div><div class="meta-item contributors"><span class="meta-item-label">贡献者: </span><span class="meta-item-info"><!--[--><!--[--><span class="contributor" title="email: haizekuo@gmail.com">winixt</span><!----><!--]--><!--]--></span></div></footer><!----><!--[--><!--]--></main><!--]--></div><!----><!----><!--]--></div>
|
|
<script type="module" src="/assets/app.bd9c95b7.js" defer></script>
|
|
</body>
|
|
</html>
|