forked from ZxBing0066/rapiop
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ba4c6e8
commit e0092fe
Showing
4 changed files
with
62 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"singleQuote": true, | ||
"printWidth": 120 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
## 背景 | ||
|
||
当公司有多个部门、多个团队,而每个团队都开发了自己的一系列系统、工具、网站,随着时间的推移,网站越来越多、碎片化越来越严 | ||
重,这时想要把所有的网站放在一处管理,但是却发现大家的框架、构建、代码完全不一致,如果需要统一改造,那么势必成本过高。 | ||
|
||
这个库的职责就是让所有主流的框架说搭建的网站,无论原来在哪里,只需要做小小的改动,就可以和其它网站融合在一起,避免网站的 | ||
碎片化。 | ||
|
||
## 想法 | ||
|
||
目前主流框架大体是根据代码来生成 dom 并嵌入页面中,依赖的只是一个固定的 mount dom 元素,利用主流框架的这个一致性,将项目 | ||
的初始化嵌入 dom 的行为抽离出来,便可实现多项目共存。 | ||
|
||
每个项目主要的关注点:项目对应的路由(可以是任何种类的路由,如基于内存的历史栈),项目对应的文件(可选),项目的挂载和卸 | ||
载 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters