@aistarfish/hx-taro-cli

taro小程序-模板脚手架

Usage no npm install needed!

<script type="module">
  import aistarfishHxTaroCli from 'https://cdn.skypack.dev/@aistarfish/hx-taro-cli';
</script>

README

taro小程序-代码模板脚手架

介绍

小程序初始化模板,加入了基本组件和登录体系。

安装

npm install -g @aistarfish/hx-taro-cli / yarn global add @aistarfish/hx-taro-cli

使用

1.项目初始化

hx-taro init 项目名称
代码拉取下来后 执行yarn 编译通过即可

2.打包优化

//package.json 文件 
 "custom": {
    "url": "https://xxx",
    "url_command": "开发机地址 配置后 打包过程中会增加开发环境"
  },

//输入打包编译命令 提供环境选择
wangqideMacBook-Pro:starfish-health-applet wangqi$ yarn dev:weapp
yarn run v1.22.5
$ hx-taro dev weapp
? 请选择打包环境 (Use arrow keys)
❯ 开发环境 https://xxx 
  线下环境 https://open.aistarfish.net 
  预发环境 https://ohappcore.pre.aistarfish.com 
  线上环境 https://open.aistarfish.com