Scaffolding Tool

Overview

create-micro-app is a tool to quickly create a micro application template with a command-line tool.

  • The supported template presets are react, react-ts, vue, and vue-ts.
  • A range of basic features: layout privileges, internationalization, components, mocking data, and referencing images.
  • Out-of-the-box experience. You can preview the micro application demo simply by running yarn start.
  • Support for local proxy. Run yarn start:proxy to start up a proxy server that you can use to run SaaS locally.
  • Bundling applications with Webpack, allowing for custom configuration.

Quick start

Installation requirements

Install Node.js v14.0.0 or later.

Create micro application templates

npx @tuya-sat/create-micro-app@latest app -t react-ts

Micro application templates

Run the following command to create a react-ts template.

npx @tuya-sat/create-micro-app@latest app -t react-ts

Run the following command to create a react template.

npx @tuya-sat/create-micro-app@latest app

Run the following command to create a vue template.

npx @tuya-sat/create-micro-app@latest app -t vue

Run the following command to create a vue-ts template.

npx @tuya-sat/create-micro-app@latest app -t vue-ts