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/pure compont #15591

Closed
wants to merge 1,330 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1330 commits
Select commit Hold shift + click to select a range
7a6902e
fix: 临时处理安全区域被拉扯的问题
Mar 8, 2024
b5b9773
Merge branch '4.x' of github.com:NervJS/taro into 4.x
Mar 8, 2024
4b93e1d
chore(release): publish 4.0.0-beta.19 --tag=beta
Mar 8, 2024
aa2450d
feat(harmony): 调整 render 生成文件路径
ZakaryCode Mar 11, 2024
949e147
fix(harmony): add api entry rgx
ZakaryCode Mar 11, 2024
dab048c
feat: 优化样式的设置路径,简化流程
heiazu Mar 11, 2024
810d2c8
fix(harmony): handle harmony scope
ZakaryCode Mar 12, 2024
778f7c0
fix(ets): render importer
ZakaryCode Mar 12, 2024
ef2fd81
fix(ets): 临时调整 page 生成逻辑
ZakaryCode Mar 12, 2024
4a42337
feat(harmony): 页面模板重构,支持 Navigation 组件
ZakaryCode Mar 12, 2024
4107056
fix: 修复鸿蒙 observer api 没有兜底的问题
Mar 12, 2024
e799221
feat: 鸿蒙支持多类选择器,简化style的查询/设置的路径
heiazu Mar 12, 2024
19668e3
chore(release): publish 4.0.0-beta.17 --tag=beta
heiazu Mar 12, 2024
3126d5f
fix: 修复合并错误
heiazu Mar 12, 2024
7838893
feat: 修复伪类没出来
heiazu Mar 12, 2024
efcddf1
fix(ets): native components state
ZakaryCode Mar 12, 2024
8ad0f1e
chore(release): publish 4.0.0-beta.20 --tag=beta
Mar 12, 2024
89e4d8c
fix(ets): add node comment
ZakaryCode Mar 13, 2024
d9ee639
feat: 完善模版实现
Mar 13, 2024
85b1478
feat: 更新pacse-css脚本,解决编译性能问题
heiazu Mar 13, 2024
c002a9a
fix: 修复多类选择器的bug
heiazu Mar 13, 2024
3619057
fix: 修复多类选择器没有匹配到重名的节点
heiazu Mar 13, 2024
9bffe91
chore(release): publish 4.0.0-beta.21 --tag=beta
Mar 13, 2024
4c5e4c3
Feat/canvas (#15319)
yoturg Mar 14, 2024
6bf8bfa
feat(harmony): 更新运行时开发逻辑
ZakaryCode Mar 14, 2024
9fd0e27
feat(harmony): update solid
ZakaryCode Mar 14, 2024
8c499e2
fix: computeBackgroundPosition
Mar 14, 2024
21f66c5
feat: 更新stylelint
heiazu Mar 13, 2024
94adb09
feat: 支持鸿蒙不对PX进行转换处理
heiazu Mar 14, 2024
cca3fe2
fix: eslint
heiazu Mar 14, 2024
be0dd33
feat: 调整鸿蒙 @tarojs/components 结构
Mar 14, 2024
ee78e82
chore(release): publish 4.0.0-beta.22 --tag=beta
Mar 14, 2024
00c2282
feat: 修改设置页面背景颜色的位置
Mar 15, 2024
d6334da
fix(harmony): update IntersectionObserver err callback
ZakaryCode Mar 15, 2024
e2bcc06
fix(harmony): update solid text node
ZakaryCode Mar 15, 2024
e15a6dd
feat: 优化鸿蒙运行时逻辑
Mar 15, 2024
941a3b3
Merge branch '4.x' of github.com:NervJS/taro into 4.x
Mar 15, 2024
397494f
fix(harmony): 抽离 copy 插件
ZakaryCode Mar 18, 2024
71d7ced
fix(ets): 优化类名格式化问题
ZakaryCode Mar 18, 2024
0d0144c
fix(ets): 优化 ratio 获取
ZakaryCode Mar 18, 2024
fec9db0
fix: 修改数字匹配的正则
Mar 18, 2024
5f3d511
fix(ets): 删除冗余代码
ZakaryCode Mar 18, 2024
04fb6c4
fix(harmony): 合并样式循环
ZakaryCode Mar 18, 2024
be43d57
fix(ets): 优化写法
ZakaryCode Mar 18, 2024
35ea444
fix(react): 同步常量设置
ZakaryCode Mar 18, 2024
efff473
feat: 支持跨组件传递样式
heiazu Mar 18, 2024
9965a1e
feat: 更新parse-css-to-stylesheet版本
heiazu Mar 18, 2024
d19d5e9
fix: 修复不能解析.5单位
heiazu Mar 18, 2024
e20954d
fix: 修复鸿蒙动画不能正常运行的问题
Mar 18, 2024
fc921c0
Merge branch '4.x' of github.com:NervJS/taro into 4.x
Mar 18, 2024
a8a94ba
chore(release): publish 4.0.0-beta.23 --tag=beta
Mar 18, 2024
a3de5f8
Merge branch '4.x' of https://github.com/NervJS/taro into 4.x
Mar 19, 2024
870be3f
feat: 完善 IntersectionObserver API 的返回内容
Mar 19, 2024
f2ac80b
Merge branch '4.x' of github.com:NervJS/taro into 4.x
Mar 19, 2024
a9deeba
feat: 更新parse-css-to-stylesheet插件
heiazu Mar 19, 2024
bad0a26
chore(release): publish 4.0.0-beta.24 --tag=beta
Mar 19, 2024
75a9245
fix: 修复引入大小写的问题
Mar 20, 2024
56bb275
feat: 支持 solid 编译(非完全测试版本)
ZakaryCode Mar 20, 2024
4164c0f
feat: 支持css变量
heiazu Mar 20, 2024
3862309
chore(release): publish 4.0.0-beta.25 --tag=beta
heiazu Mar 20, 2024
89c6ad7
feat: 完善鸿蒙 api 不支持提醒文案
Mar 21, 2024
b683230
Merge branch '4.x' of github.com:NervJS/taro into 4.x
Mar 21, 2024
594821d
feat: 在直接兜底ohpm之前加一层where查找
Mar 21, 2024
7c05351
Merge branch '4.x' of https://github.com/NervJS/taro into 4.x
Mar 21, 2024
9165761
fix: 修复页面 onHidden 执行的方法错误的问题
Mar 21, 2024
617e9b2
Merge branch '4.x' of github.com:NervJS/taro into 4.x
Mar 21, 2024
6c750a8
feat: 给localOhpmPath加多一次判断
Mar 21, 2024
bfac5f4
Merge branch '4.x' of github.com:NervJS/taro into 4.x
Mar 21, 2024
4fd2ac1
chore(release): publish 4.0.0-beta.26 --tag=beta
Mar 21, 2024
1ef8295
feat: 文字完善 flex 布局时候的样式还原
Mar 22, 2024
89316e0
feat: view 的默认宽度设置,flex 时默认不撑满宽度
Mar 22, 2024
7d584a0
chore(release): publish 4.0.0-beta.27 --tag=beta
Mar 22, 2024
9687cdd
feat: solid comp & runtime
ZakaryCode Mar 22, 2024
b147620
feat: 支持组件导出形式为 export {} from 'xxxx'
Mar 25, 2024
92b78fe
chore(release): publish 4.0.0-beta.28 --tag=beta
Mar 25, 2024
fa8c097
feat: 增加css变量的提前编译处理
heiazu Mar 26, 2024
e2e1b31
fix: 修复a标签没有解析成text
heiazu Mar 26, 2024
d608815
feat: 更新解析插件版本
heiazu Mar 26, 2024
9ae31eb
feat: 完善半编译逻辑,并提供 page 模板更改的口子
Mar 26, 2024
566ebb0
Merge branch '4.x' of github.com:NervJS/taro into 4.x
Mar 26, 2024
fc8cdb2
chore(release): publish 4.0.0-beta.29 --tag=beta
Mar 26, 2024
283518d
feat(solid): 更新 view 实现
ZakaryCode Mar 26, 2024
7bc4f9d
fix(solid): 更新支持本地 link 调试
ZakaryCode Mar 26, 2024
8b3c05f
feat: 修改滚动属性监听的方法
Mar 27, 2024
7a72709
fix(react): 同步常量设置
ZakaryCode Mar 18, 2024
bb947e8
feat: 支持 solid 编译(非完全测试版本)
ZakaryCode Mar 20, 2024
235f303
feat: solid comp & runtime
ZakaryCode Mar 22, 2024
8c043ea
Merge branch 'fix/solid' into 4.x
ZakaryCode Mar 27, 2024
099eec7
fix: harmony nativepage 模式添加 didcatch 周期
Mar 27, 2024
ff567b0
Merge branch '4.x' of github.com:NervJS/taro into 4.x
Mar 27, 2024
e763b9f
feat: 支持伪类first-child\last-child\nth-child
heiazu Mar 27, 2024
4315a03
feat: 更新css解析插件
heiazu Mar 27, 2024
f6b0e26
fix(solid): 优化鸿蒙 reconciler 映射
ZakaryCode Mar 27, 2024
85f6f79
feat: 完善半编译逻辑
Mar 27, 2024
d6c5718
Merge branch '4.x' of github.com:NervJS/taro into 4.x
Mar 27, 2024
3c96382
chore(release): publish 4.0.0-beta.30 --tag=beta
Mar 27, 2024
d5d0e91
feat: storage 添加 context 判断
Mar 28, 2024
29b220b
chore(release): publish 4.0.0-beta.31 --tag=beta
Mar 28, 2024
fa00189
feat(vite): harmony 端支持开发模式增量变更
ZakaryCode Mar 28, 2024
1ae365d
feat(vite): 支持 config 文件热更新触发
ZakaryCode Mar 28, 2024
225336a
feat: pxTransform换算,支持backgroundjiexi
heiazu Mar 28, 2024
0bfcd5b
feat: 完成transform的style支持
heiazu Mar 28, 2024
25a8012
feat: 简化 modifyPageAppear 入参
Mar 28, 2024
507e851
Merge branch '4.x' of github.com:NervJS/taro into 4.x
Mar 28, 2024
99b7615
chore(release): publish 4.0.0-beta.32 --tag=beta
Mar 28, 2024
dba2e3d
fix(vite): 优化 page 获取
ZakaryCode Mar 28, 2024
11526fd
fix(vite): 临时禁用开发环境文件拆分
ZakaryCode Mar 29, 2024
97a4572
fix(vite): 移除冗余插件
ZakaryCode Mar 29, 2024
46ca075
fix(vite): 避免 react-dev stack debug 方法导致的问题
ZakaryCode Mar 29, 2024
e490179
feat: 径向渐变
heiazu Mar 29, 2024
39ff0a6
feat: 优化半编译引用路径问题
Mar 29, 2024
e0e4250
Merge branch '4.x' of github.com:NervJS/taro into 4.x
Mar 29, 2024
5a49020
chore(release): publish 4.0.0-beta.33 --tag=beta
Mar 29, 2024
a73953a
fix(vite): 修复 preserve 模式引用
ZakaryCode Mar 29, 2024
8b29d49
fix(vite): 调整 pages 获取逻辑
ZakaryCode Apr 1, 2024
80d4331
fix(vite): 调整 page 实例方法导出
ZakaryCode Apr 1, 2024
8e53fa2
fix(types): 修复 compile 类型引用
ZakaryCode Apr 1, 2024
be3e714
feat: 支持uid、修复部分样式丢失
heiazu Apr 1, 2024
826f739
feat(vite): 调整页面方法注入逻辑
ZakaryCode Apr 1, 2024
6df4810
feat(vite): harmony 新增 modifyPageMethods 支持
ZakaryCode Apr 1, 2024
66bc726
feat: 增加 shouldBindEvent api 的导出
Apr 1, 2024
cde2f71
fix(harmony): update compiler
ZakaryCode Apr 2, 2024
ff3694a
feat: 支持position: fixed
heiazu Apr 2, 2024
f864015
fix: 修复createSelectorQuery一直返回数组
heiazu Apr 2, 2024
6c47ab6
fix(taro): 修复webpack5-runner 编译错误
Chen-jj Apr 2, 2024
420204f
chore(release): publish 4.0.0-beta.34 --tag=beta
Apr 2, 2024
f9706d9
feat: 添加组件插件化修改接口
Apr 2, 2024
164ee40
chore(release): publish 4.0.0-beta.35 --tag=beta
Apr 2, 2024
bc438dc
feat: 鸿蒙兜底 DOM 节点变更为双向绑定节点
Apr 2, 2024
4c14d66
fix(runner): 修复 render 路径解析
ZakaryCode Apr 3, 2024
8938d5b
feat: 添加 TaroOtherElement 导出
Apr 3, 2024
160ad61
Merge branch '4.x' of github.com:NervJS/taro into 4.x
Apr 3, 2024
edad473
fix(vite): 优化插件删除机制
ZakaryCode Apr 3, 2024
8e6deb6
feat: support custom resolveRequest
zhiqingchen Mar 6, 2024
bb89131
feat(rn): revert redirect animate
zhiqingchen Mar 13, 2024
84a9311
feat:样式兼容问题以及错误提示
Mar 18, 2024
7731e32
feat:兼容harmony PanResponder事件戳
Mar 22, 2024
8eed88c
feat(rn): remove unused masked-view
zhiqingchen Mar 20, 2024
106997a
feat: getLocation's Authorization changeto @react-native-community/ge…
flyrui316 Mar 22, 2024
5f334ba
fix 调用下拉刷新不执行
Apr 2, 2024
583f906
fix: type
zhiqingchen Apr 2, 2024
c5798b1
chore: lint
zhiqingchen Apr 2, 2024
a698ea1
feat: 支持text内嵌入行内图片
heiazu Apr 3, 2024
c370f7e
feat: 补充text、image在行内的点击事件
heiazu Apr 3, 2024
c129f9f
fix: template replace ignore tgz
zhiqingchen Apr 3, 2024
d61bd0e
feat: 修改组件参数
Apr 3, 2024
7bd0f54
Merge branch '4.x' of github.com:NervJS/taro into 4.x
Apr 3, 2024
ced98de
chore(release): publish 4.0.0-beta.36 --tag=beta
Apr 3, 2024
b608ebb
fix: 修复textNode没有继承父元素、fixed的remove失效问题
heiazu Apr 7, 2024
0084db4
chore(release): publish 4.0.0-beta.37 --tag=beta
heiazu Apr 7, 2024
107d8d1
fix: 修复fixed层事件点击问题
heiazu Apr 7, 2024
6dba6e7
chore(release): publish 4.0.0-beta.38 --tag=beta
heiazu Apr 7, 2024
ee1e5d1
feat: 增加white-space解析
heiazu Apr 8, 2024
bd3def0
fix: 修复text下套单个text的样式丢失
heiazu Apr 8, 2024
2731ddd
feat: 优化tabbar下的fixed渲染位置
heiazu Apr 8, 2024
5eb97ad
fix(runner): 修复 wins 上 render 路径编译异常问题
ZakaryCode Apr 8, 2024
39368eb
feat: 支持flex-wrap、修复fixed问题
heiazu Apr 8, 2024
42dcff3
feat: 精简 rust 鸿蒙半编译代码
Apr 8, 2024
e4b4359
Merge branch '4.x' of github.com:NervJS/taro into 4.x
Apr 8, 2024
0e5fcb7
chore(release): publish 4.0.0-beta.39 --tag=beta
Apr 8, 2024
a135bb1
feat: 支持overflow:scroll
heiazu Apr 8, 2024
8269ce0
fix: 修复半编译row/columnModify的导入失败
heiazu Apr 8, 2024
8eede8a
chore(release): publish 4.0.0-beta.40 --tag=beta
Apr 8, 2024
6fe5114
fix: 修复overflow、render报错、swiper支持nextMargin、prevMargin
heiazu Apr 9, 2024
bbfaf01
fix: 修复发版中ts类型报错
heiazu Apr 9, 2024
83fefed
feat: 鸿蒙 storage api 支持大对象缓存
Apr 9, 2024
5781f80
Merge branch '4.x' of github.com:NervJS/taro into 4.x
Apr 9, 2024
41fdccb
fix(runner): 修复路径解析字符判断方法
ZakaryCode Apr 9, 2024
1bb6a4e
chore(release): publish 4.0.0-beta.41 --tag=beta
Apr 9, 2024
3355dcb
fix: 修复 err 取反的问题
Apr 9, 2024
ef1d281
chore(release): publish 4.0.0-beta.42 --tag=beta
Apr 9, 2024
e2ce5f7
fix: 修复文本问题、375下的标题过大问题
heiazu Apr 10, 2024
c451e03
chore(release): publish 4.0.0-beta.43 --tag=beta
heiazu Apr 10, 2024
53831ae
fix(runner): 调整 scripts 正则支持 mjs 后缀
ZakaryCode Apr 10, 2024
d8c278f
fix: 修复崩溃日志的可能报错的问题
heiazu Apr 10, 2024
9343aa5
fix(harmony): 支持 customRoutes 配置
ZakaryCode Apr 10, 2024
85eefd5
feat: 支持textDecoration
heiazu Apr 10, 2024
e5e7c75
fix(harmony): 修改 page 模板事件钩子
ZakaryCode Apr 10, 2024
351bb82
fix(harmony): 修复安全区域高度
ZakaryCode Apr 11, 2024
b5d8b1d
fix: convertNumber2VP 添加函数返回类型解决 harmony 环境下类型推断不来的问题
Apr 11, 2024
46b03f8
Merge branch '4.x' of https://github.com/NervJS/taro into 4.x
Apr 11, 2024
1976017
fix(harmony): 缩小组件模式错误抛出范围
ZakaryCode Apr 11, 2024
0747560
fix(harmony): 优化组件开发模式错误
ZakaryCode Apr 11, 2024
9a016f6
chore(release): publish 4.0.0-beta.44 --tag=beta
ZakaryCode Apr 11, 2024
60a06af
fix(harmony): 排除类型代码替换
ZakaryCode Apr 11, 2024
3de6449
feat: 支持css的animation属性,@keyframes
heiazu Apr 11, 2024
6e0c0a1
fix(runner): 调整 page 模板格式
ZakaryCode Apr 12, 2024
7fb24f8
fix: 修复鸿蒙的路径冲突
heiazu Apr 12, 2024
b4ee55d
chore: 修改文件后缀
heiazu Apr 12, 2024
879c661
chore(release): publish 4.0.0-beta.45 --tag=beta
heiazu Apr 12, 2024
1dbd1b4
fix: 修复textNode继承了transofrm
heiazu Apr 12, 2024
350a904
feat: 部分场景使用flex来布局
heiazu Apr 15, 2024
7fb1eaa
fix: 兼容壳容器的fixed布局
heiazu Apr 15, 2024
bdb68cc
feat: kvstore 获取时机使用 promise 进行延迟
Apr 15, 2024
dddf82a
chore(release): publish 4.0.0-beta.46 --tag=beta
Apr 15, 2024
ea3dcdd
Fix/compile mode (#15509)
yoturg Apr 15, 2024
8eb1317
fix: 修复半编译 textDecoration 取值问题
Apr 16, 2024
8d33c88
fix(arkts): 调整注入依赖后缀判断
ZakaryCode Apr 16, 2024
cd47ed9
feat: 支持css动画,移除无用的useNesting配置
heiazu Apr 16, 2024
7582a7b
feat: 支持env解析
heiazu Apr 17, 2024
26cc5af
feat: 更新 showToast 等 api 的实现,复制到剪切板 api 添加 toast 提示
Apr 17, 2024
7460a06
Merge branch '4.x' of github.com:NervJS/taro into 4.x
Apr 17, 2024
e45b93d
fix: 修复 clearStorage 的提示错误的问题
Apr 17, 2024
f296670
fix: 修复style设置null/undefined把class的样式也删除的bug
heiazu Apr 17, 2024
730bdd1
fix: 修复可能的报错
heiazu Apr 17, 2024
8c22833
Fix/compile mode (#15519)
yoturg Apr 18, 2024
ca5cd5d
feat: 更新parse-css-to-stylesheet版本
heiazu Apr 18, 2024
c6b528e
chore(release): publish 4.0.0-beta.47 --tag=beta
heiazu Apr 18, 2024
ebbfa0c
fix: 修复 icon 图标显示大小错误问题
Apr 19, 2024
1f0b0a3
Merge branch '4.x' of github.com:NervJS/taro into 4.x
Apr 19, 2024
5d4818b
chore(release): publish 4.0.0-beta.48 --tag=beta
Apr 19, 2024
7424b40
feat: 调整一下编译模式下的配置项
Apr 20, 2024
4638e2e
chore(release): publish 4.0.0-beta.49 --tag=beta
Apr 20, 2024
0b9a485
fix: 解决鸿蒙节点频繁更新的问题
Apr 22, 2024
0204ca7
fix(lint): 更新代码格式
ZakaryCode Apr 22, 2024
4449538
feat(harmony): 新增 page-meta、navigation-bar 组件
ZakaryCode Apr 22, 2024
db211bd
fix(harmony): 调整下拉刷新层级判断
ZakaryCode Apr 22, 2024
13cbe34
fix(harmony): 优化 background API 设置
ZakaryCode Apr 22, 2024
346580e
fix(page): 优化页面模板高度设置
ZakaryCode Apr 22, 2024
c38fe4a
feat: 把forof改成for
Apr 22, 2024
a25e85c
Merge branch '4.x' of https://github.com/NervJS/taro into 4.x
Apr 22, 2024
979a54a
fix(page): 修复页面事件监听问题
ZakaryCode Apr 22, 2024
ba6d54d
feat: 支持empty选择器
heiazu Apr 18, 2024
c631084
chore(release): publish 4.0.0-beta.50 --tag=beta
Apr 22, 2024
abdcf71
feat(harmony): 支持部分组件配置属性
ZakaryCode Apr 22, 2024
76b1d8c
fix: 修复鸿蒙组件编译模式下生命周期生成错误的问题
Apr 23, 2024
cec2764
Merge branch '4.x' of github.com:NervJS/taro into 4.x
Apr 23, 2024
ae5f18f
chore(release): publish 4.0.0-beta.51 --tag=beta
Apr 23, 2024
3b0bf70
fix: 删除多余的导入
Apr 23, 2024
b667972
fix: 临时注释报错代码
Apr 23, 2024
dac822e
chore(release): publish 4.0.0-beta.52 --tag=beta
Apr 23, 2024
e32d8c3
fix(harmony): 支持 page-meta 相关属性操作
ZakaryCode Apr 23, 2024
949ee4c
fix(harmony): add FIXME
ZakaryCode Apr 23, 2024
53b364b
feat(harmony): 更新组件模式 State 判断
ZakaryCode Apr 23, 2024
bed51dd
chore(release): publish 4.0.0-beta.53 --tag=beta
Apr 23, 2024
3f715e3
fix: 修复tabbar生成的类型报错
Apr 25, 2024
d3a3941
feat: 为swiper组件添加touch和transition事件
Apr 25, 2024
06cb98c
feat: 更新parse-css-to-stylesheet版本
heiazu Apr 25, 2024
d69b9cb
feat: 添加对usingComponents第三方包的支持
Apr 25, 2024
2e4d535
Merge remote-tracking branch 'origin/4.x' into feat/swiper_event
Apr 26, 2024
f6ba988
feat: blended模式下关闭虚拟模块的引用修复
Apr 26, 2024
d458818
Feat/swiper event (#15585)
yoturg Apr 26, 2024
e5e922f
feat: 修改文本的span的属性设置
heiazu Apr 26, 2024
6bb86df
feat: 更新半编译逻辑
Apr 26, 2024
a8e7822
chore(release): publish 4.0.0-beta.54 --tag=beta
Apr 26, 2024
3023cf1
fix(harmony): 移出 input 组件默认 padding 设置
ZakaryCode Apr 26, 2024
bf5b103
feat: 在cli里添加pure-native-component模式
Apr 28, 2024
869267c
feat: 在第三方包的情况下关掉文件处理
Apr 28, 2024
b73c3af
feat: 修改变量命名
Apr 28, 2024
35b284b
Merge remote-tracking branch 'origin/4.x' into feat/swiper_event
Apr 28, 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
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ dist-h5
lib
node_modules
*.d.ts
*.ets
coverage
examples

Expand Down
84 changes: 44 additions & 40 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,27 +1,23 @@
module.exports = {
parser: '@typescript-eslint/parser',
plugins: [
'@typescript-eslint',
'import',
'jest',
'react',
'simple-import-sort',
'prettier'
],
plugins: ['@typescript-eslint', 'import', 'jest', 'react', 'simple-import-sort', 'prettier'],
extends: [
'eslint:recommended',
'standard',
'plugin:@typescript-eslint/recommended',
'plugin:react/jsx-runtime',
'plugin:react/recommended',
'prettier'
'prettier',
],
rules: {
'@typescript-eslint/ban-ts-comment': 0,
'@typescript-eslint/explicit-function-return-type': 0,
'@typescript-eslint/explicit-module-boundary-types': 0,
'@typescript-eslint/indent': [2, 2],
'@typescript-eslint/member-delimiter-style': [1, { multiline: { delimiter: 'none' }, singleline: { delimiter: 'comma' } }],
'@typescript-eslint/member-delimiter-style': [
1,
{ multiline: { delimiter: 'none' }, singleline: { delimiter: 'comma' } },
],
'@typescript-eslint/no-empty-function': 0,
'@typescript-eslint/no-explicit-any': 0,
'@typescript-eslint/no-namespace': 0,
Expand All @@ -31,17 +27,22 @@ module.exports = {
'@typescript-eslint/no-use-before-define': [1, { functions: false, classes: false }],
'@typescript-eslint/no-var-requires': 0,
camelcase: 0,
'comma-spacing': 2,
'eol-last': 2,
'import/first': 2,
'import/newline-after-import': 2,
'import/no-duplicates': 2,
indent: 'off',
indent: 0,
'keyword-spacing': 2,
'no-console': [2, { allow: ['warn', 'error'] }],
'no-empty': 1,
'no-multiple-empty-lines': 2,
'no-multi-spaces': 2,
'no-prototype-builtins': 0,
'no-unused-expressions': 0,
'no-unused-vars': 'off',
'no-use-before-define': 0,
'object-curly-spacing': 2,
'no-empty': 1,
'prefer-spread': 0,
'prefer-rest-params': 0,
'react/jsx-uses-vars': 1,
Expand All @@ -51,34 +52,37 @@ module.exports = {
'import/no-named-default': 'off',
quotes: [2, 'single', { avoidEscape: true, allowTemplateLiterals: true }],
semi: [2, 'never'],
'simple-import-sort/imports': [2, {
groups: [
// Side effect imports.
['^\\u0000'],
// Node.js builtins prefixed with `node:`.
['^node:'],
// Packages.
// Things that start with a letter (or digit or underscore), or `@` followed by a letter.
['^@?\\w'],
// Absolute imports and other imports such as Vue-style `@/foo`.
// Anything not matched in another group.
['^'],
// Relative imports.
// Anything that starts with a dot.
['^\\.'],
// Types Group
['^node:.*\\u0000$', '^@?\\w.*\\u0000$', '(?<=\\u0000)$', '^\\..*\\u0000$'],
]
}],
'simple-import-sort/imports': [
2,
{
groups: [
// Side effect imports.
['^\\u0000'],
// Node.js builtins prefixed with `node:`.
['^node:'],
// Packages.
// Things that start with a letter (or digit or underscore), or `@` followed by a letter.
['^@?\\w'],
// Absolute imports and other imports such as Vue-style `@/foo`.
// Anything not matched in another group.
['^'],
// Relative imports.
// Anything that starts with a dot.
['^\\.'],
// Types Group
['^node:.*\\u0000$', '^@?\\w.*\\u0000$', '(?<=\\u0000)$', '^\\..*\\u0000$'],
],
},
],
'simple-import-sort/exports': 2,
'space-before-function-paren': [2, 'always'],
'standard/no-callback-literal': 0
'space-before-function-paren': 0,
'standard/no-callback-literal': 0,
},
env: {
'jest/globals': true,
browser: true,
node: true,
es6: true
es6: true,
},
globals: {
testRule: 'readonly',
Expand All @@ -92,16 +96,16 @@ module.exports = {
requirePlugin: 'readonly',
jd: 'readonly',
ks: 'readonly',
LOCATION_APIKEY: 'readonly'
LOCATION_APIKEY: 'readonly',
},
parserOptions: {
ecmaFeatures: {
jsx: true
}
jsx: true,
},
},
settings: {
react: {
version: 'detect'
}
}
version: 'detect',
},
},
}
2 changes: 1 addition & 1 deletion .github/workflows/build-rust-binding.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
- name: Setup pnpm
uses: pnpm/action-setup@v2.4.0
with:
version: 7
version: 8
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
if: ${{ !matrix.settings.docker }}
Expand Down
54 changes: 36 additions & 18 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ env:
on:
push:
branches:
- 'chore/**'
- 'feat/**'
- 'fix/**'
- '1.x'
- '2.x'
- '3.x'
- '4.x'
- main
pull_request:
branches:
Expand All @@ -22,29 +29,40 @@ jobs:
uses: ./.github/workflows/build-rust-wasm.yml

nodejs-tesing:
name: Testing on Node.js ${{ matrix.node-version }} (${{ matrix.settings.host }})
name: Testing on Node.js ${{ matrix.node-version }} (${{ matrix.host }})
needs:
- build-rust-binding
- build-rust-wasm
strategy:
fail-fast: false
matrix:
node-version: [16.x]
settings:
node-version: [16.x, 18.x, 20.x]
host: [macos-11, windows-latest, ubuntu-latest]
include:
- host: macos-11
target: x86_64-apple-darwin
- host: windows-latest
target: x86_64-pc-windows-msvc
- host: ubuntu-latest
target: x86_64-unknown-linux-gnu
runs-on: ${{ matrix.settings.host }}
exclude:
- node-version: 16.x
host: macos-11
- node-version: 16.x
host: windows-latest
- node-version: 18.x
host: macos-11
- node-version: 18.x
host: windows-latest

runs-on: ${{ matrix.host }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v2.4.0
with:
version: 7
version: 8
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
Expand All @@ -65,75 +83,75 @@ jobs:
run: pnpm -r install --frozen-lockfile
- name: Lint
run: pnpm lint
- name: Download artifact bindings-${{ matrix.settings.target }}
- name: Download artifact bindings-${{ matrix.target }}
uses: actions/download-artifact@v4
with:
name: bindings-${{ matrix.settings.target }}
name: bindings-${{ matrix.target }}
path: crates/native_binding
- name: Test bindings
run: pnpm test:binding
if: ${{ matrix.settings.target != 'x86_64-unknown-linux-gnu' }}
if: ${{ matrix.target != 'x86_64-unknown-linux-gnu' }}
- name: Test bindings with docker
if: ${{ matrix.settings.target == 'x86_64-unknown-linux-gnu' }}
if: ${{ matrix.target == 'x86_64-unknown-linux-gnu' }}
# 暂时使用了一个第三方的 docker 镜像
run: docker run --rm -v $(pwd):/build -w /build chf007/pnpm pnpm test:binding
# 以下的测试流程应该在所有平台都执行,但 windows 好像还有些问题,因此目前只在 ubuntu-latest 执行
- name: Download all artifacts
uses: actions/download-artifact@v4
if: ${{ matrix.settings.host == 'ubuntu-latest' }}
with:
path: crates/native_binding/artifacts
- name: List Package crates/native_binding
run: ls -R ./crates/native_binding
shell: bash
- name: Move artifacts
run: pnpm artifacts
if: ${{ matrix.settings.host == 'ubuntu-latest' }}
- name: build
run: pnpm build
if: ${{ matrix.settings.host == 'ubuntu-latest' }}
- name: test
run: pnpm test
if: ${{ matrix.settings.host == 'ubuntu-latest' }}
env:
CI: true
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

# 以下 coverage 流程通过 artifact 拆分文件作为单独 job 上传时间损耗过长,因此在在 node test 后直接继续执行
- name: Upload [taro-cli] coverage to Codecov
uses: codecov/codecov-action@v3
if: ${{ matrix.settings.host == 'ubuntu-latest' }}
if: ${{ matrix.host == 'ubuntu-latest' }}
with:
move_coverage_to_trash: true
flags: taro-cli
files: ./packages/taro-cli/coverage/clover.xml
token: ${{ secrets.CODECOV_TOKEN }}
- name: Upload runner coverage to Codecov
uses: codecov/codecov-action@v3
if: ${{ matrix.settings.host == 'ubuntu-latest' }}
if: ${{ matrix.host == 'ubuntu-latest' }}
with:
move_coverage_to_trash: true
flags: taro-runner
files: ./packages/taro-webpack5-runner/coverage/clover.xml,./packages/taro-webpack-runner/coverage/clover.xml,./packages/taro-mini-runner/coverage/clover.xml
token: ${{ secrets.CODECOV_TOKEN }}
- name: Upload [taro-runtime] coverage to Codecov
uses: codecov/codecov-action@v3
if: ${{ matrix.settings.host == 'ubuntu-latest' }}
if: ${{ matrix.host == 'ubuntu-latest' }}
with:
move_coverage_to_trash: true
flags: taro-runtime
files: ./packages/taro-runtime/coverage/clover.xml
token: ${{ secrets.CODECOV_TOKEN }}
- name: Upload [taro-web] coverage to Codecov
uses: codecov/codecov-action@v3
if: ${{ matrix.settings.host == 'ubuntu-latest' }}
if: ${{ matrix.host == 'ubuntu-latest' }}
with:
move_coverage_to_trash: true
flags: taro-web
files: ./packages/taro-components/coverage/clover.xml,./packages/taro-h5/coverage/clover.xml,./packages/taro-router/coverage/clover.xml
token: ${{ secrets.CODECOV_TOKEN }}
- name: Upload rest coverage to Codecov
uses: codecov/codecov-action@v3
if: ${{ matrix.settings.host == 'ubuntu-latest' }}
if: ${{ matrix.host == 'ubuntu-latest' }}
with:
token: ${{ secrets.CODECOV_TOKEN }}

Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ on:
branches:
- 'chore/**'
- 'feat/**'
# When Release Pull Request is merged
- 'fix/**'
- '1.x'
- '2.x'
- '3.x'
- '4.x'
pull_request:
branches:
- main
Expand Down Expand Up @@ -83,7 +87,7 @@ jobs:
- name: Setup pnpm
uses: pnpm/action-setup@v2.4.0
with:
version: 7
version: 8
- name: Setup Node 16
uses: actions/setup-node@v4
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sync-components-types.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
- name: install
uses: pnpm/action-setup@v2.4.0
with:
version: 7
version: 8
run_install: |
- recursive: true
args: [--frozen-lockfile, --strict-peer-dependencies]
Expand Down
Empty file modified .husky/commit-msg
100755 → 100644
Empty file.
Empty file modified .husky/pre-commit
100755 → 100644
Empty file.
2 changes: 1 addition & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"version": "0.2.0",
"configurations": [
{
"type": "lldb",
"type": "node",
"request": "launch",
"name": "debug-init",
"sourceLanguages": ["rust"],
Expand Down
16 changes: 3 additions & 13 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,5 @@
{
"eslint.validate": [
"javascript",
"javascriptreact",
{
"language": "typescript",
"autoFix": true
},
{
"language": "typescriptreact",
"autoFix": true
}
],
"eslint.validate": ["javascript", "javascriptreact", "typescript", "typescriptreact"],
"search.exclude": {
"**/.git": true,
"**/node_modules": true,
Expand All @@ -22,7 +11,8 @@
"javascript.format.insertSpaceBeforeFunctionParenthesis": true,
"typescript.format.insertSpaceBeforeFunctionParenthesis": true,
"files.associations": {
"*.json": "jsonc"
"*.json": "jsonc",
"*.ets": "typescript"
},
"rust-analyzer.linkedProjects": [
"./crates/taro_init/Cargo.toml",
Expand Down
Loading
Loading