Skip to content
🚀
create-tuvix-app
create-tuvix-app
CLI scaffolding tool. Instantly bootstrap a Tuvix.js project with your choice of framework and tooling.

使用方法

bash
npx create-tuvix-app my-app

Or with a specific package manager:

bash
pnpm create tuvix-app my-app
yarn create tuvix-app my-app

模板

模板描述
shell微前端的 Shell 编排器
react-appReact 微应用
vue-appVue 微应用
vanilla-appVanilla JS/TS 微应用

直接指定模板

bash
npx create-tuvix-app my-shell --template shell
npx create-tuvix-app my-react --template react-app
npx create-tuvix-app my-vue --template vue-app
npx create-tuvix-app my-vanilla --template vanilla-app

示例

预构建的示例应用程序可以使用 --example 标志来构建:

示例描述
with-reactReact 微前端示例
with-vueVue 微前端示例
with-svelteSvelte 微前端示例
with-angularAngular 微前端示例
with-ssr-reactReact 服务器端渲染
with-react-devtoolsReact 与 DevTools 集成
with-react-event-busEvent-Bus 集成示例
with-react-routerRouter 集成示例
with-react-sandboxSandbox/CSS 隔离示例
with-module-federation-reactReact 的 Module Federation
with-vanillaVanilla JS 微前端示例
with-ssr-vanillaVanilla JS 服务器端渲染
with-multiple-frameworks多框架集成

构建示例

bash
npx create-tuvix-app my-app --example with-react
npx create-tuvix-app my-app --example with-vue
npx create-tuvix-app my-app --example with-multiple-frameworks