Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat hummer mode #1734

Open
wants to merge 4,093 commits into
base: feat_hummer_mode
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
4093 commits
Select commit Hold shift + click to select a range
928c6e7
fix: lint error
Blackgan3 Nov 15, 2024
5a9ce3f
fix react hooks result conflict check
hiyuki Nov 15, 2024
41417ca
fix code error
hiyuki Nov 15, 2024
55bdc60
save
Nov 15, 2024
a50c22f
feat: 支付宝删除全局组件处理,走支付宝框架支持
Blackgan3 Nov 15, 2024
683499e
feat: 修改globalComponents传递使用rulesMeta
Blackgan3 Nov 15, 2024
034b8c1
fix: unit test error
Blackgan3 Nov 15, 2024
e8b0328
refactor: update
wangshunnn Nov 15, 2024
7cf4e71
fix: error
Nov 15, 2024
745a6cb
fix: tsc error
Nov 15, 2024
9f78efc
Merge branch 'master' into fix-style-rules-20241104
wenwenhua Nov 16, 2024
3d04f5e
fix background-image css var
wenwenhua Nov 16, 2024
6432b44
fix background-image css var
wenwenhua Nov 16, 2024
d432d5d
feat: del ts error
wenwenhua Nov 18, 2024
fe7a24d
fix: wx2ali beBehavior 使用 Mixin 实现
QiuShuiBai Nov 18, 2024
43025e5
feat: wx2ali options.relations设置为true
QiuShuiBai Nov 18, 2024
1ba720a
fix: ali Mixin eslint err
QiuShuiBai Nov 18, 2024
bb2afb0
style: ali Mixin 相关逻辑收敛至 filterOptions
QiuShuiBai Nov 18, 2024
d132150
Merge pull request #1705 from QiuShuiBai/feat-ali-mixin
hiyuki Nov 18, 2024
4dca0a4
feat: 修复命名问题
Blackgan3 Nov 18, 2024
0dd4b01
animation fix transform string
wenwenhua Nov 18, 2024
5c8b769
fix: fallback default indicator height
wangshunnn Nov 18, 2024
4df87eb
Merge branch 'master' into 2.9_hummer
AdamCaoQAQ Nov 18, 2024
6b4b2ba
fix: ts error
Nov 18, 2024
0fa5042
chore: 优化
Nov 18, 2024
49954dc
feat: review
wangshunnn Nov 18, 2024
9d2203d
拆解system文件
Nov 19, 2024
0d35499
Merge branch 'master' into refactor-rn-components-spread
Nov 19, 2024
f7521aa
Merge branch 'master' into refactor-rn-movable-view
Nov 19, 2024
70f87d4
Merge branch 'refactor-rn-movable-view' into refactor-rn-components-s…
Nov 19, 2024
cdbf82d
chore: 修改style透传
Nov 19, 2024
ca6e556
replace with stack route
hiyuki Nov 19, 2024
06b3a43
Merge branch 'master' of https://github.com/didi/mpx
hiyuki Nov 19, 2024
b161781
feat: review
wangshunnn Nov 19, 2024
eb451fe
Merge branch 'master' into refactor-rn-components-spread
Nov 19, 2024
18bb670
Merge branch 'refactor-rn-components-spread' into refactor-rn-compone…
Nov 19, 2024
523c86b
fix style更新时 动画的处理
wenwenhua Nov 19, 2024
0b4d1e7
del style 更新
wenwenhua Nov 19, 2024
169685c
修正拆分逻辑
Nov 19, 2024
d9188e0
补充文件
Nov 19, 2024
6e45841
处理环境逻辑
Nov 19, 2024
93de153
修正eslint
Nov 19, 2024
1d98300
Merge branch 'master' into fix-style-rules-20241104
wenwenhua Nov 19, 2024
c811ec2
删除多余传递
Nov 19, 2024
ec3d6d9
chore: update
wangshunnn Nov 19, 2024
a151cf7
Merge branch 'master' into feat-fetch-coder-1112
hiyuki Nov 20, 2024
1a777cf
feat: review
wangshunnn Nov 20, 2024
3b63bc6
Merge pull request #1706 from didi/feat-fetch-coder-1112
hiyuki Nov 20, 2024
502fc32
Merge branch 'master' into feat-add-provide-inject
hiyuki Nov 20, 2024
0b3f603
fix: web appHook provide meybe function or object
wangshunnn Nov 20, 2024
fb5d5f3
support rnConfig.parseAppProps
hiyuki Nov 20, 2024
9d5c6f3
Merge branch 'master' into fix-style-rules-20241104
wenwenhua Nov 20, 2024
8acba5c
feat: review update
wangshunnn Nov 20, 2024
f3081e6
Merge branch 'master' into feat-add-provide-inject
hiyuki Nov 20, 2024
1c4089d
Merge pull request #1692 from wangshunnn/feat-add-provide-inject
hiyuki Nov 20, 2024
216b779
Merge branch 'master' into fix-ali-root-view-moduleid
hiyuki Nov 20, 2024
4a8ccb1
Merge branch 'master' into refactor-rn-components-spread
Nov 20, 2024
20a6e80
Merge branch 'master' into refactor-rn-movable-view
Nov 20, 2024
56aeefc
Merge branch 'refactor-rn-components-spread' into refactor-rn-compone…
Nov 20, 2024
5325ed3
Merge branch 'refactor-rn-movable-view' into refactor-rn-components-s…
Nov 20, 2024
745b3fa
Merge branch 'master' into fix-style-rules-20241104
wenwenhua Nov 20, 2024
ddd45f7
cr background-image
wenwenhua Nov 20, 2024
9bead03
Merge pull request #1704 from didi/fix-style-rules-20241104
hiyuki Nov 20, 2024
2f4da37
little adjust
hiyuki Nov 20, 2024
c2d4bb6
Merge branch 'master' into refactor-rn-movable-view
hiyuki Nov 20, 2024
6bb4634
feat: 修改jsonContent的透传逻辑
Blackgan3 Nov 20, 2024
504ab42
fix: revert 错误改动
Blackgan3 Nov 20, 2024
15cdb57
Merge branch 'master' into fix-ali-root-view-moduleid
hiyuki Nov 20, 2024
6bad0b0
Merge pull request #1639 from didi/refactor-rn-movable-view
hiyuki Nov 20, 2024
3a73e53
Merge branch 'master' into fix-ali-root-view-moduleid
hiyuki Nov 20, 2024
bdbe6e5
feat: 删除无用注释
Blackgan3 Nov 20, 2024
45cbd6b
Merge pull request #1205 from didi/fix-ali-root-view-moduleid
hiyuki Nov 20, 2024
b23d385
v2.9.67
hiyuki Nov 20, 2024
defdae8
feat: review
wangshunnn Nov 20, 2024
776c2f5
update peer deps info
hiyuki Nov 20, 2024
2ed7e7c
chore: 修改webview通信
Nov 20, 2024
3e40c79
Merge branch 'master' into feat-rn-canvas
Nov 20, 2024
ee431b2
fix: 删除mpxjs/utils package.json内的type=module
Blackgan3 Nov 20, 2024
116b626
fix: 删除无用代码
Blackgan3 Nov 20, 2024
47e75c2
Merge pull request #1709 from didi/fix-utils-type-module
Blackgan3 Nov 20, 2024
edd03d7
feat: mpxjs/utils 单独发版
Blackgan3 Nov 20, 2024
4eac5cc
Merge pull request #1710 from didi/fix-utils-type-module
Blackgan3 Nov 20, 2024
0756539
Merge branch 'master' into feat-rn-canvas
Nov 21, 2024
9736d62
Merge branch 'master' into refactor-rn-components-spread-merge
Nov 21, 2024
55311b2
chore: 删除picker time重复useNodesRef使用
Nov 21, 2024
9ffe156
chore: 拉齐react-native-reanimated版本
Nov 21, 2024
2f2b36b
flatten slot for transparent consume
hiyuki Nov 21, 2024
713da95
Merge branch 'master' of https://github.com/didi/mpx
hiyuki Nov 21, 2024
f542bd8
docs: add provide-inject
wangshunnn Nov 21, 2024
0c74e4d
chore: merge master
wangshunnn Nov 21, 2024
8d22ac8
Merge pull request #1702 from wangshunnn/fix-soonwang-rn-picker-view
hiyuki Nov 21, 2024
3ffe0a2
docs: add TS support
wangshunnn Nov 21, 2024
28d5ce1
docs: update
wangshunnn Nov 21, 2024
7150562
fix react component refs
hiyuki Nov 21, 2024
353e93b
Merge branch 'master' of https://github.com/didi/mpx
hiyuki Nov 21, 2024
8ee4758
Merge branch 'master' into docs-provide-inject
hiyuki Nov 21, 2024
33b667c
Merge branch 'master' into feat-rn-canvas
hiyuki Nov 21, 2024
193da9f
Merge pull request #1712 from wangshunnn/docs-provide-inject
hiyuki Nov 21, 2024
a18d10d
feat: 适配Android自定义导航
zhuzhh Nov 21, 2024
7bd3b0d
Merge branch 'master' into feat-rn-canvas
hiyuki Nov 21, 2024
5ae0db6
fix: 基础组件bug
Nov 21, 2024
6e549b0
Merge pull request #1708 from didi/feat-rn-canvas
hiyuki Nov 21, 2024
a867872
Merge branch 'master' into feat-rn-statusbar
hiyuki Nov 21, 2024
beef991
Merge branch 'master' into refactor-rn-components-spread
Nov 21, 2024
8c9fe93
feat: support onShareAppMessage
WX-DongXing Nov 21, 2024
d41a8aa
feat: fix setBackgroundColor waring
zhuzhh Nov 22, 2024
3ffa6fd
Merge remote-tracking branch 'origin/feat-rn-statusbar' into feat-rn-…
zhuzhh Nov 22, 2024
2a72f25
feat: fix code
zhuzhh Nov 22, 2024
4f7a0d1
Merge pull request #1713 from didi/feat-rn-statusbar
hiyuki Nov 22, 2024
c307775
feat(*): add fast image.
Nov 22, 2024
b737e22
fix(*): merge code.
Nov 22, 2024
6f5c3c0
fix: dataset key
Nov 22, 2024
4ba38cd
fix slot transparent consume
hiyuki Nov 22, 2024
36d7bb2
eslint
hiyuki Nov 22, 2024
d091a73
Merge branch 'master' of https://github.com/didi/mpx
hiyuki Nov 22, 2024
4721240
chore: add types
Nov 22, 2024
4281183
Merge branch 'master' into fix-rn-dataset
hiyuki Nov 22, 2024
3dc25e7
Merge pull request #1715 from didi/fix-rn-dataset
hiyuki Nov 22, 2024
4e0485f
fix(*): fix code.
Nov 22, 2024
35ddf2e
treat web ios android harmony as implicit mode
hiyuki Nov 22, 2024
0a44ac5
Merge branch 'master' of https://github.com/didi/mpx
hiyuki Nov 22, 2024
ddac228
feat: remove log
WX-DongXing Nov 22, 2024
20c2c65
support rnConfig.onAppBack
hiyuki Nov 25, 2024
54681ac
rn: add error process for getSlot
hiyuki Nov 25, 2024
2539c6a
fix: picker-view padding & column data flat
wangshunnn Nov 25, 2024
ee53a4f
补充getLaunchOptionsSync
Nov 25, 2024
1ff22ba
fix: picker-view
wangshunnn Nov 25, 2024
86d6c7b
chore: update
wangshunnn Nov 25, 2024
b329070
fix: update
wangshunnn Nov 25, 2024
229c801
fix: update
wangshunnn Nov 25, 2024
7405cd8
fix: unocss support with dot path
lp0124 Nov 26, 2024
25c7788
feat: customOutputPath 返回 resourcePath 参数
lp0124 Nov 26, 2024
581894b
fix route screen options for 6.x
hiyuki Nov 26, 2024
d9836f3
treat css as static style for performance reason
hiyuki Nov 26, 2024
83ed0ee
Merge branch 'master' into fix-unocss-dot
hiyuki Nov 26, 2024
52f4188
fix parseInlineStyle value format
hiyuki Nov 26, 2024
6772474
Merge pull request #1720 from lp0124/fix-unocss-dot
hiyuki Nov 26, 2024
8f5b98d
Merge branch 'master' into feat-custom-output-path-return-resource-path
hiyuki Nov 26, 2024
a4812e2
support app.onshow params
hiyuki Nov 26, 2024
a513a6a
Merge branch 'master' of https://github.com/didi/mpx
hiyuki Nov 26, 2024
09f70a0
Merge pull request #1721 from lp0124/feat-custom-output-path-return-r…
hiyuki Nov 26, 2024
ea6288f
add getEnterOptionsSync
Nov 26, 2024
85c1bd6
Merge branch 'master' of https://github.com/didi/mpx
hiyuki Nov 26, 2024
6759024
fix getClassMap
hiyuki Nov 26, 2024
522edde
删除掉重复项
Nov 26, 2024
19d636f
fix: picker overlay style
wangshunnn Nov 26, 2024
edf1804
fix: canvas缩放
Nov 26, 2024
39f41a3
fix(*): return null.
Nov 26, 2024
a9d54e4
Merge branch 'master' of https://github.com/didi/mpx into feat-fast-i…
Nov 26, 2024
cf9fb22
fix: picker overlay
wangshunnn Nov 26, 2024
c44c5aa
mv RouteContext to runtime/context
hiyuki Nov 26, 2024
6b405e8
Merge branch 'master' into feat-rn-button-share
WX-DongXing Nov 26, 2024
a954854
Merge branch 'master' into fix-picker-view-column-data
wangshunnn Nov 26, 2024
2ace241
chore: update
wangshunnn Nov 26, 2024
9513052
chore: lint fix
wangshunnn Nov 26, 2024
daa7891
chore: update type
wangshunnn Nov 26, 2024
a1adb25
Merge pull request #1718 from wangshunnn/fix-picker-view-column-data
hiyuki Nov 26, 2024
6c79fb5
feat: improve onShareAppMessage
WX-DongXing Nov 26, 2024
cd99717
chore: 优化postMessage调用次数
Nov 26, 2024
78f8cda
chore: del comment
Nov 26, 2024
233d302
feat: handle boundary
WX-DongXing Nov 26, 2024
b0ed9f7
Merge branch 'master' into fix-canvas-rn
Nov 26, 2024
db3c212
补充__webViewUrl逻辑
Nov 26, 2024
80be98d
Merge branch 'feat-rn-button-share' of https://github.com/didi/mpx in…
Nov 26, 2024
9dd00a2
fix: default height
wangshunnn Nov 26, 2024
0ee2315
chore: 修改postMessage时间间隔;
Nov 26, 2024
d190c21
补充web端的LaunchOptions
Nov 26, 2024
0ab955c
修正lint
Nov 26, 2024
efaacaa
chore: add clear timeout
Nov 26, 2024
de1389c
fix(*): back image.
Nov 26, 2024
f727835
Merge pull request #1725 from didi/fix-canvas-rn
hiyuki Nov 26, 2024
854df78
fix: format lint
WX-DongXing Nov 26, 2024
8f673d5
Merge branch 'master' into feat-addLaunchOptions
hiyuki Nov 26, 2024
d0905f7
fix: use Object.assign instead of spead operator
wangshunnn Nov 26, 2024
a8d3f04
Merge pull request #1717 from didi/feat-addLaunchOptions
hiyuki Nov 26, 2024
7a3aa4c
Merge branch 'master' into fix-picker-view-column-default-height
hiyuki Nov 26, 2024
c1116e7
Merge pull request #1724 from wangshunnn/fix-picker-view-column-defau…
hiyuki Nov 26, 2024
5e8115f
Merge branch 'master' into feat-fast-image-rn
hiyuki Nov 26, 2024
832e2fc
fix(*): del isrender.
Nov 26, 2024
1f050d2
Merge branch 'feat-fast-image-rn' of https://github.com/didi/mpx into…
Nov 26, 2024
60681c7
fix: reference assignment
wangshunnn Nov 26, 2024
a80216c
fix: fix error
WX-DongXing Nov 26, 2024
830a974
Merge pull request #1727 from wangshunnn/fix-picker-view-change
hiyuki Nov 26, 2024
26fe687
处理刷新问题
Nov 26, 2024
2a2689c
Merge branch 'feat-rn-button-share' of https://github.com/didi/mpx in…
Nov 26, 2024
5cf89cb
Merge branch 'master' of https://github.com/didi/mpx into feat-fast-i…
Nov 26, 2024
4690fb6
Merge branch 'master' into feat-rn-button-share
hiyuki Nov 26, 2024
6fa9bc7
Merge pull request #1714 from didi/feat-fast-image-rn
hiyuki Nov 26, 2024
7cbf46e
Merge branch 'master' into feat-rn-button-share
hiyuki Nov 26, 2024
1b9a008
Merge pull request #1716 from didi/feat-rn-button-share
hiyuki Nov 26, 2024
e23c51a
v2.9.69
hiyuki Nov 26, 2024
a694f14
feat: support keyboard avoid
WX-DongXing Nov 26, 2024
737ae4a
Merge branch 'master' into refactor-rn-components-spread
Nov 28, 2024
25e8a38
Merge branch 'master' into feat-rn-keyboard-avoiding
WX-DongXing Nov 28, 2024
2fce577
fix: correction method reference
WX-DongXing Nov 28, 2024
3e1b3c1
fix: dismiss keyboard
WX-DongXing Nov 28, 2024
996086b
feat: 2.9调试初步完成
AdamCaoQAQ Nov 29, 2024
0302421
fix: time picker
Dec 3, 2024
31d2938
feat: default to enabled keyboard avoiding
WX-DongXing Dec 3, 2024
156eae3
fix: picker
Dec 4, 2024
aa13704
chore: 修改extend的使用
Dec 4, 2024
ee113f6
feat: watch adjustPosition
WX-DongXing Dec 4, 2024
b07f0dd
feat: processEventReact对于非复杂事件不进行_invoke调用
Blackgan3 Dec 4, 2024
aa73eea
fix: lint error
Blackgan3 Dec 4, 2024
ef0197f
feat: 修改事件绑定
Blackgan3 Dec 4, 2024
705fb7b
feat: adjust keyboard avoid context value
WX-DongXing Dec 4, 2024
20042c2
fix: only use KeyboardAvoidView on ios
WX-DongXing Dec 4, 2024
d08562d
fix lint
hiyuki Dec 4, 2024
3862d7d
update comment
hiyuki Dec 4, 2024
652213e
Merge branch 'refs/heads/master' into feat-change-react-bind-event
Blackgan3 Dec 5, 2024
5fd2be6
fix fontWeight number
hiyuki Dec 5, 2024
7ab2770
optimize useMemo
hiyuki Dec 5, 2024
3faba7d
feat: 调整部分代码逻辑
Blackgan3 Dec 5, 2024
9fbbc82
Merge branch 'master' into feat-change-react-bind-event
hiyuki Dec 5, 2024
1bf26ac
Merge pull request #1740 from didi/feat-change-react-bind-event
hiyuki Dec 5, 2024
9398886
Merge branch 'master' into feat-rn-keyboard-avoiding
hiyuki Dec 5, 2024
ec11236
Merge pull request #1730 from didi/feat-rn-keyboard-avoiding
hiyuki Dec 5, 2024
74abba4
support input keyboard avoiding
hiyuki Dec 5, 2024
db00ad1
Merge branch 'master' into refactor-rn-components-spread-cr
Dec 5, 2024
8027aae
Merge branch 'master' into refactor-rn-components-spread
Dec 5, 2024
707667b
platform docs
hiyuki Dec 6, 2024
0ed6586
update docs
hiyuki Dec 6, 2024
c37b709
Merge branch 'refactor-rn-components-spread' into refactor-rn-compone…
Dec 6, 2024
11387ca
fix: 输出支付宝swiper easing-function 去除warning提示
Blackgan3 Dec 6, 2024
659d7d0
fix: change the scope of Provider
WX-DongXing Dec 6, 2024
ed5a794
Merge pull request #1748 from didi/fix-rn-provider
hiyuki Dec 9, 2024
b1f8538
Merge pull request #1739 from didi/refactor-rn-components-spread-cr
hiyuki Dec 9, 2024
d1276bb
chore: 修改extendObject
Dec 9, 2024
c3ef69f
Merge branch 'master' into refactor-rn-components-spread
hiyuki Dec 9, 2024
4c30330
Merge pull request #1696 from didi/refactor-rn-components-spread
hiyuki Dec 9, 2024
58a835c
add text props
hiyuki Dec 9, 2024
b55f687
Merge branch 'master' of https://github.com/didi/mpx
hiyuki Dec 9, 2024
d057992
support text allowFontScaling default false && support dataset text i…
hiyuki Dec 9, 2024
1e2262a
add simple text
hiyuki Dec 10, 2024
b2a9df5
refactor platform/patch
hiyuki Dec 10, 2024
aa14c81
refactor patch add file
hiyuki Dec 10, 2024
96313ce
fix: 修复core/patch下文件路径引用问题
Blackgan3 Dec 10, 2024
7f44aa0
upgrade: 升级依赖babel/core版本
Blackgan3 Dec 10, 2024
0e3a2b9
RN: support setCurrentPageStatus
hiyuki Dec 10, 2024
cff64ba
Merge branch 'master' of https://github.com/didi/mpx
hiyuki Dec 10, 2024
4bdb299
Merge branch 'master' into fix-some-compile-rules
hiyuki Dec 10, 2024
e59740f
rm object spread
hiyuki Dec 10, 2024
28fdc03
Merge branch 'master' into fix-some-compile-rules
hiyuki Dec 10, 2024
87cc7ab
Merge pull request #1746 from didi/fix-some-compile-rules
hiyuki Dec 10, 2024
f44422d
fix app hide
hiyuki Dec 10, 2024
06df0a2
Merge branch 'master' of https://github.com/didi/mpx
hiyuki Dec 10, 2024
491e9bd
Merge branch 'master' into 2.9_hummer
AdamCaoQAQ Dec 11, 2024
d8ca85e
feat: hummer ptovide/inject
AdamCaoQAQ Dec 11, 2024
4846eb2
bugfix: hummer mode 编译报错
AdamCaoQAQ Dec 11, 2024
88736b9
Merge branch 'master' into 2.9_hummer
AdamCaoQAQ Dec 11, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
33 changes: 30 additions & 3 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,10 @@ module.exports = {
Component: 'readonly',
Page: 'readonly',
App: 'readonly',
Mixin: 'readonly',
__mpx_mode__: 'readonly',
__mpx_env__: 'readonly',
__mpx_dynamic_runtime__: 'readonly',
getRegExp: 'readonly',
getCurrentPages: 'readonly',
// tenon env
Expand All @@ -34,9 +36,34 @@ module.exports = {
},
rules: {
'no-cond-assign': 0,
camelcase: 0
camelcase: 0,
indent: 0,
'symbol-description': 0
},
env: {
'jest/globals': true
}
'jest/globals': true,
browser: true
},
overrides: [
{
files: ['**/*.tsx', '**/*.ts'],
parser: '@typescript-eslint/parser',
extends: [
'standard',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
],
plugins: ['@typescript-eslint'],
rules: {
'@typescript-eslint/no-explicit-any': 0,
'no-use-before-define': 0,
'@typescript-eslint/triple-slash-reference': 0,
'@typescript-eslint/ban-types': 0,
'@typescript-eslint/no-empty-interface': 0,
'@typescript-eslint/no-unused-vars': 0,
'@typescript-eslint/no-non-null-assertion': 0,
camelcase: 0,
}
}
]
}
4 changes: 0 additions & 4 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@ jobs:
PATTERNS: |
+(docs|docs-vuepress)/**/*
+(docs|docs-vuepress)/.*/**/*
- uses: actions/setup-node@v1
with:
node-version: '16'

# vuepress生成最终文档
- name: generate docs file
if: env.GIT_DIFF
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '16'
- run: |
npm i
echo "//registry.npmjs.org/:_authToken=\${NODE_AUTH_TOKEN}" >> $HOME/.npmrc 2> /dev/null
npm run tsc:build
npm run lerna:publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
11 changes: 8 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
name: test

on: [push]
on: [push, pull_request]

jobs:
tsc:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: npm i && npm run tsc:build

lint:
runs-on: ubuntu-latest
steps:
Expand All @@ -13,7 +19,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Cache node modules
id: cache
uses: actions/cache@v2
Expand All @@ -36,7 +41,7 @@ jobs:

- name: install deps
if: steps.cache.outputs.cache-hit != 'true'
run: npm i && npm i --prefix test/e2e/miniprogram-project && npm i --prefix test/e2e/plugin-project && npx lerna bootstrap --no-ci
run: npm i && npm i --prefix test/e2e/miniprogram-project && npm i --prefix test/e2e/plugin-project

- name: copy-webpack-plugin
run: npm run copyPlugin --prefix test/e2e/miniprogram-project && npm run copyPlugin --prefix test/e2e/plugin-project
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ yarn.lock
.DS_Store
docs-vuepress/.vuepress/dist
elevate/
packages/webpack-plugin/lib/runtime/components/react/dist/
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
install-strategy=shallow
30 changes: 17 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,17 @@
欢迎访问[https://mpxjs.cn](https://mpxjs.cn),跟随我们提供的文档指南使用Mpx进行跨端小程序开发。

## 近期更新
基于 Mpx 的移动端基础组件库 [mpx-cube-ui](https://www.mpxjs.cn/mpx-cube-ui/guide/intro.html) 已经开源,更多详情查看[这里](https://mpxjs.cn/articles/mpx-cube-ui.html)。

Mpx 2.8 版本正式发布,完整支持组合式 API,更多详情查看[这里](https://mpxjs.cn/articles/2.8-release.html),迁移指南查看[这里](https://mpxjs.cn/guide/migrate/2.8.html),相关指南及 API 参考文档已更新。

`@mpxjs/cli` 3.2 版本正式发布,基于 `@vue/cli` 插件化架构实现的全新脚手架,更多详情查看[这里](https://github.com/mpx-ecology/mpx-cli)。
Mpx 2.9 版本正式发布,支持原子类、SSR和构建产物体积优化,更多详情查看[这里](https://mpxjs.cn/articles/2.9-release.html),迁移指南查看[这里](https://mpxjs.cn/guide/migrate/2.9.html),相关指南及 API 参考文档已更新。

## 简介

Mpx是一款致力于提升小程序开发体验和用户体验的增强型小程序跨端框架,通过Mpx,我们能够以类Vue的开发体验高效优雅地构筑出高性能跨端小程序应用,在所有开放的小程序平台及web平台中运行。

Mpx具有以下功能特性:
* [数据响应](https://www.mpxjs.cn/guide/basic/reactive.html) (赋值响应 / [watch](https://www.mpxjs.cn/api/global-api.html#watch) / computed)
* [组合式 API](#todo link)
* [组合式 API](https://mpxjs.cn/guide/composition-api/composition-api.html)
* 增强模板语法 ([动态组件](https://www.mpxjs.cn/guide/basic/component.html#%E5%8A%A8%E6%80%81%E7%BB%84%E4%BB%B6) / [样式绑定 / 类名绑定 ](https://www.mpxjs.cn/guide/basic/class-style-binding.html#%E7%B1%BB%E5%90%8D%E7%BB%91%E5%AE%9A) / [内联事件函数](https://www.mpxjs.cn/guide/basic/event.html) / [双向绑定](https://www.mpxjs.cn/guide/basic/two-way-binding.html) / [refs](https://www.mpxjs.cn/guide/basic/refs.html))
* 极致性能 ([运行时性能优化](https://www.mpxjs.cn/guide/understand/runtime.html) / [包体积优化](https://www.mpxjs.cn/guide/understand/compile.html#%E5%88%86%E5%8C%85%E5%A4%84%E7%90%86) / 框架运行时体积14KB)
* [高效强大的编译构建](https://www.mpxjs.cn/guide/understand/compile.html#%E5%88%86%E5%8C%85%E5%A4%84%E7%90%86) (基于webpack5 / 支持持久化缓存 / 兼容webpack生态 / 兼容原生小程序 / 完善支持npm场景下的分包输出 / 高效调试)
Expand All @@ -30,15 +29,18 @@ Mpx具有以下功能特性:
* [状态管理](https://www.mpxjs.cn/guide/advance/store.html) (Vuex规范 / 支持多实例Store)
* 跨团队开发 ([packages](https://www.mpxjs.cn/guide/advance/subpackage.html))
* 逻辑复用 ([mixins](https://www.mpxjs.cn/guide/advance/mixin.html))
* [周边能力支持](https://www.mpxjs.cn/guide/extend/) (fetch / api增强 / mock / webview-bridge)
* [周边能力](https://www.mpxjs.cn/guide/extend/) (fetch / api增强 / mock / webview-bridge)
* 脚手架支持
* 多平台增强 (支持在微信、支付宝、百度、qq、头条小程序平台中进行增强开发)
* [跨平台编译](https://www.mpxjs.cn/guide/advance/platform.html) (一套代码跨端输出到微信、支付宝、百度、字节、QQ、京东、快应用(web) 和 [web平台](https://www.mpxjs.cn/guide/advance/platform.html#%E8%B7%A8%E5%B9%B3%E5%8F%B0%E8%BE%93%E5%87%BAweb) 中运行)
* [TypeScript支持](https://www.mpxjs.cn/guide/tool/ts.html) (基于ThisType实现了完善的类型推导)
* [I18n国际化](https://www.mpxjs.cn/guide/tool/i18n.html)
* [单元测试支持](https://www.mpxjs.cn/guide/tool/unit-test.html)
* [E2E测试支持](https://www.mpxjs.cn/guide/tool/e2e-test.html)
* [组件维度运行时渲染方案](https://github.com/didi/mpx/pull/919) (即将到来)
* [单元测试](https://www.mpxjs.cn/guide/tool/unit-test.html)
* [E2E测试](https://www.mpxjs.cn/guide/tool/e2e-test.html)
* [原子类](https://mpxjs.cn/guide/advance/utility-first-css.html)
* [SSR](https://mpxjs.cn/guide/advance/ssr.html)
* 运行时渲染方案
* 跨端输出RN(即将到来)

## 快速开始

Expand Down Expand Up @@ -140,7 +142,7 @@ npm run build
}
},
handleTap (index) {
// 处理函数直接通过参数获取当前点击的index,清晰简洁
// 处理函数直接通过参数获取当前点击的index,清晰简洁.
this.list[index].active = !this.list[index].active
},
onReady () {
Expand Down Expand Up @@ -191,17 +193,19 @@ Mpx的核心设计思路为增强,不同于业内大部分小程序框架将we
|@mpxjs/store|[![npm version](https://badge.fury.io/js/%40mpxjs%2Fstore.svg)](https://badge.fury.io/js/%40mpxjs%2Fstore)|类vuex store|
|@mpxjs/pinia|[![npm version](https://badge.fury.io/js/%40mpxjs%2Fpinia.svg)](https://badge.fury.io/js/%40mpxjs%2Fpinia)|mpx pinia store|
|@mpxjs/fetch|[![npm version](https://badge.fury.io/js/%40mpxjs%2Ffetch.svg)](https://badge.fury.io/js/%40mpxjs%2Ffetch)|mpx网络请求库,处理wx并发请求限制|
|@mpxjs/unocss-plugin|[![npm version](https://badge.fury.io/js/@mpxjs%2Funocss-plugin.svg)](https://badge.fury.io/js/@mpxjs%2Funocss-plugin)|mpx unocss插件,支持使用unocss原子类|
|@mpxjs/unocss-base|[![npm version](https://badge.fury.io/js/@mpxjs%2Funocss-base.svg)](https://badge.fury.io/js/@mpxjs%2Funocss-base)|mpx unocss预设|
|@mpxjs/cli|[![npm version](https://badge.fury.io/js/%40mpxjs%2Fcli.svg)](https://badge.fury.io/js/%40mpxjs%2Fcli)|mpx脚手架命令行工具|
|@mpxjs/webview-bridge|[![npm version](https://badge.fury.io/js/%40mpxjs%2Fwebview-bridge.svg)](https://badge.fury.io/js/%40mpxjs%2Fwebview-bridge)|为跨小程序平台的H5项目提供通用的webview-bridge|
|@mpxjs/mock|[![npm version](https://badge.fury.io/js/%40mpxjs%2Fmock.svg)](https://badge.fury.io/js/%40mpxjs%2Fmock)|结合mockjs提供数据mock能力|
|@mpxjs/utils|[![npm version](https://badge.fury.io/js/%40mpxjs%2Futils.svg)](https://badge.fury.io/js/%40mpxjs%2Futils)|mpx运行时工具库|
|@mpxjs/babel-plugin-inject-page-events|[![npm version](https://badge.fury.io/js/%40mpxjs%2Fbabel-plugin-inject-page-events.svg)](https://badge.fury.io/js/%40mpxjs%2Fbabel-plugin-inject-page-events)|组合式API页面事件处理插件|
|@mpxjs/mpx-cube-ui|[![npm version](https://badge.fury.io/js/%40mpxjs%2Fmpx-cube-ui.svg)](https://badge.fury.io/js/%40mpxjs%2Fmpx-cube-ui)|基于 Mpx 的移动端基础组件库|

## 开发团队

核心团队: [hiyuki](https://github.com/hiyuki), [Blackgan3](https://github.com/Blackgan3), [anotherso1a](https://github.com/anotherso1a), [CommanderXL](https://github.com/CommanderXL), [yandadaFreedom](https://github.com/yandadaFreedom), [wangxiaokou](https://github.com/wangxiaokou), [OnlyProbie](https://github.com/OnlyProbie), [pagnkelly](https://github.com/pagnkelly), [thuman](https://github.com/thuman), [theniceangel](https://github.com/theniceangel), [dolymood](https://github.com/dolymood)

外部贡献者:[sky-admin](https://github.com/sky-admin), [pkingwa](https://github.com/pkingwa), [httpsxiao](https://github.com/httpsxiao), [lsycxyj](https://github.com/lsycxyj), [okxiaoliang4](https://github.com/okxiaoliang4), [tangminFE](https://github.com/tangminFE), [codepan](https://github.com/codepan), [zqjimlove](https://github.com/zqjimlove), [xuehebinglan](https://github.com/xuehebinglan), [wangxiaokou](https://github.com/wangxiaokou), [zhaoyiming0803](https://github.com/zhaoyiming0803), [ctxrr](https://github.com/ctxrr), [JanssenZhang](https://github.com/JanssenZhang), [heiye9](https://github.com/heiye9), [lj0812](https://github.com/lj0812), [SuperHuangXu](https://github.com/SuperHuangXu), [twtylkmrh](https://github.com/twtylkmrh), [NineSwordsMonster](https://github.com/NineSwordsMonster)
外部贡献者:[sky-admin](https://github.com/sky-admin), [pkingwa](https://github.com/pkingwa), [httpsxiao](https://github.com/httpsxiao), [lsycxyj](https://github.com/lsycxyj), [okxiaoliang4](https://github.com/okxiaoliang4), [tangminFE](https://github.com/tangminFE), [codepan](https://github.com/codepan), [zqjimlove](https://github.com/zqjimlove), [xuehebinglan](https://github.com/xuehebinglan), [zhaoyiming0803](https://github.com/zhaoyiming0803), [ctxrr](https://github.com/ctxrr), [JanssenZhang](https://github.com/JanssenZhang), [heiye9](https://github.com/heiye9), [lj0812](https://github.com/lj0812), [SuperHuangXu](https://github.com/SuperHuangXu), [twtylkmrh](https://github.com/twtylkmrh), [NineSwordsMonster](https://github.com/NineSwordsMonster)

## 成功案例

Expand Down Expand Up @@ -231,9 +235,9 @@ Mpx的核心设计思路为增强,不同于业内大部分小程序框架将we

提供 微信群 / QQ群 两种交流方式.

#### 添加MPX入群客服等待受邀入群
#### 添加MPX入群小助手等待受邀入群

![微信](https://dpubstatic.udache.com/static/dpubimg/82e2e776-71e8-4ca5-8878-33b0d5020b6d.jpg)
![微信](https://dpubstatic.udache.com/static/dpubimg/6DN0ebkbjgI2P9QjJr8jr_WechatIMG3.jpeg)


#### 扫码进入QQ群
Expand Down
21 changes: 18 additions & 3 deletions docs-vuepress/.vuepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ const sidebar = {
'basic/event',
'basic/two-way-binding',
'basic/component',
'basic/refs'
'basic/refs',
'basic/option-chain'
]
},
{
Expand All @@ -40,6 +41,9 @@ const sidebar = {
'advance/ability-compatible',
'advance/plugin',
'advance/custom-output-path',
'advance/utility-first-css',
'advance/ssr',
'advance/provide-inject'
]
},
{
Expand Down Expand Up @@ -81,6 +85,7 @@ const sidebar = {
title: '迁移',
collapsable: false,
children: [
'migrate/2.9',
'migrate/2.8',
'migrate/2.7',
'migrate/mpx-cli-3'
Expand All @@ -97,6 +102,7 @@ const sidebar = {
'builtIn',
'reactivity-api',
'composition-api',
'optional-api',
'extend'
],
'/articles/': [
Expand All @@ -109,6 +115,8 @@ const sidebar = {
{ title: 'Mpx中基于 Typescript Template Literal Types 实现链式key的类型推导', path: 'ts-derivation' },
{ title: 'Mpx2.7 版本正式发布,大幅提升编译构建速度', path: '2.7-release' },
{ title: 'Mpx2.8 版本正式发布,使用组合式 API 开发小程序', path: '2.8-release' },
{ title: 'Mpx2.9 版本正式发布,支持原子类、SSR 和包体积优化', path: '2.9-release' },
{ title: '小程序跨端组件库 Mpx-cube-ui 开源啦', path: 'mpx-cube-ui' },
{ title: 'Mpx-cli 插件化改造', path: 'mpx-cli-next' },
{ title: 'Mpx 小程序单元测试能力建设与实践', path: 'unit-test'}
]
Expand All @@ -125,16 +133,23 @@ const nav = [
module.exports = {
base: '/',
head: [
['link', { rel: 'icon', href: '/favicon.ico' }]
['link', { rel: 'icon', href: '/favicon.ico' }],
// 插入一段 clarity 的数据分析的代码
['script', { type: 'text/javascript' }, `(function(c,l,a,r,i,t,y){
c[a]=c[a]||function(){(c[a].q=c[a].q||[]).push(arguments)};
t=l.createElement(r);t.async=1;t.src="https://www.clarity.ms/tag/"+i;
y=l.getElementsByTagName(r)[0];y.parentNode.insertBefore(t,y);
})(window, document, "clarity", "script", "jtvvy52wxy");`]
],
title: 'Mpx框架',
locales: {
'/': {
lang: 'zh-CN', // 将会被设置为 <html> 的 lang 属性
title: 'Mpx框架',
description: '深度性能优化的增强型小程序开发框架'
description: 'Mpxjs 是滴滴开源的支持跨端开发、深度性能优化的增强型小程序开发框架。使用 Mpxjs 帮助你更好开发小程序,拥有类似 VueJS 的数据响应能力,在降低研发心智负担的同时比原生小程序性能更好,完全基于原生小程序语法保障了最少的坑,一次开发多端生效同时支持微信小程序、支付宝小程序、抖音小程序、百度小程序、Web H5。'
},
},
shouldPrefetch: () => false,
plugins: {
'@vuepress/pwa': {
serviceWorker: true,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
e197dca3487ecef730bbb3a05e79d985
12 changes: 6 additions & 6 deletions docs-vuepress/.vuepress/theme/components/Popover.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<div v-show="isShow" class="popover__top">
<div class="popover__content">
<div class="popover__inner">
<img v-if="code" width="110" :src="code" alt="code" loading="lazy" />
<img v-if="code" width="300" :src="code" alt="code" loading="lazy" />
<div v-if="title">{{title}}</div>
</div>
<div class="popover__arrow"></div>
Expand Down Expand Up @@ -56,11 +56,11 @@ export default {
display inline-block
.popover__top
position absolute
width 150px
height 158px
width 300px
height 300px
background #fff
left -55px
top -168px
left -150px
top -350px
border-radius 4px
.popover__content
position relative
Expand Down Expand Up @@ -93,4 +93,4 @@ export default {
border 1px solid #EDEDED
.popover__content
display inline-block
</style>
</style>
2 changes: 1 addition & 1 deletion docs-vuepress/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ communityList:
details:
- title: 微信群
actionLink: https://github.com/didi/mpx
img: https://dpubstatic.udache.com/static/dpubimg/82e2e776-71e8-4ca5-8878-33b0d5020b6d.jpg
img: https://dpubstatic.udache.com/static/dpubimg/6DN0ebkbjgI2P9QjJr8jr_WechatIMG3.jpeg
- title: QQ群
actionLink: https://github.com/didi/mpx
img: https://dpubstatic.udache.com/static/dpubimg/etX-gKWeUb/temp_qrcode_share_374632411.png
Expand Down
8 changes: 6 additions & 2 deletions docs-vuepress/api/ApiIndex.vue
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ const data = [
text: 'webRouteConfig',
anchor: '#webRouteConfig'
},
{
text: 'webConfig',
anchor: '#webConfig'
},
]
}
]
Expand Down Expand Up @@ -733,8 +737,8 @@ const data = [
anchor: '#autoVirtualHostRules'
},
{
text: 'partialCompile',
anchor: '#partialCompile'
text: 'partialCompileRules',
anchor: '#partialCompileRules'
},
]
},
Expand Down
Loading
Loading