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

Jigsaw将启动支持移动版的改造,大概的思路和粗略演进方式,详见内文 #923

Open
rdkmaster opened this issue Apr 29, 2019 · 2 comments

Comments

@rdkmaster
Copy link
Owner

rdkmaster commented Apr 29, 2019

现状是Jigsaw的多数组件和功能,均面向PC端,几乎未考虑过移动端,经评估Jigsaw的大部分基础功能代码、指令和小部分组件实现,是可以用于移动端的,大部分的组件实现不能适用于移动端。

因此,Jigsaw对移动端的支持,将采用这样的方式:

  1. 将可共用部分的代码,独立出来到一个common目录里去,大概包含如下目录

    • jigsaw/core
    • jigsaw/directive
    • jigsaw/service
    • jigsaw/assets
  2. jigsaw/components目录更名为jigsaw/pc-components,里头的文件不变,用于存放PC端的组件库

  3. 增加jigsaw/mobile-components目录,用于存放移动端的组件库,并把jigsaw/components目录中可适用于移动端的那部分组件的源码,拷贝到这个目录下独立演进。

  4. 打包方式:PC端与移动端独立打包,独立发版本。即现在的 @rdkmaster/jigsaw 包不变,专用于PC端,新增一个 @rdkmaster/jigsaw-mobile 包,专用于移动端。打包脚本需要做对应的改造。

@Eve-Sama
Copy link

马上两周年了, 进度如何了?

@rdkmaster
Copy link
Owner Author

@Eve-Sama 业务上没有需求,因此移动化改造暂停,后续有需要会再启动,感谢关注

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

2 participants