★ wanayoo — archive 1999 https://github.com/NervJS/taro-components-sampleNouvelle recherche | Portail wanayoo
Skip to content
taro components sample
JavaScript CSS HTML
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
config
src fix: android 端报错 Mar 25, 2019
.editorconfig
.eslintrc format Jun 13, 2018
.gitignore chore: update .gitignore Mar 26, 2019
README.md Update README.md Aug 9, 2018
package-lock.json chore: update dependences Dec 4, 2018
package.json feat:RN 端首页跑通 Mar 25, 2019
project.config.json 升级依赖 Nov 22, 2018
project.tt.json chore: update dependences Dec 4, 2018
yarn.lock feat:RN 端首页跑通 Mar 25, 2019

README.md

安装 Taro 开发工具 @tarojs/cli

使用 npm或者yarn 全局安装,或者直接使用npx

$ npm install -g @tarojs/cli
$ yarn global add @tarojs/cli

安装依赖包:

$ yarn install

进入项目目录开始开发,可以选择小程序预览模式,或者H5预览模式,若使用微信小程序预览模式,则需要自行下载并打开微信开发者工具,选择预览项目根目录下 dist 目录。

微信小程序编译预览模式

# npm script
$ npm run dev:weapp
# 仅限全局安装
$ taro build --type weapp --watch
# npx用户也可以使用
$ npx taro build --type weapp --watch

H5编译预览模式

# npm script
$ npm run dev:h5
# 仅限全局安装
$ taro build --type h5 --watch
# npx用户也可以使用
$ npx taro build --type h5 --watch

项目打包

打包小程序代码

# npm script
$ npm run build:weapp
# 仅限全局安装
$ taro build --type weapp
# npx用户也可以使用
$ npx taro build --type weapp

打包H5代码

# npm script
$ npm run build:h5
# 仅限全局安装
$ taro build --type h5
# npx用户也可以使用
$ npx taro build --type h5
You can’t perform that action at this time.