Skip to content

Commit

Permalink
chore(release): publish 3.1.0
Browse files Browse the repository at this point in the history
Taro 3.1
  • Loading branch information
Chen-jj authored Feb 24, 2021
2 parents 978ab5b + eb494e1 commit 9b4dbc0
Show file tree
Hide file tree
Showing 381 changed files with 58,774 additions and 12,081 deletions.
9 changes: 8 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,16 @@ packages/taro-transformer-wx/tt.js
packages/taro-transformer-wx/t.js
packages/taro-cli/src/jdreact/template/*.js
packages/taro-cli/templates
/packages/taro-components/loader
packages/taro-cli/src/rn
packages/taro-components/loader
packages/taro-webpack-runner/src/__tests__/__snapshots__
packages/taro-webpack-runner/src/__tests__/fixtures
packages/taro-mini-runner/src/__tests__/__snapshots__
packages/taro-mini-runner/src/__tests__/fixtures
packages/taro-cli/src/__tests__/fixtures
packages/taro/types
packages/taro-components-rn
packages/taro-rn
packages/taro-rn-runner
packages/taro-router-rn
packages/taro-mini-runner/src/quickapp
7 changes: 5 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,24 @@ module.exports = {
'plugin:react/recommended'
],
'rules': {
'no-use-before-define': 0,
'no-unused-vars': 'off',
'camelcase': 0,
'@typescript-eslint/explicit-function-return-type': 0,
"indent": "off",
'@typescript-eslint/indent': ['error', 2],
'@typescript-eslint/explicit-module-boundary-types': 0,
'@typescript-eslint/no-unused-vars': ['error', { 'argsIgnorePattern': '^_', 'args': 'after-used', }],
'@typescript-eslint/no-empty-function': 0,
'@typescript-eslint/no-use-before-define': 0,
'@typescript-eslint/no-use-before-define': ['warn', { 'functions': false, 'classes': false }],
'@typescript-eslint/no-non-null-assertion': 0,
'@typescript-eslint/no-explicit-any': 0,
'@typescript-eslint/no-var-requires': 0,
'@typescript-eslint/interface-name-prefix': 0,
'@typescript-eslint/member-delimiter-style': 0,
'@typescript-eslint/camelcase': 0,
'@typescript-eslint/no-namespace': 0,
'@typescript-eslint/ban-ts-comment': 0,
'standard/no-callback-literal': 0,
'no-console': ['error', { allow: ['warn', 'error'] }],
'prefer-spread': 0,
Expand All @@ -30,7 +33,7 @@ module.exports = {
'react/jsx-uses-vars': 'warn',
'react/prop-types': 0,
'react/no-find-dom-node': 0,
'no-unused-expressions': 0
'no-unused-expressions': 0,
// 'camelcase': ['error', {allow: ['^internal_', '^unstable_']}]
},
'env': {
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest

strategy:
fail-fast: false
fail-fast: false
matrix:
node-version: [12.x, 13.x, 14.x]

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ jobs:
- name: Publish
if: steps.tag_check.outputs.exists_tag == 'false' && startsWith( env.commitmsg , 'chore(release):' )
run: |
yarn lerna publish from-package --yes
yarn lerna publish from-package --yes
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ export default {
</script>
```


### 多端转换支持

Taro 方案的初心就是为了打造一个多端开发的解决方案。
Expand Down
10 changes: 8 additions & 2 deletions lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,13 @@
"packages/taro-service",
"packages/taro-webpack-runner",
"packages/taro-with-weapp",
"packages/taroize"
"packages/taroize",
"packages/taro-weapp",
"packages/taro-alipay",
"packages/taro-swan",
"packages/taro-tt",
"packages/taro-qq",
"packages/taro-jd"
],
"command": {
"publish": {
Expand All @@ -35,6 +41,6 @@
"license": "MIT"
}
},
"version": "3.0.28",
"version": "3.1.0",
"npmClient": "yarn"
}
23 changes: 12 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"release:lerna": "lerna version --exact --no-git-tag-version",
"release:beta": "lerna publish --force-publish=* --exact --skip-temp-tag --preid=beta --npm-tag=beta",
"release": "npm-run-all build release:lerna && npm run changelog && node ./build/docs-version.js",
"test": "lerna run --parallel --scope babel-preset-taro --scope @tarojs/components --scope @tarojs/loader --scope @tarojs/react --scope @tarojs/webpack-runner --scope @tarojs/mini-runner --scope @tarojs/runtime test:ci"
"test": "lerna run --scope @tarojs/cli --scope babel-preset-taro --scope @tarojs/components --scope @tarojs/loader --scope @tarojs/react --scope @tarojs/webpack-runner --scope @tarojs/mini-runner --scope @tarojs/runtime test:ci"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -53,14 +53,15 @@
"@babel/plugin-proposal-do-expressions": "7.10.4",
"@babel/plugin-proposal-object-rest-spread": "7.11.0",
"@babel/plugin-syntax-dynamic-import": "7.8.3",
"@babel/plugin-transform-react-jsx": "7.10.4",
"@babel/plugin-transform-react-jsx": "7.12.17",
"@babel/plugin-transform-runtime": "7.11.0",
"@babel/preset-env": "7.11.0",
"@babel/preset-react": "7.10.4",
"@babel/preset-typescript": "7.10.4",
"@babel/preset-react": "7.12.13",
"@babel/preset-typescript": "7.12.17",
"@commitlint/cli": "^7.2.1",
"@commitlint/config-conventional": "^9.0.1",
"@rollup/plugin-replace": "^2.2.0",
"@rollup/plugin-babel": "5.2.1",
"@types/babel-generator": "^6.25.3",
"@types/babel-traverse": "^6.25.5",
"@types/babel-types": "^7.0.7",
Expand All @@ -74,8 +75,8 @@
"@types/sinon": "^7.5.0",
"@types/tapable": "1.0.5",
"@types/webpack": "^4.39.3",
"@typescript-eslint/eslint-plugin": "^2.23.0",
"@typescript-eslint/parser": "^2.23.0",
"@typescript-eslint/eslint-plugin": "^4.15.1",
"@typescript-eslint/parser": "^4.15.1",
"@vue/compiler-core": "^3.0.0-beta.14",
"@vue/runtime-core": "^3.0.0-beta.14",
"@vue/runtime-dom": "^3.0.0-beta.14",
Expand All @@ -102,7 +103,7 @@
"eslint-loader": "^2.0.0",
"eslint-plugin-flowtype": "^3.2.0",
"eslint-plugin-import": "^2.18.2",
"eslint-plugin-jest": "^22.17.0",
"eslint-plugin-jest": "24.1.5",
"eslint-plugin-node": "^10.0.0",
"eslint-plugin-prettier": "^3.1.1",
"eslint-plugin-promise": "^4.2.1",
Expand Down Expand Up @@ -131,11 +132,11 @@
"ora": "^2.1.0",
"power-assert": "^1.6.1",
"prettier": "^1.18.2",
"react": "^16.10.2",
"react-dom": "^16.10.2",
"react": "^17.0.0",
"react-dom": "^17.0.0",
"react-native": "^0.61.2",
"react-native-mock-render": "^0.1.5",
"react-test-renderer": "^16.10.2",
"react-test-renderer": "^17.0.0",
"redux": "^4.0.4",
"rimraf": "^2.6.2",
"rollup": "^1.23.1",
Expand All @@ -153,7 +154,7 @@
"style-loader": "^0.20.3",
"stylelint": "^13.6.1",
"ts-jest": "26.4.0",
"typescript": "^3.8.3",
"typescript": "^4.1.0",
"vue": "^2.6.11",
"vue-loader": "^15.9.3",
"vue-template-compiler": "^2.6.11",
Expand Down
2 changes: 1 addition & 1 deletion packages/babel-plugin-transform-taroapi/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "babel-plugin-transform-taroapi",
"version": "3.0.28",
"version": "3.1.0",
"main": "dist/index.js",
"scripts": {
"build": "tsc"
Expand Down
6 changes: 0 additions & 6 deletions packages/babel-preset-taro/__tests__/index.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,6 @@ describe('babel-preset-taro', () => {
})

expect(config.sourceType).toBe('unambiguous')

const [override] = config.overrides

const [, [_, reactConfig]] = override.presets
expect(reactConfig.pragma).toBe('React.createElement')
expect(reactConfig.pragmaFrag).toBe('React.Fragment')
})

it('vue', () => {
Expand Down
11 changes: 10 additions & 1 deletion packages/babel-preset-taro/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,22 @@ module.exports = (_, options = {}) => {
const isVue3 = options.framework === 'vue3'
const moduleName = options.framework.charAt(0).toUpperCase() + options.framework.slice(1)

if (isNerv || isReact) {
if (isNerv) {
presets.push([require('@babel/preset-react'), {
pragma: `${moduleName}.createElement`,
pragmaFrag: `${moduleName}.Fragment`
}])
}

if (isReact) {
presets.push([require('@babel/preset-react'), {
runtime: options.reactJsxRuntime || 'automatic'
}])
if (process.env.TARO_ENV === 'h5' && process.env.NODE_ENV !== 'production' && options.hot !== false) {
plugins.push([require('react-refresh/babel')])
}
}

if (options.ts) {
const config = {}
if (isNerv || isReact) {
Expand Down
13 changes: 7 additions & 6 deletions packages/babel-preset-taro/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "babel-preset-taro",
"version": "3.0.28",
"version": "3.1.0",
"description": "> TODO: description",
"author": "yuche <i@yuche.me>",
"homepage": "https://github.com/nervjs/taro/tree/master/packages/babel-preset-taro#readme",
Expand Down Expand Up @@ -30,12 +30,13 @@
"@babel/plugin-syntax-jsx": "^7.10.4",
"@babel/plugin-transform-runtime": "7.11.0",
"@babel/preset-env": "7.11.0",
"@babel/preset-react": "7.10.4",
"@babel/preset-typescript": "7.10.4",
"@babel/preset-react": "7.12.13",
"@babel/preset-typescript": "7.12.17",
"@babel/runtime": "^7.11.2",
"@tarojs/taro-h5": "3.0.28",
"@tarojs/taro-h5": "3.1.0",
"babel-plugin-dynamic-import-node": "^2.3.3",
"babel-plugin-transform-taroapi": "3.0.28",
"core-js": "^3.6.5"
"babel-plugin-transform-taroapi": "3.1.0",
"core-js": "^3.6.5",
"react-refresh": "0.9.0"
}
}
Loading

0 comments on commit 9b4dbc0

Please sign in to comment.