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

MIP1核心库及组件库需求开源二次编译脚本 #1266

Open
wqllpw opened this issue Oct 21, 2018 · 8 comments
Open

MIP1核心库及组件库需求开源二次编译脚本 #1266

wqllpw opened this issue Oct 21, 2018 · 8 comments
Assignees

Comments

@wqllpw
Copy link

wqllpw commented Oct 21, 2018

要解决什么问题
目前开源项目通过npm构建出来的代码具有版本号目录或者带版本号的文件名,对于其他cache来说的话没有办法直接上线

描述一下你理想中的解决方案
期望可以将二次编译脚本开源出来,方便其他cache上线组件库代码

描述你的备选方案

补充信息

@VenyXiong
Copy link
Member

目前mip 组件编译使用的是mip-extension-optimizer,
地址在这里https://github.com/mipengine/mip-extension-optimizer
这个可以解决你的问题么?

@wqllpw
Copy link
Author

wqllpw commented Oct 30, 2018

试用了一下,组件目录下仍然会带版本号目录,是不是方式不对,按照文档上的方式试用的,没加其他参数。
另外mip-extension-optimizer不包含mip核心库的编译吧?mip核心库的编译工具是否可以提供?

@VenyXiong
Copy link
Member

懂了,这里是说希望的编译产物是被路径是和上线路径一致,对吧?
比如说上线路径是:/static/v1/mip-share/mip-share.js, 那么编译产出的路径就是这样的,而不是/1.0.2/mip-share/mip-share.js。
这里我来支持一下。
mip核心的编译库目前直接集成在mip的源代码中 路径是这个https://github.com/mipengine/mip/tree/master/tools
核心库也有编译产出目录和线上不一致的问题,类似的问题,我一并处理下~

@wqllpw
Copy link
Author

wqllpw commented Nov 1, 2018

懂了,这里是说希望的编译产物是被路径是和上线路径一致,对吧?
比如说上线路径是:/static/v1/mip-share/mip-share.js, 那么编译产出的路径就是这样的,而不是/1.0.2/mip-share/mip-share.js。
这里我来支持一下。
mip核心的编译库目前直接集成在mip的源代码中 路径是这个https://github.com/mipengine/mip/tree/master/tools
核心库也有编译产出目录和线上不一致的问题,类似的问题,我一并处理下~

是的,有劳了~

@wqllpw
Copy link
Author

wqllpw commented Dec 4, 2018

请问是否有更新进展?

@VenyXiong
Copy link
Member

mip-extentions-platform 已经提交pr,
https://github.com/mipengine/mip-build-pack/pull/1/files
明天可以合并到主仓库。
mip核心部分的编译打包脚本,本周一并完成。

@wqllpw
Copy link
Author

wqllpw commented Dec 14, 2018

mip-extentions-platform 已经提交pr,
https://github.com/mipengine/mip-build-pack/pull/1/files
明天可以合并到主仓库。
mip核心部分的编译打包脚本,本周一并完成。

我用PR代码跑了一下编译,结果还是不太对,请问最近是否有跟进?

@chenqiushi
Copy link

@wqllpw 我看了下,之前的 pr 的脚本是有点小问题。我重新整理了 mip 组件相关的编译打包脚本,已经合入这个项目 https://github.com/mipengine/mip-build-pack 的 master 分支,仅供参考

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

No branches or pull requests

3 participants