开发指南
https://nervjs.github.io/taro/docs/GETTING-STARTED.html#支付宝小程序
{
"name": "myApp",
"version": "1.0.0",
"private": true,
"description": "test",
"templateInfo": {
"name": "default",
"typescript": true,
"css": "sass"
},
"scripts": {
"build:weapp": "taro build --type weapp",
"build:swan": "taro build --type swan",
"build:alipay": "taro build --type alipay",
"build:tt": "taro build --type tt",
"build:h5": "taro build --type h5",
"build:rn": "taro build --type rn",
"build:qq": "taro build --type qq",
"build:quickapp": "taro build --type quickapp",
"dev:weapp": "npm run build:weapp -- --watch",
"dev:swan": "npm run build:swan -- --watch",
"dev:alipay": "npm run build:alipay -- --watch",
"dev:tt": "npm run build:tt -- --watch",
"dev:h5": "npm run build:h5 -- --watch",
"dev:rn": "npm run build:rn -- --watch",
"dev:qq": "npm run build:qq -- --watch",
"dev:quickapp": "npm run build:quickapp -- --watch"
},
"author": "",
"license": "MIT",
"dependencies": {
"@tarojs/components": "1.3.34",
"@tarojs/components-qa": "1.3.34",
"@tarojs/router": "1.3.34",
"@tarojs/taro": "1.3.34",
"@tarojs/taro-alipay": "1.3.34",
"@tarojs/taro-h5": "1.3.34",
"@tarojs/taro-qq": "1.3.34",
"@tarojs/taro-quickapp": "1.3.34",
"@tarojs/taro-swan": "1.3.34",
"@tarojs/taro-tt": "1.3.34",
"@tarojs/taro-weapp": "1.3.34",
"@tarojs/taro-rn": "1.3.34",
"nervjs": "^1.5.5",
"nerv-devtools": "^1.5.5"
},
"devDependencies": {
"@types/react": "^16.4.6",
"@types/webpack-env": "^1.13.6",
"@tarojs/plugin-babel": "1.3.34",
"@tarojs/plugin-csso": "1.3.34",
"@tarojs/plugin-sass": "1.3.34",
"@tarojs/plugin-uglifyjs": "1.3.34",
"@tarojs/webpack-runner": "1.3.34",
"babel-plugin-transform-class-properties": "^6.24.1",
"babel-plugin-transform-decorators-legacy": "^1.3.4",
"babel-plugin-transform-jsx-stylesheet": "^0.6.5",
"babel-plugin-transform-object-rest-spread": "^6.26.0",
"babel-preset-env": "^1.6.1",
"babel-eslint": "^8.2.3",
"eslint": "^5.16.0",
"eslint-config-taro": "1.3.34",
"eslint-plugin-react": "^7.8.2",
"eslint-plugin-react-hooks": "^1.6.1",
"eslint-plugin-import": "^2.12.0",
"stylelint": "9.3.0",
"stylelint-config-taro-rn": "1.3.34",
"stylelint-taro-rn": "1.3.34",
"eslint-plugin-taro": "1.3.34",
"@typescript-eslint/eslint-plugin": "^2.13.0",
"@typescript-eslint/parser": "^2.13.0",
"typescript": "^3.0.1"
}
}
# build dist
$ npm run build:alipay
# build
$ taro build --type alipay
$ taro build --type weapp
$ taro build --type h5
# dev
$ taro build --type alipay --watch
$ taro build --type weapp --watch
$ taro build --type h5 --watch
{
"dev:weapp": "npm run build:weapp -- --watch",
"dev:alipay": "npm run build:alipay -- --watch",
"dev:h5": "npm run build:h5 -- --watch",
}
# build
$ sudo taro build --type alipay
$ sudo taro build --type weapp
$ sudo taro build --type h5
dist
手机扫一扫
移动阅读更方便
你可能感兴趣的文章