yarn project management

All rely node_modules installation project

yarn
或 yarn install

Load node_modules

Build the project dist

Premise build directory is related packages installed, such as this project with a taro, taro good must first install (and to be consistent with the version number)

# 使用 npm 安装 CLI
$ npm install -g @tarojs/[email protected]
# OR 使用 yarn 安装 CLI
$ yarn global add @tarojs/[email protected]
# OR 安装了 cnpm,使用 cnpm 安装 CLI
$ cnpm install -g @tarojs/[email protected]
yarn dev:weapp // --watch 监控文件修改
或 yarn build:weapp // 一次性


If you use the dev, each time you change the content, automatically updates dist folder, the development of small program is easy.

Guess you like

Origin www.cnblogs.com/jiqing9006/p/12165807.html