apache / incubator-weex-cli

Weex Toolkit is the Standard Tooling for Weex Development.
https://weexteam.github.io/CLI-for-Apache-Weex
Apache License 2.0
564 stars 113 forks source link

How can we compile Weex more effective ? #607

Closed zsmjhtn closed 4 years ago

zsmjhtn commented 4 years ago

As weex hold most of business in Our App, about 200-300 pages, nearly 90% of App. When the files grew faster, compile weex file cost more time. Even if I separated all files into 5 packages, the spending time can not reduce any more. Please give some suggestions, Thanks!

cnryb commented 4 years ago

I use weex as single page. So I can only compile pages that have changed.

zsmjhtn commented 4 years ago

changed

I don not understand it. Do u mean instant-compile ? Such as i have 100 pages,and change a little。You can realize compile those files which have been changed? Or do you mean there is only one page,others just like child-pages/compoment?

cnryb commented 4 years ago

For example, you have 100 pages, and modify or add 10 pages to the current sprints. Then just compile these 10 pages. Of course, we also welcome you to help weex improve compilation efficiency.

zsmjhtn commented 4 years ago

For example, you have 100 pages, and modify or add 10 pages to the current sprints. Then just compile these 10 pages. Of course, we also welcome you to help weex improve compilation efficiency.

It sounds wonderful!I have no think about to improve “weex-builder” yet。 Just change python script, in order to distribute more threads for the commond of “weex-builder” in Physical-Machine. Can you share the build-tools or scripts, or tell more details about your “instant-compile”? Is the secret in Cli? (Because of still using V0.18, some "we" files need to modify, so i just tried a little off Weex-CLi for "Vue" files) Thanks.

cnryb commented 4 years ago

No secret. Just a little trick in project management. If interested, we can exchange ideas, use faster channels, Email or others