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

4.x 依赖治理 #15431

Closed
wants to merge 1,204 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1204 commits
Select commit Hold shift + click to select a range
2e1af62
feat: 完善动态属性在半编译插件的实现
Jan 19, 2024
19c069e
chore(release): publish 4.0.0-beta.4 --tag=beta
Jan 19, 2024
90f5bcd
feat: expo 50 release
zhiqingchen Jan 22, 2024
efb320d
fix: 修复动态属性添加后一些组件属性设置错误的问题
Jan 22, 2024
c6f5e37
Merge branch '4.x' of github.com:NervJS/taro into 4.x
Jan 22, 2024
21b66b7
fix: vite 编译关闭强制依赖优化
Jan 22, 2024
ea8d3d9
Merge branch '4.x' of github.com:NervJS/taro into 4.x
Jan 22, 2024
c77b043
chore(release): publish 4.0.0-beta.5 --tag=beta
Jan 22, 2024
ae953a4
chore(release): publish 4.0.0-beta.5 --tag=beta
Jan 22, 2024
ec39f99
Merge branch '4.x' of github.com:NervJS/taro into 4.x
Jan 23, 2024
3f22826
fix: 修复 vite 编译 h5 时没有注入 history 的问题
Jan 23, 2024
b14855d
chore(release): publish 4.0.0-beta.6 --tag=beta
Jan 23, 2024
aac6bb2
fix: 修复鸿蒙运行时导出文件错误的问题
Jan 23, 2024
7cf015d
chore(release): publish 4.0.0-beta.7 --tag=beta
Jan 23, 2024
2e8fbe9
feat: add chooseMedia
zhiqingchen Jan 24, 2024
66f9921
feat(cli): 默认模版修改
Jan 29, 2024
e41f460
Merge branch '4.x' of github.com:NervJS/taro into 4.x
Jan 29, 2024
9a4f13c
feat: 完善鸿蒙端 document 缺失的 api 和一些 api 初始化的逻辑
Jan 29, 2024
cd5639b
Merge branch '4.x' of github.com:NervJS/taro into 4.x
Jan 29, 2024
ab03823
feat: 鸿蒙编译支持 cssmodule
Jan 30, 2024
1060c62
chore(release): publish 4.0.0-beta.8 --tag=beta
Jan 30, 2024
c9965db
Merge remote-tracking branch 'origin/main' into 4.x
ZakaryCode Feb 1, 2024
18e6b41
chore: update engines node >= 18
ZakaryCode Feb 1, 2024
b82587c
fix(test): disabled webpack4 test vue2
ZakaryCode Feb 2, 2024
9c63555
fix: 修复测试用例报错
ZakaryCode Feb 2, 2024
be59eee
fix(transformer): update jest config
ZakaryCode Feb 2, 2024
96f3c3d
fix(test): update serializers logic
ZakaryCode Feb 2, 2024
405fc12
Merge remote-tracking branch 'origin/main' into 4.x
ZakaryCode Feb 18, 2024
7601ac7
fix(lint): update lint
ZakaryCode Feb 18, 2024
1a8e733
fix(ci): 修复 wins 端执行超时
ZakaryCode Feb 18, 2024
ebd4ad7
fix(workspace): exclude dist packages
ZakaryCode Feb 19, 2024
b8571dd
feat(ci): add node version testing
ZakaryCode Feb 19, 2024
ae8d023
fix(ci): ts-node support node18+
ZakaryCode Feb 19, 2024
3dea3c9
fix(ci): sync types err
ZakaryCode Feb 20, 2024
e87d6ab
chore(deps): 修改 targets 并支持 api ci test
ZakaryCode Feb 21, 2024
9dbde0f
feat(ci): exclude some matrix
ZakaryCode Feb 21, 2024
1e7ab53
Merge remote-tracking branch 'origin/main' into 4.x
ZakaryCode Feb 21, 2024
e5eb3e3
feat: 鸿蒙运行时导出对象添加 Events,样式解析插件版本更新
Feb 26, 2024
45add97
Merge branch '4.x' of github.com:NervJS/taro into 4.x
Feb 26, 2024
04d4c82
chore(release): publish 4.0.0-beta.9 --tag=beta
Feb 26, 2024
77893e5
fix(rn): build error not printed
zhiqingchen Feb 26, 2024
b98dded
fix: 修复 wx 转换时变成 Taro.default 导致的报错问题
Feb 26, 2024
cfc4874
Merge branch '4.x' of github.com:NervJS/taro into 4.x
Feb 26, 2024
10ae397
chore(release): publish 4.0.0-alpha.0 --tag=alpha
Feb 26, 2024
eb49632
feat(harmony): support relative router-path (#15277)
baosiqing Feb 26, 2024
7eff66e
test: 测试 CI
Feb 26, 2024
24056f8
chore(release): publish 4.0.0-alpha.1 --tag=alpha
Feb 26, 2024
6a0cec0
Merge branch '4.x' of github.com:NervJS/taro into 4.x
Feb 26, 2024
9eaad98
test: 测试 CI
Feb 26, 2024
db0ea03
chore(release): publish 4.0.0-alpha.2 --tag=alpha
Feb 26, 2024
127ad31
fix: 尝试修复 CI 会用旧的 wasm 覆盖新的文件的问题
Feb 27, 2024
ca25479
chore(release): publish 4.0.0-alpha.3 --tag=alpha
Feb 27, 2024
69c6089
feat: 完善 storage 相关的同步 API
Feb 27, 2024
e253ad2
chore(release): publish 4.0.0-beta.10 --tag=beta
Feb 27, 2024
9c42494
Feat/4.x progress (#15286)
yoturg Feb 28, 2024
79d2cad
fix(plugin-inject): 同步 #14607 的修改
Chen-jj Feb 28, 2024
85c375f
feat(harmony): 支持 oh-package 配置
ZakaryCode Feb 29, 2024
e0a551b
feat(harmony): 生成组件入口文件
ZakaryCode Feb 29, 2024
8faab5d
feat: 完善鸿蒙组件 ScollerView 和 Text 的适配样式
Feb 29, 2024
f5098f9
Merge branch '4.x' of github.com:NervJS/taro into 4.x
Feb 29, 2024
cc302ec
feat(harmony): 支持 ohpm 自动安装
ZakaryCode Mar 1, 2024
8d32ccc
feat(harmony): external oh devs
ZakaryCode Mar 1, 2024
809f891
feat(harmony): 支持 chorePackagePrefix 配置
ZakaryCode Mar 1, 2024
777520c
feat: 变更组件实现方式
Mar 1, 2024
0db7038
Merge branch '4.x' of github.com:NervJS/taro into 4.x
Mar 1, 2024
da89112
feat: 完成一半组件实例化方式的改造
Mar 1, 2024
1ee0fd3
Feat/movable components (#15292)
yoturg Mar 1, 2024
8daee73
feat: 彻底完善组件实例化的变更
Mar 1, 2024
9391fb5
chore(release): publish 4.0.0-beta.11 --tag=beta
Mar 1, 2024
c041998
fix(harmony): pkg main
Mar 4, 2024
f8e2bad
fix(harmony): update path err
Mar 4, 2024
36fbf94
fix(harmony): typing
Mar 4, 2024
af3645d
feat: 完善 ScrollerView 实现
Mar 4, 2024
c167893
feat(harmony): add harmony scope
ZakaryCode Mar 4, 2024
6d9c5fb
feat(harmony): update system method
ZakaryCode Mar 4, 2024
c2c7cc5
fix(harmony): update page head style
ZakaryCode Mar 4, 2024
4b57a53
chore(release): publish 4.0.0-beta.12 --tag=beta
Mar 4, 2024
86b4f39
Feat/harmony before after style (#15300)
heiazu Mar 5, 2024
507f858
feat: 完善 Taro 一些工程化和运行时的实现
Mar 5, 2024
7f44c5a
feat: 完善 Taro 一些工程化和运行时的实现
Mar 5, 2024
9b2a71a
feat: 更新样式解析版本
Mar 5, 2024
b961a2f
chore(release): publish 4.0.0-beta.13 --tag=beta
Mar 5, 2024
6fba874
fix(harmony): page safe area
ZakaryCode Mar 5, 2024
198f640
feat: 完善 dataset 的实现
Mar 6, 2024
5daab4e
Merge branch '4.x' of github.com:NervJS/taro into 4.x
Mar 6, 2024
bb475bd
feat: update lint
ZakaryCode Mar 6, 2024
32d37f0
feat(harmony): export ark platform program
ZakaryCode Mar 6, 2024
045a92f
chore(release): publish 4.0.0-beta.14 --tag=beta
ZakaryCode Mar 6, 2024
a6ee10b
feat: 完善分包页面生成逻辑
Mar 6, 2024
6efdd65
Merge branch '4.x' of github.com:NervJS/taro into 4.x
Mar 6, 2024
811a1db
style: 解决代码格式问题
Mar 6, 2024
8ca1918
fix: 修复代码一些类型没有兜底的逻辑
Mar 6, 2024
d819300
Feat/movable components (#15306)
yoturg Mar 6, 2024
31462a0
feat: 增加嵌套样式合并的运行时逻辑
heiazu Mar 6, 2024
c79b47e
feat: 增加嵌套样式合并的运行时逻辑 (#15308)
heiazu Mar 6, 2024
c7532ca
fix: 修复 setStyle 里面的错误判断
Mar 6, 2024
056d6df
Merge branch '4.x' of github.com:NervJS/taro into 4.x
Mar 6, 2024
5706dd3
feat: 支持 display none
Mar 6, 2024
8955a4b
chore(release): publish 4.0.0-beta.15 --tag=beta
Mar 6, 2024
4aafd09
fix: 修复鸿蒙报错和一些兜底问题
Mar 6, 2024
7b69e53
chore(release): publish 4.0.0-beta.16 --tag=beta
Mar 6, 2024
97d6ac7
feat: 优化嵌套能力,修复部分bug,更新css解析插件版本
heiazu Mar 6, 2024
e847371
chore: eslint fix
heiazu Mar 6, 2024
c077b30
Merge branch '4.x' into feat/harmony-nesting-css
heiazu Mar 6, 2024
c9b5c18
chore: 修改配置项
heiazu Mar 6, 2024
d4e6040
chore(release): publish 4.0.0-beta.17 --tag=beta
heiazu Mar 6, 2024
ee8071a
fix(vite): 支持使用端后缀文件
ZakaryCode Mar 7, 2024
d8a6a90
fix: 修复 display:none 不生效的问题
Mar 7, 2024
ddf2977
Merge branch '4.x' of github.com:NervJS/taro into 4.x
Mar 7, 2024
ed3dafa
fix: 修复页面默认滚动的问题
Mar 7, 2024
fd9ea8b
feat(harmony): add page entryOption
ZakaryCode Mar 7, 2024
33d2dbb
fix(harmony): tabbar entry path
ZakaryCode Mar 7, 2024
90c8e6f
fix: 修复 page template 没有判断 tarbar 的问题
Mar 7, 2024
370b51b
Merge branch '4.x' of github.com:NervJS/taro into 4.x
Mar 7, 2024
a950926
fix: 修复鸿蒙伪类、级联的Bug;修复transform的样式解析
heiazu Mar 7, 2024
8091772
chore: 修改types
heiazu Mar 7, 2024
81ea304
fix: 修复 richText 组件报错
Mar 7, 2024
311d55d
chore(release): publish 4.0.0-beta.18 --tag=beta
Mar 7, 2024
fe5e41d
feat: 反转功能添加 computed 的处理
Mar 7, 2024
34cbb83
fix: 修复伪类不更新的bug
heiazu Mar 7, 2024
b55c0a5
fix: 修复雪碧图、添加背景图偏移算法
heiazu Mar 7, 2024
34d46b5
fix(ets): update that var
ZakaryCode Mar 8, 2024
01769e6
feat(harmony): 新增类型继承入口
ZakaryCode Mar 8, 2024
503f4ee
fix: 修复级联查询的bug
heiazu Mar 8, 2024
4e8a3ec
feat: 增加vertical-align的解析
heiazu Mar 8, 2024
8c287e1
feat(harmony): 调整运行时注入逻辑
ZakaryCode Mar 8, 2024
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
8d2c141
refactor: 移除对 Vue2 的支持
Chen-jj Apr 1, 2024
6df4810
feat(vite): harmony 新增 modifyPageMethods 支持
ZakaryCode Apr 1, 2024
0bf3430
refactor: 移除 mini-runner 和 webpack-runner
Chen-jj Apr 1, 2024
fad023e
Merge branch '4.x' into refactor/dependencies
Chen-jj Apr 1, 2024
99acb42
refactor: 移除冗余代码
Chen-jj Apr 2, 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
  •  
  •  
  •  
8 changes: 1 addition & 7 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 All @@ -14,14 +15,7 @@ packages/taro-components/loader
packages/taro-components/src/components
packages/taro-components-library-react/components.ts
packages/taro-components-library-vue3/components.ts
packages/taro-components-library-vue3/components.ts


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-mini-runner/src/quickapp
packages/taro-webpack5-runner/src/__tests__/__snapshots__
packages/taro-webpack5-runner/src/__tests__/fixtures
packages/taro-webpack5-runner/src/__tests__/bundled
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
56 changes: 37 additions & 19 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
files: ./packages/taro-webpack5-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