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

wearable_lite 编译流程 #3

Open
bingoogolapple opened this issue Sep 20, 2020 · 2 comments
Open

wearable_lite 编译流程 #3

bingoogolapple opened this issue Sep 20, 2020 · 2 comments

Comments

@bingoogolapple
Copy link
Owner

bingoogolapple commented Sep 20, 2020

编译日志

  • 点击运行按钮并选择模拟器后,先是在「Run/wearable_lite」里打印启动日志,项目后续的 js 日志也是在这里面打印
    image
  • 然后再执行 Gradle 任务「compileDebugJsWithNodeJs」,会自动指定参数 js_watch_mode 为 true,后续修改 js、hml、css 文件后会自动重启应用
13:16:42: Executing task 'compileDebugJsWithNodeJs -Pjs_watch_mode=true'...

Executing tasks: [compileDebugJsWithNodeJs]


> Configure project :
Info: Parsing C:\Users\Administrator\AppData\Local\Huawei\Sdk\java\3.0.0.80\uni-package.json
Info: Parsing C:\Users\Administrator\AppData\Local\Huawei\Sdk\js\3.0.0.80\uni-package.json
Info: Parsing C:\Users\Administrator\AppData\Local\Huawei\Sdk\native\3.0.0.80\uni-package.json
Info: Parsing C:\Users\Administrator\AppData\Local\Huawei\Sdk\previewer\3.0.0.80\uni-package.json
Info: Parsing C:\Users\Administrator\AppData\Local\Huawei\Sdk\toolchains\uni-package.json

> Configure project :wearable_lite
Info: Parsing C:\Users\Administrator\AppData\Local\Huawei\Sdk\java\3.0.0.80\uni-package.json
Info: Parsing C:\Users\Administrator\AppData\Local\Huawei\Sdk\js\3.0.0.80\uni-package.json
Info: Parsing C:\Users\Administrator\AppData\Local\Huawei\Sdk\native\3.0.0.80\uni-package.json
Info: Parsing C:\Users\Administrator\AppData\Local\Huawei\Sdk\previewer\3.0.0.80\uni-package.json
Info: Parsing C:\Users\Administrator\AppData\Local\Huawei\Sdk\toolchains\uni-package.json

> Task :tv_js:generateDebugJsManifest
> Task :tv_js:compileDebugJsWithNodeJs
> Task :wearable_js:generateDebugJsManifest
> Task :wearable_js:compileDebugJsWithNodeJs
> Task :wearable_lite:preBuild
> Task :wearable_lite:validateDebugSigning
> Task :wearable_lite:collectDebugDependencies
> Task :wearable_lite:mergeDebugResources
> Task :wearable_lite:mergeDebugProfile
> Task :wearable_lite:compileDebugResources
> Task :wearable_lite:generateDebugJsManifest

webpack is watching the files…

> Task :wearable_lite:compileDebugJsWithNodeJs

BUILD SUCCESSFUL in 14s
12 actionable tasks: 12 executed
13:16:57: Task execution finished 'compileDebugJsWithNodeJs -Pjs_watch_mode=true'.
@bingoogolapple
Copy link
Owner Author

bingoogolapple commented Sep 20, 2020

Previewer

  • 「View -> Tool Windows -> Previewer」第一次展示 Previewer 时也是执行的「compileDebugJsWithNodeJs -Pjs_watch_mode=true」,通运行到模拟器执行的相同的命令,也会监听 js、hml、css 文件的变化来自动刷新预览效果
  • 如果没有自动刷新可点击顶部的刷新按钮,又会重新执行之前的 Gradle 任务

@bingoogolapple
Copy link
Owner Author

各 Task 作用

TODO

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant