English | 简体中文
Please note that the Node version installed on your local machine needs to be
>=16
.
npm install tdesign-starter-cli -g
# project initialization
td-starter init
# fill project name and description
? 请输入项目名称: [project-name]
? 请输入项目描述: Base on tdesign-starter-cli
...
cd [project-name]
# install dependencies
npm install
# run dev
npm run dev
# project initialization
td-starter init [project name] [root]
cd [project-name]
# install dependencies
npm install
# run dev
npm run dev
td-starter init tdesign-vue3-farm --type vue3 --buildToolType farm
td-starter init tdesign-vue3-farm -type vue3 -bt farm
Option | Description |
---|---|
-d, --description <description> | description of a project (default: "Base on tdesign-starter-cli") |
-type, --type <type> | Code version vue2 | vue3 | react | miniProgram | mobileVue (default: "vue2") |
-temp, --template <template> | Project template type: lite | all (default: "lite") |
-bt, --buildToolType <buildToolType> | The construction tool for lite: vite | webpack (default: "vite") |
-h, --help | display help for command |
The MIT License. Please see the license file for more information.