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(docs):增加Button在快应用doc中属性兼容说明 #5189

Closed
wants to merge 177 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
177 commits
Select commit Hold shift + click to select a range
df81324
chore(deps): bump postcss-modules-local-by-default from 1.2.0 to 3.0.…
dependabot-preview[bot] Dec 11, 2019
6db5f39
fix(components): 修复 Image 组件在 react 环境下报错的问题
luckyadam Dec 12, 2019
49a7a92
fix(components): h5 image 删除无关代码 (#4998)
Lostsory Dec 13, 2019
5a57db5
feat: checkout from auto-docs
ZakaryCode Dec 15, 2019
b7fae4a
feat(cli): 尝试接入 webpack 来编译各端小程序
luckyadam May 13, 2019
d5de333
feat(cli): 拆分逻辑到 loader
luckyadam May 15, 2019
6ba622a
feat(cli): 将 app/页面/组件 添加到入口文件进行编译
luckyadam May 23, 2019
e04f6fe
refactor(transformer): 任何情况返回都返回相同的 result
yuche May 28, 2019
728c691
fix(transformer): 修复测试用例
yuche May 28, 2019
30a518d
refactor(transformer): isApp 不再是必填参数
yuche May 28, 2019
5d74069
fix(transformer): 支持直接 import default
yuche May 28, 2019
ae3119e
fix(cli): 编译器参数调整
luckyadam May 28, 2019
a72b368
fix(cli): lerna 加入 taro-mini-runner && 接入 webpack 生成小程序文件
luckyadam May 28, 2019
bbc786c
refactor(transformer): isNormal 变为可选参数
yuche May 29, 2019
86c95c5
fix(cli): 普通文件经过编译器编译必须传入 isNormal
luckyadam May 29, 2019
a8ed03d
feat(cli): 调整文件编译
luckyadam May 29, 2019
7cd5bf9
feat(taro-mini-runner): 拆分文件编译成为 plugin
luckyadam Jun 4, 2019
145459f
feat(taro-mini-runner): 引入拆分的公共 chunks
luckyadam Jun 4, 2019
6ce4846
feat(taro-mini-runner): 生成页面以及组件的 usingComponents 配置
luckyadam Jun 4, 2019
c7a53e5
feat(taro-mini-runner): 生成多端类型文件
luckyadam Jun 5, 2019
7874369
feat(taro-mini-runner): 优化文件生成
luckyadam Jun 5, 2019
4cb28b3
feat(taro-mini-runner): 如果是组件需要补充 component:true 配置
luckyadam Jun 5, 2019
617c489
fix(cli): 支持引用 node_modules 中组件
luckyadam Jun 14, 2019
e920172
feat(mini-runner): 增加 Taro 模块专有处理插件
luckyadam Jun 17, 2019
b405011
feat(cli): 增加 tapable 包
luckyadam Jun 17, 2019
2290aeb
fix(cli): 修复代码合并的问题
luckyadam Jun 17, 2019
92e95c8
fix(transformer): 修复错误类型
yuche Jun 17, 2019
bba9951
feat(cli): 借助 tapable 改造
luckyadam Jun 17, 2019
82b39b6
feat(cli): cli 支持事件 && 小程序编译配置向 H5 看齐
luckyadam Jun 19, 2019
3ab3aab
fix(cli): 修复目录创建
luckyadam Jun 24, 2019
c9fa04d
feat(taro): 调整小程序和 H5 的编译配置
luckyadam Jun 25, 2019
f20bf0a
feat(taro-cli): 调整 rn 编译配置
luckyadam Jun 25, 2019
bb56da6
feat(mini-runner): 支持分包
luckyadam Jun 26, 2019
4842b0a
fix(mini-runner): npm 中文件不会经过 taro 包替换操作
luckyadam Jun 26, 2019
1e5352a
feat(mini-runner): 支持编译 tabBar 上引用的资源编译
luckyadam Jun 26, 2019
a937480
feat(mini-runner): 支持与原生小程序代码混写
luckyadam Jun 26, 2019
b02b2a9
fix(mini-runner): 只有 taro 的包不能经过依赖包名替换
luckyadam Jul 4, 2019
c8b89fb
fix(mini-runner): 修复引用 npm 中组件间存在依赖时依赖路径解析错误的问题
luckyadam Jul 10, 2019
a649c4e
fix(mini-runner): 打包优化,引用自 npm 包中的组件不抽离至 vendors 中
luckyadam Jul 10, 2019
adcc78b
chore: merge master
luckyadam Aug 20, 2019
08bc435
fix(taro): 小程序 webpack 编译静态文件路径
luckyadam Aug 26, 2019
c572191
fix(mini-runner): 优化 webpack 编译时样式处理
luckyadam Aug 26, 2019
9bfea52
feat(mini-runner): 加入 watch
luckyadam Aug 27, 2019
f99600c
fix(cli): 修复 watch 时文件修改不对的问题
luckyadam Sep 3, 2019
7393ccb
chore: merge master
luckyadam Sep 4, 2019
f1e27c7
feat(taro): 加入快应用编译支持
luckyadam Sep 5, 2019
f4b6661
fix(mini-runner): 提前解析快应用页面
luckyadam Sep 8, 2019
98995dc
feat(mini-runner): 生成快应用页面及组件
luckyadam Sep 9, 2019
64e090a
feat(mini-runner): 保证快应用文件生成正确
luckyadam Sep 16, 2019
2c561ad
feat(mini-runner): 优化 watch
luckyadam Sep 16, 2019
45ec8eb
fix(mini-runner): 修复 watch bug
luckyadam Sep 18, 2019
4a69f8b
chore: merge
luckyadam Sep 18, 2019
ec0f8a9
fix(jd): 修复合并代码导致的京东小程序的编译问题
luckyadam Sep 18, 2019
590f2a5
chore: 修复语法报错问题
luckyadam Sep 18, 2019
45d4571
fix(mini-runner): 修复普通小程序编译的问题
luckyadam Sep 23, 2019
8830aeb
fix(webpack): 修复文件压缩的问题
luckyadam Sep 24, 2019
941d127
feat(taro): cli 配合 mini-runner 重构 && 支持使用 mini-runner 编译插件
luckyadam Oct 8, 2019
bb2e71c
fix(mini-runner): 修复小程序编译报错
luckyadam Oct 15, 2019
e3da746
fix(mini-runner): 支持快应用编译后模板与样式的检测
luckyadam Oct 15, 2019
2cd4ef7
fix(mini-runner): 修复对 css modules 的支持
luckyadam Oct 15, 2019
2d63abb
fix: pxtransform disable on quick-app
ZakaryCode Oct 17, 2019
31fec5d
fix(cli): 修复 doctor 对 config 的检测
luckyadam Oct 17, 2019
259c35e
fix(cli): 清理代码
luckyadam Oct 17, 2019
e4c474b
fix(mini-runner): 加上文件编译提示
luckyadam Oct 22, 2019
0e75d8a
fix(cli): 修复配置文件中读取不到 process.env.TARO_ENV 的问题
luckyadam Oct 22, 2019
996fb01
fix(taro-quickapp): 修复快应用事件绑定异常问题
luckyadam Oct 22, 2019
924d10b
fix: position linter for quickapp 1060+
ZakaryCode Oct 22, 2019
9598149
chore(taro): 规范类型定义文件命名
Garfield550 Oct 22, 2019
5d1cc41
fix(mini-runner): 修复快应用编译后页面标题展示不正确的问题
luckyadam Oct 22, 2019
a3d9438
fix(taro): 修复快应用下拉刷新问题
luckyadam Oct 22, 2019
a54f72a
fix(cli): 更新默认模板
luckyadam Oct 23, 2019
ceb1465
fix(mini-runner): 修复 builder 的 hooks 调用
luckyadam Oct 23, 2019
b39880b
docs: 更新新的配置文档
luckyadam Oct 23, 2019
cc49070
fix(mini-runner): 修复 tabbar 编译及组件 watch 的问题
luckyadam Oct 24, 2019
5d1d506
feat: audio context
ZakaryCode Oct 24, 2019
e7d66dd
feat: mock for quickapp
ZakaryCode Oct 27, 2019
fa8d779
fix: quickapp api upload from docs
ZakaryCode Oct 28, 2019
fe5670c
chore: merge master
luckyadam Oct 28, 2019
ebf46e9
fix(mini-runner): 修复快应用打包报错的问题
luckyadam Oct 28, 2019
ecdb08f
fix(components-qa): 修复页面 onReachBottom 事件不触发的问题
luckyadam Oct 29, 2019
4cbe540
fix(quickapp): pull-down-refresh page-scroll
ZakaryCode Oct 31, 2019
dd71cde
feat: stop trans asset for quickapp
ZakaryCode Oct 31, 2019
f753a57
fix: somethings no need
ZakaryCode Oct 31, 2019
9603e43
fix(mini-runner): 移除无用代码
luckyadam Nov 5, 2019
7cf84a4
chore(release): publish v2.0.0-beta.0
luckyadam Nov 5, 2019
3962c7b
chore: changelog
luckyadam Nov 5, 2019
bb230bb
merge
luckyadam Nov 12, 2019
c402202
chore(release): publish v2.0.0-beta.1
luckyadam Nov 13, 2019
850182a
chore: changelog
luckyadam Nov 13, 2019
e2d298f
fix(mini-runner): 修复对 alias 的支持
luckyadam Nov 14, 2019
78f9fb6
chore(release): publish v2.0.0-beta.2
luckyadam Nov 14, 2019
964e9c2
chore: changelog && docs
luckyadam Nov 14, 2019
11f3fed
fix(taro-cli): update package list 新增 @tarojs/mini-runner,对列表排序
Garfield550 Nov 15, 2019
e6bcb76
docs: 更新异步编程文档
luckyadam Nov 18, 2019
15ff217
feat(docs): 更新 2.0 版本使用 async-await 的文档 #4837
Garfield550 Nov 19, 2019
c789f88
fix(mini-runner): 组件引入支持统一从一个入口文件中引入
luckyadam Nov 19, 2019
9fed96a
fix(mini-runner): 更新编译时提示
luckyadam Nov 19, 2019
4b4ade1
chore(release): publish v2.0.0-beta.3
luckyadam Nov 19, 2019
500e919
chore: changelog
luckyadam Nov 19, 2019
6b372c3
docs(readme): 增加版本选择提示
Garfield550 Nov 19, 2019
37ee662
chore: 更新 i18n 文件
Garfield550 Nov 19, 2019
7fb2d1a
fix(cli): 更新默认模板
luckyadam Nov 21, 2019
8b51f33
fix(template): 更新 Taro 2.0 的模版和下载地址 #4837
Garfield550 Nov 21, 2019
3e15425
feat(taro-cli): 配置文件分开存放,优化 taro config 输出
Garfield550 Nov 21, 2019
b9c6ffd
feat(components-qa): 增强快应用button组件,增加属性判断及点击变色等 (#4882)
Nov 21, 2019
4a8a824
chore(release): publish v2.0.0-beta.4
luckyadam Nov 21, 2019
ba7b79d
chore: changelog && docs
luckyadam Nov 21, 2019
e70df39
fix(mini-runner): 修复小程序编译时样式中引用静态资源转换为 base64
luckyadam Nov 27, 2019
dbc5bec
fix(mini-runner): 修复 watch 时文件报错导致无法重新编译的问题,fix #4949
luckyadam Nov 28, 2019
6f40bb9
docs: 去除已经废除的h5.webpack配置
Littly Nov 28, 2019
44fcbdd
fix(cli): 修正快应用依赖项安装命令在windows不兼容问题 (#4954)
Nov 28, 2019
46b171e
fix(mini-runner): 快应用页面路径编译错误
luckyadam Nov 28, 2019
64ca7a3
fix(components-qa): 改进 button 动画效果展示,引入 css 属性描述文件 (#4898)
Nov 30, 2019
aa61643
fix修正快应用Manifest配置文件,在windows下json转换时反斜杆‘\\’路径问题 (#4979)
Dec 2, 2019
e9ad2ab
fix(mini-runner): 修正快应用pages中ux文件未正确生成问题 (#4969)
Dec 2, 2019
5fab80c
fix(cli): 解决 cli 编译时缺少 @types/react 依赖问题 (#4997)
Dec 3, 2019
2fd3b20
fix(mini-runner): 修复 sass 变量失效的问题,close #4893
luckyadam Dec 3, 2019
244cdd3
fix(mini-runner): 加入 preval 支持
luckyadam Dec 3, 2019
467f496
fix(mini-runner): 修复 windows 下编译后 taro 引用错误的问题
luckyadam Dec 3, 2019
09fb396
fix(mini-runner): 组件中 $componentPath 路径生成不对
luckyadam Dec 3, 2019
ad346c2
fix(mini-runner): 组件引用支持 import as 语法
luckyadam Dec 3, 2019
b6121ab
chore(release): publish v2.0.0-beta.5
luckyadam Dec 3, 2019
7cf600d
chore: changelog && docs
luckyadam Dec 3, 2019
cc6ecc5
fix(mini-runner): 修复分包页面丢失的问题
luckyadam Dec 4, 2019
2d5d815
chore(release): publish v2.0.0-beta.6
luckyadam Dec 4, 2019
76ddfd9
chore: changelog && docs
luckyadam Dec 4, 2019
8d62018
fix(taro-webpack-runner): 修复 sassLoaderOption 未定义的问题
Garfield550 Dec 5, 2019
d50a70c
fix(mini-runner): 优化 watch 时文件编译速度
luckyadam Dec 5, 2019
f163600
fix(mini-runner): 修复页面 hooks config 失效问题
luckyadam Dec 5, 2019
5b8b2eb
feat(taro-runner-utils): 添加 @tarojs/runner-utils 包
Garfield550 Dec 5, 2019
5b9ac34
fix(taro-runner-utils): 优化代码,修复找不到类型定义的问题
Garfield550 Dec 6, 2019
ebfaf60
feat: webpack-runner 和 mini-runner 代码优化
Garfield550 Dec 6, 2019
258b77f
feat(taro-runner-utils): 添加单元测试和优化注释
Garfield550 Dec 6, 2019
751c5a3
fix(taro): 增加递归查找中止条件,修正拼写错误 (#5045)
Dec 10, 2019
dd9a117
fix(mini-runner): 增加快应用公共属性的自动更新,优化button动画直接调用 (#5044)
Dec 10, 2019
843e8fd
fix(mini-runner): 修复包未安装不报错的问题
luckyadam Dec 11, 2019
bd9cd93
fix(mini-runner): 修复引用原生组件报错的问题
luckyadam Dec 11, 2019
7936480
fix(mini-runner): 修复引用原生组件编译后样式文件缺失的问题
luckyadam Dec 11, 2019
d6035a6
fix(mini-runner): 暴露 commonChunks 配置以供自定义公共 chunks 生成
luckyadam Dec 11, 2019
80c19af
chore(release): publish v2.0.0-beta.7
luckyadam Dec 11, 2019
3977e45
fix(mini-runner): 修复使用 preval 报错的问题
luckyadam Dec 12, 2019
7763ce8
fix: for video objectFit
ZakaryCode Dec 12, 2019
d5b2511
chore(deps-dev): bump enzyme from 3.9.0 to 3.10.0 (#4875)
dependabot-preview[bot] Dec 12, 2019
a15865a
chore(deps-dev): bump babel-preset-jest from 22.4.4 to 25.0.0 (#4623)
dependabot-preview[bot] Dec 12, 2019
95d39a5
chore(release): publish v2.0.0-beta.8
luckyadam Dec 12, 2019
5e5a00b
chore: changelog && docs
luckyadam Dec 12, 2019
45b3dac
docs: 更新 readme
luckyadam Dec 12, 2019
6e0632b
chore(deps): [security] bump mixin-deep from 1.3.1 to 1.3.2 (#5073)
dependabot-preview[bot] Dec 13, 2019
cbce026
chore(deps): bump ejs from 2.7.1 to 3.0.1 (#5075)
dependabot-preview[bot] Dec 13, 2019
fee54ec
docs: 增加特别鸣谢
luckyadam Dec 13, 2019
29242ff
fix(mini-runner): 修复 defineConstants 小程序表现与 H5 不一致问题 close #5078
Garfield550 Dec 13, 2019
97dc49c
chore(deps-dev): bump @types/enzyme from 3.9.1 to 3.10.4 (#5082)
dependabot-preview[bot] Dec 14, 2019
2231293
chore(deps-dev): bump @types/webpack from 4.4.31 to 4.41.0 (#5081)
dependabot-preview[bot] Dec 14, 2019
c7fff24
fix: use rimraf instead of rm to fixed Windows build error
Garfield550 Dec 16, 2019
72a723b
chore(deps): bump klaw from 2.1.1 to 3.0.0 (#5097)
dependabot-preview[bot] Dec 17, 2019
93da596
fix(cli): 2.0.0-beta.8. 编译RN报错 'babel' of undefined close #5093
Pines-Cheng Dec 17, 2019
ae78a5e
chore(deps-dev): bump rollup-plugin-postcss from 1.6.3 to 2.0.3 (#5113)
dependabot-preview[bot] Dec 18, 2019
368f2d5
chore(release): publish v2.0.0-beta.9
yuche Dec 18, 2019
7895374
chore: changelog & docs
yuche Dec 18, 2019
f549ed0
fix(types): add enableFlex to ScrollViewProps (#5142)
SunskyXH Dec 20, 2019
83f53e8
快应用自定义组件调用,进行相对路径转换
Dec 20, 2019
d5efc27
增加Button Loading动画类型选择,默认与原生组件保持一致
Dec 20, 2019
879b6c7
chore(release): publish v2.0.0-beta.10
yuche Dec 20, 2019
515b17b
chore: changelog & docs
yuche Dec 20, 2019
7d05d60
docs: update readme
luckyadam Dec 22, 2019
01f5951
fix(mini-runner): 编译时需要移除对组件文件的引用
luckyadam Dec 23, 2019
93b8970
fix(cli): 插件编译失败,close #5149
luckyadam Dec 23, 2019
95e5715
fix(mini-runner): 修复 watch 时增加组件文件的 bug,close #5140
luckyadam Dec 23, 2019
7f8a82f
fix(mini-runner): 编译时移除组件文件引用,遗漏了 npm 包中组件,close #5139
luckyadam Dec 24, 2019
57c425a
fix(taro): update getStorage return typings (#5170)
waiwaic Dec 24, 2019
6aa179a
fix(mini-runner): 降低 babel-plugin-preval 版本以保证使用 async await 时不报错
luckyadam Dec 24, 2019
9ca31a1
chore(transformer-wx): 缺少 babel-plugin-preval 包
luckyadam Dec 24, 2019
a784e2e
fix(cli): 增加运行提示
luckyadam Dec 24, 2019
2529561
fix(mini-runner): 修复多端文件引用的问题,close #5175
luckyadam Dec 25, 2019
6269c26
chore(release): publish v2.0.0-beta.11
luckyadam Dec 25, 2019
90f9950
chore: changelog && docs
luckyadam Dec 25, 2019
aba5c19
增加Button在快应用doc中属性兼容说明
Dec 26, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
137 changes: 136 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,140 @@
<a name=""></a>
# [](https://github.com/NervJS/taro/compare/v1.3.33...v) (2019-12-25)
# [](https://github.com/NervJS/taro/compare/v2.0.0-beta.11...v) (2019-12-25)



<a name="2.0.0-beta.11"></a>
# [2.0.0-beta.11](https://github.com/NervJS/taro/compare/v1.3.33...v2.0.0-beta.11) (2019-12-25)


### Bug Fixes

* **cli:** 2.0.0-beta.8. 编译RN报错 'babel' of undefined close [#5093](https://github.com/NervJS/taro/issues/5093) ([93da596](https://github.com/NervJS/taro/commit/93da596))
* **cli:** 修正快应用依赖项安装命令在windows不兼容问题 ([#4954](https://github.com/NervJS/taro/issues/4954)) ([44fcbdd](https://github.com/NervJS/taro/commit/44fcbdd))
* **cli:** 增加运行提示 ([a784e2e](https://github.com/NervJS/taro/commit/a784e2e))
* **cli:** 插件编译失败,close [#5149](https://github.com/NervJS/taro/issues/5149) ([93b8970](https://github.com/NervJS/taro/commit/93b8970))
* **cli:** 更新默认模板 ([7fb2d1a](https://github.com/NervJS/taro/commit/7fb2d1a))
* **cli:** 解决 cli 编译时缺少 [@types](https://github.com/types)/react 依赖问题 ([#4997](https://github.com/NervJS/taro/issues/4997)) ([5fab80c](https://github.com/NervJS/taro/commit/5fab80c))
* **components-qa:** 改进 button 动画效果展示,引入 css 属性描述文件 ([#4898](https://github.com/NervJS/taro/issues/4898)) ([64ca7a3](https://github.com/NervJS/taro/commit/64ca7a3))
* **mini-runner:** 优化 watch 时文件编译速度 ([d50a70c](https://github.com/NervJS/taro/commit/d50a70c))
* **mini-runner:** 修复 defineConstants 小程序表现与 H5 不一致问题 close [#5078](https://github.com/NervJS/taro/issues/5078) ([29242ff](https://github.com/NervJS/taro/commit/29242ff))
* **mini-runner:** 修复 sass 变量失效的问题,close [#4893](https://github.com/NervJS/taro/issues/4893) ([2fd3b20](https://github.com/NervJS/taro/commit/2fd3b20))
* **mini-runner:** 修复 watch 时增加组件文件的 bug,close [#5140](https://github.com/NervJS/taro/issues/5140) ([95e5715](https://github.com/NervJS/taro/commit/95e5715))
* **mini-runner:** 修复 watch 时文件报错导致无法重新编译的问题,fix [#4949](https://github.com/NervJS/taro/issues/4949) ([dbc5bec](https://github.com/NervJS/taro/commit/dbc5bec))
* **mini-runner:** 修复 windows 下编译后 taro 引用错误的问题 ([467f496](https://github.com/NervJS/taro/commit/467f496))
* **mini-runner:** 修复使用 preval 报错的问题 ([3977e45](https://github.com/NervJS/taro/commit/3977e45))
* **mini-runner:** 修复分包页面丢失的问题 ([cc6ecc5](https://github.com/NervJS/taro/commit/cc6ecc5))
* **mini-runner:** 修复包未安装不报错的问题 ([843e8fd](https://github.com/NervJS/taro/commit/843e8fd))
* **mini-runner:** 修复多端文件引用的问题,close [#5175](https://github.com/NervJS/taro/issues/5175) ([2529561](https://github.com/NervJS/taro/commit/2529561))
* **mini-runner:** 修复对 alias 的支持 ([e2d298f](https://github.com/NervJS/taro/commit/e2d298f))
* **mini-runner:** 修复小程序编译时样式中引用静态资源转换为 base64 ([e70df39](https://github.com/NervJS/taro/commit/e70df39))
* **mini-runner:** 修复引用原生组件报错的问题 ([bd9cd93](https://github.com/NervJS/taro/commit/bd9cd93))
* **mini-runner:** 修复引用原生组件编译后样式文件缺失的问题 ([7936480](https://github.com/NervJS/taro/commit/7936480))
* **mini-runner:** 修复页面 hooks config 失效问题 ([f163600](https://github.com/NervJS/taro/commit/f163600))
* **mini-runner:** 修正快应用pages中ux文件未正确生成问题 ([#4969](https://github.com/NervJS/taro/issues/4969)) ([e9ad2ab](https://github.com/NervJS/taro/commit/e9ad2ab))
* **mini-runner:** 加入 preval 支持 ([244cdd3](https://github.com/NervJS/taro/commit/244cdd3))
* **mini-runner:** 增加快应用公共属性的自动更新,优化button动画直接调用 ([#5044](https://github.com/NervJS/taro/issues/5044)) ([dd9a117](https://github.com/NervJS/taro/commit/dd9a117))
* **mini-runner:** 快应用页面路径编译错误 ([46b171e](https://github.com/NervJS/taro/commit/46b171e))
* **mini-runner:** 暴露 commonChunks 配置以供自定义公共 chunks 生成 ([d6035a6](https://github.com/NervJS/taro/commit/d6035a6))
* **mini-runner:** 更新编译时提示 ([9fed96a](https://github.com/NervJS/taro/commit/9fed96a))
* **mini-runner:** 移除无用代码 ([9603e43](https://github.com/NervJS/taro/commit/9603e43))
* **mini-runner:** 组件中 $componentPath 路径生成不对 ([09fb396](https://github.com/NervJS/taro/commit/09fb396))
* **mini-runner:** 组件引入支持统一从一个入口文件中引入 ([c789f88](https://github.com/NervJS/taro/commit/c789f88))
* **mini-runner:** 组件引用支持 import as 语法 ([ad346c2](https://github.com/NervJS/taro/commit/ad346c2))
* **mini-runner:** 编译时移除组件文件引用,遗漏了 npm 包中组件,close [#5139](https://github.com/NervJS/taro/issues/5139) ([7f8a82f](https://github.com/NervJS/taro/commit/7f8a82f))
* **mini-runner:** 编译时需要移除对组件文件的引用 ([01f5951](https://github.com/NervJS/taro/commit/01f5951))
* **mini-runner:** 降低 babel-plugin-preval 版本以保证使用 async await 时不报错 ([6aa179a](https://github.com/NervJS/taro/commit/6aa179a))
* **taro:** update getStorage return typings ([#5170](https://github.com/NervJS/taro/issues/5170)) ([57c425a](https://github.com/NervJS/taro/commit/57c425a))
* **types:** add enableFlex to ScrollViewProps ([#5142](https://github.com/NervJS/taro/issues/5142)) ([f549ed0](https://github.com/NervJS/taro/commit/f549ed0))
* for video objectFit ([7763ce8](https://github.com/NervJS/taro/commit/7763ce8))
* somethings no need ([f753a57](https://github.com/NervJS/taro/commit/f753a57))
* use rimraf instead of rm to fixed Windows build error ([c7fff24](https://github.com/NervJS/taro/commit/c7fff24))
* **cli:** lerna 加入 taro-mini-runner && 接入 webpack 生成小程序文件 ([a72b368](https://github.com/NervJS/taro/commit/a72b368))
* **cli:** 修复 doctor 对 config 的检测 ([31fec5d](https://github.com/NervJS/taro/commit/31fec5d))
* **cli:** 修复 watch 时文件修改不对的问题 ([f99600c](https://github.com/NervJS/taro/commit/f99600c))
* **cli:** 修复代码合并的问题 ([2290aeb](https://github.com/NervJS/taro/commit/2290aeb))
* **cli:** 修复目录创建 ([3ab3aab](https://github.com/NervJS/taro/commit/3ab3aab))
* **cli:** 修复配置文件中读取不到 process.env.TARO_ENV 的问题 ([0e75d8a](https://github.com/NervJS/taro/commit/0e75d8a))
* **cli:** 支持引用 node_modules 中组件 ([617c489](https://github.com/NervJS/taro/commit/617c489))
* **cli:** 普通文件经过编译器编译必须传入 isNormal ([86c95c5](https://github.com/NervJS/taro/commit/86c95c5))
* **cli:** 更新默认模板 ([a54f72a](https://github.com/NervJS/taro/commit/a54f72a))
* **cli:** 清理代码 ([259c35e](https://github.com/NervJS/taro/commit/259c35e))
* **cli:** 编译器参数调整 ([ae3119e](https://github.com/NervJS/taro/commit/ae3119e))
* **components:** h5 image 删除无关代码 ([#4998](https://github.com/NervJS/taro/issues/4998)) ([49a7a92](https://github.com/NervJS/taro/commit/49a7a92))
* **components:** 修复 Image 组件在 react 环境下报错的问题 ([6db5f39](https://github.com/NervJS/taro/commit/6db5f39))
* **components-qa:** 修复页面 onReachBottom 事件不触发的问题 ([ecdb08f](https://github.com/NervJS/taro/commit/ecdb08f))
* **jd:** 修复合并代码导致的京东小程序的编译问题 ([ec0f8a9](https://github.com/NervJS/taro/commit/ec0f8a9))
* **mini-runner:** npm 中文件不会经过 taro 包替换操作 ([4842b0a](https://github.com/NervJS/taro/commit/4842b0a))
* **mini-runner:** 优化 webpack 编译时样式处理 ([c572191](https://github.com/NervJS/taro/commit/c572191))
* **mini-runner:** 修复 builder 的 hooks 调用 ([ceb1465](https://github.com/NervJS/taro/commit/ceb1465))
* **mini-runner:** 修复 tabbar 编译及组件 watch 的问题 ([cc49070](https://github.com/NervJS/taro/commit/cc49070))
* **mini-runner:** 修复 watch bug ([45ec8eb](https://github.com/NervJS/taro/commit/45ec8eb))
* **mini-runner:** 修复对 css modules 的支持 ([2cd4ef7](https://github.com/NervJS/taro/commit/2cd4ef7))
* **mini-runner:** 修复小程序编译报错 ([bb2e71c](https://github.com/NervJS/taro/commit/bb2e71c))
* **mini-runner:** 修复引用 npm 中组件间存在依赖时依赖路径解析错误的问题 ([c8b89fb](https://github.com/NervJS/taro/commit/c8b89fb))
* **mini-runner:** 修复快应用打包报错的问题 ([ebf46e9](https://github.com/NervJS/taro/commit/ebf46e9))
* **quickapp:** pull-down-refresh page-scroll ([4cbe540](https://github.com/NervJS/taro/commit/4cbe540))
* quickapp api upload from docs ([fa8d779](https://github.com/NervJS/taro/commit/fa8d779))
* **mini-runner:** 修复快应用编译后页面标题展示不正确的问题 ([5d1cc41](https://github.com/NervJS/taro/commit/5d1cc41))
* **mini-runner:** 修复普通小程序编译的问题 ([45d4571](https://github.com/NervJS/taro/commit/45d4571))
* **mini-runner:** 加上文件编译提示 ([e4c474b](https://github.com/NervJS/taro/commit/e4c474b))
* **mini-runner:** 只有 taro 的包不能经过依赖包名替换 ([b02b2a9](https://github.com/NervJS/taro/commit/b02b2a9))
* **mini-runner:** 打包优化,引用自 npm 包中的组件不抽离至 vendors 中 ([a649c4e](https://github.com/NervJS/taro/commit/a649c4e))
* **mini-runner:** 提前解析快应用页面 ([f4b6661](https://github.com/NervJS/taro/commit/f4b6661))
* **mini-runner:** 支持快应用编译后模板与样式的检测 ([e3da746](https://github.com/NervJS/taro/commit/e3da746))
* **taro:** 修复快应用下拉刷新问题 ([a3d9438](https://github.com/NervJS/taro/commit/a3d9438))
* **taro:** 增加递归查找中止条件,修正拼写错误 ([#5045](https://github.com/NervJS/taro/issues/5045)) ([751c5a3](https://github.com/NervJS/taro/commit/751c5a3))
* **taro-cli:** update package list 新增 [@tarojs](https://github.com/tarojs)/mini-runner,对列表排序 ([11f3fed](https://github.com/NervJS/taro/commit/11f3fed))
* **taro-runner-utils:** 优化代码,修复找不到类型定义的问题 ([5b9ac34](https://github.com/NervJS/taro/commit/5b9ac34))
* **taro-webpack-runner:** 修复 sassLoaderOption 未定义的问题 ([8d62018](https://github.com/NervJS/taro/commit/8d62018))
* **template:** 更新 Taro 2.0 的模版和下载地址 [#4837](https://github.com/NervJS/taro/issues/4837) ([8b51f33](https://github.com/NervJS/taro/commit/8b51f33))
* position linter for quickapp 1060+ ([924d10b](https://github.com/NervJS/taro/commit/924d10b))
* **taro:** 小程序 webpack 编译静态文件路径 ([08bc435](https://github.com/NervJS/taro/commit/08bc435))
* **taro-quickapp:** 修复快应用事件绑定异常问题 ([996fb01](https://github.com/NervJS/taro/commit/996fb01))
* pxtransform disable on quick-app ([2d63abb](https://github.com/NervJS/taro/commit/2d63abb))
* **transformer:** 修复测试用例 ([728c691](https://github.com/NervJS/taro/commit/728c691))
* **transformer:** 修复错误类型 ([92e95c8](https://github.com/NervJS/taro/commit/92e95c8))
* **transformer:** 支持直接 import default ([5d74069](https://github.com/NervJS/taro/commit/5d74069))
* **webpack:** 修复文件压缩的问题 ([8830aeb](https://github.com/NervJS/taro/commit/8830aeb))


### Features

* **taro-runner-utils:** 添加单元测试和优化注释 ([258b77f](https://github.com/NervJS/taro/commit/258b77f))
* webpack-runner 和 mini-runner 代码优化 ([ebfaf60](https://github.com/NervJS/taro/commit/ebfaf60))
* **cli:** cli 支持事件 && 小程序编译配置向 H5 看齐 ([82b39b6](https://github.com/NervJS/taro/commit/82b39b6))
* **cli:** 借助 tapable 改造 ([bba9951](https://github.com/NervJS/taro/commit/bba9951))
* **cli:** 增加 tapable 包 ([b405011](https://github.com/NervJS/taro/commit/b405011))
* **cli:** 将 app/页面/组件 添加到入口文件进行编译 ([6ba622a](https://github.com/NervJS/taro/commit/6ba622a))
* **cli:** 尝试接入 webpack 来编译各端小程序 ([b7fae4a](https://github.com/NervJS/taro/commit/b7fae4a))
* **cli:** 拆分逻辑到 loader ([d5de333](https://github.com/NervJS/taro/commit/d5de333))
* **cli:** 调整文件编译 ([a8ed03d](https://github.com/NervJS/taro/commit/a8ed03d))
* **components-qa:** 增强快应用button组件,增加属性判断及点击变色等 ([#4882](https://github.com/NervJS/taro/issues/4882)) ([b9c6ffd](https://github.com/NervJS/taro/commit/b9c6ffd))
* **docs:** 更新 2.0 版本使用 async-await 的文档 [#4837](https://github.com/NervJS/taro/issues/4837) ([15ff217](https://github.com/NervJS/taro/commit/15ff217))
* **mini-runner:** 优化 watch ([2c561ad](https://github.com/NervJS/taro/commit/2c561ad))
* **mini-runner:** 保证快应用文件生成正确 ([64e090a](https://github.com/NervJS/taro/commit/64e090a))
* **mini-runner:** 加入 watch ([9bfea52](https://github.com/NervJS/taro/commit/9bfea52))
* **mini-runner:** 增加 Taro 模块专有处理插件 ([e920172](https://github.com/NervJS/taro/commit/e920172))
* **mini-runner:** 支持与原生小程序代码混写 ([a937480](https://github.com/NervJS/taro/commit/a937480))
* **mini-runner:** 支持分包 ([bb56da6](https://github.com/NervJS/taro/commit/bb56da6))
* **mini-runner:** 支持编译 tabBar 上引用的资源编译 ([1e5352a](https://github.com/NervJS/taro/commit/1e5352a))
* **mini-runner:** 生成快应用页面及组件 ([98995dc](https://github.com/NervJS/taro/commit/98995dc))
* **taro:** cli 配合 mini-runner 重构 && 支持使用 mini-runner 编译插件 ([941d127](https://github.com/NervJS/taro/commit/941d127))
* **taro-cli:** 配置文件分开存放,优化 taro config 输出 ([3e15425](https://github.com/NervJS/taro/commit/3e15425))
* **taro-runner-utils:** 添加 [@tarojs](https://github.com/tarojs)/runner-utils 包 ([5b8b2eb](https://github.com/NervJS/taro/commit/5b8b2eb))
* audio context ([5d1d506](https://github.com/NervJS/taro/commit/5d1d506))
* mock for quickapp ([e7d66dd](https://github.com/NervJS/taro/commit/e7d66dd))
* stop trans asset for quickapp ([dd71cde](https://github.com/NervJS/taro/commit/dd71cde))
* **taro:** 加入快应用编译支持 ([f1e27c7](https://github.com/NervJS/taro/commit/f1e27c7))
* **taro:** 调整小程序和 H5 的编译配置 ([c9fa04d](https://github.com/NervJS/taro/commit/c9fa04d))
* **taro-cli:** 调整 rn 编译配置 ([f20bf0a](https://github.com/NervJS/taro/commit/f20bf0a))
* **taro-mini-runner:** 优化文件生成 ([7874369](https://github.com/NervJS/taro/commit/7874369))
* **taro-mini-runner:** 如果是组件需要补充 component:true 配置 ([4cb28b3](https://github.com/NervJS/taro/commit/4cb28b3))
* **taro-mini-runner:** 引入拆分的公共 chunks ([145459f](https://github.com/NervJS/taro/commit/145459f))
* **taro-mini-runner:** 拆分文件编译成为 plugin ([7cd5bf9](https://github.com/NervJS/taro/commit/7cd5bf9))
* **taro-mini-runner:** 生成多端类型文件 ([c7a53e5](https://github.com/NervJS/taro/commit/c7a53e5))
* **taro-mini-runner:** 生成页面以及组件的 usingComponents 配置 ([6ce4846](https://github.com/NervJS/taro/commit/6ce4846))
* checkout from auto-docs ([5a57db5](https://github.com/NervJS/taro/commit/5a57db5))



Expand Down
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@

> 👽 Taro['tɑ:roʊ],泰罗·奥特曼,宇宙警备队总教官,实力最强的奥特曼。

## 版本

<h3>当前 2.0 版本处在 beta 测试阶段,可能存在些许问题,若想稳定使用,请安装至 1.3.31 版本</h3>

[1.x 版本文档](https://nervjs.github.io/taro/docs/1.3.29/README.html)

## 简介

**Taro** 是一套遵循 [React](https://reactjs.org/) 语法规范的 **多端开发** 解决方案。现如今市面上端的形态多种多样,Web、React-Native、微信小程序等各种端大行其道,当业务同时在不同的端都要求有所表现的时候,针对不同的端编写多套代码的成本显然非常高,这时只编写一套代码就能适配到多端的能力就显得极为重要。
Expand Down Expand Up @@ -132,9 +138,9 @@ Taro 方案的初心就是为了打造一个多端开发的解决方案。目前

## 特别鸣谢

[![nanjingboy](https://avatars1.githubusercontent.com/u/1390888?s=100&v=4)](https://github.com/nanjingboy/) | [![jsNewbee](https://avatars3.githubusercontent.com/u/20449400?s=100&v=4)](https://github.com/js-newbee/) | [![Qiyu8](https://avatars2.githubusercontent.com/u/15245051?s=100&v=4)](https://github.com/Qiyu8/)
:---:|:---:|:---:
[nanjingboy](https://github.com/nanjingboy/) | [jsNewbee](https://github.com/js-newbee/) | [Qiyu8](https://github.com/Qiyu8/)
[![nanjingboy](https://avatars1.githubusercontent.com/u/1390888?s=100&v=4)](https://github.com/nanjingboy/) | [![jsNewbee](https://avatars3.githubusercontent.com/u/20449400?s=100&v=4)](https://github.com/js-newbee/) | [![Qiyu8](https://avatars2.githubusercontent.com/u/15245051?s=100&v=4)](https://github.com/Qiyu8/) | [![Hanqin](https://avatars3.githubusercontent.com/u/6348297?s=100&v=4)](https://github.com/shenghanqin/)
:---:|:---:|:---:|:---:
[nanjingboy](https://github.com/nanjingboy/) | [jsNewbee](https://github.com/js-newbee/) | [Qiyu8](https://github.com/Qiyu8/)| [Hanqin](https://github.com/shenghanqin/)

## 贡献者们

Expand Down
2 changes: 2 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
title: Taro 介绍
---

> 这是 Taro 2.x 版本的文档,若要查看 1.x 版本的文档,请[点击这里选择版本](/taro/versions.html)。

## 简介

**Taro** 是一套遵循 [React](https://reactjs.org/) 语法规范的 **多端开发** 解决方案。
Expand Down
39 changes: 30 additions & 9 deletions docs/async-await.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,40 @@
title: 异步编程
---

Taro 支持使用 `async functions` 来让开发者获得不错的异步编程体验,开启 `async functions` 支持需要安装包 `@tarojs/async-await`
> Taro 2.x 版本中使用 `async-await` 不再需要 `@tarojs/async-await`。

Taro 支持使用 `async functions` 来让开发者获得不错的异步编程体验,开启 `async functions` 支持需要安装包 `babel-plugin-transform-runtime` 和 `babel-runtime`。

```bash
$ yarn add @tarojs/async-await
# 或者使用 npm
$ npm install --save @tarojs/async-await
$ yarn add babel-plugin-transform-runtime --dev
$ yarn add babel-runtime
```

随后在项目入口文件 `app.js` 中直接 `import` ,就可以开始使用 `async functions` 功能了
随后修改项目 [`babel` 配置](./config-detail.md#babel),增加插件 `babel-plugin-transform-runtime`。

```javascript
// src/app.js
import '@tarojs/async-await'
```js
babel: {
sourceMap: true,
presets: [
[
'env',
{
modules: false
}
]
],
plugins: [
'transform-decorators-legacy',
'transform-class-properties',
'transform-object-rest-spread',
['transform-runtime', {
"helpers": false,
"polyfill": false,
"regenerator": true,
"moduleName": 'babel-runtime'
}]
]
}
```

> 值得注意的事,使用 `@tarojs/async-await` 一定要记得按照[开发前注意](./before-dev-remind.md)中提示的内容进行操作,否则会出现报错
> 值得注意的事,使用 `async functions` 一定要记得按照[开发前注意](./before-dev-remind.md)中提示的内容进行操作,否则会出现报错
Loading