yarn global add tuntuntutu
// or
npm install tuntuntutu -g
tuntu create my-app
-
选择终端类型(注:之后都用
platform
指代)- pc端
platform: pc
- 移动端
platform: mobile
- pc端
-
选择项目类型(注:之后都用
type
指代)- SPA
type: spa
- MPA
type: mpa
- LITE
type: lite
- SPY
type: spy
- SPA
-
创建完毕之后cd到项目路径下
cd my-app
yarn start
// or
npm run start
yarn build
// or
npm run build