-
-
Notifications
You must be signed in to change notification settings - Fork 70
Improve the update mode of internal version of template. #227
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
Conversation
✅ Deploy Preview for vue-vine ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
@vue-vine/compiler
create-vue-vine
@vue-vine/eslint-parser
@vue-vine/eslint-config
@vue-vine/eslint-plugin
@vue-vine/language-server
@vue-vine/language-service
@vue-vine/nuxt
vue-vine-tsc
@vue-vine/vite-plugin
vue-vine
commit: |
|
其实我觉得是不是可以在 create-vue-vine 的 prepublish 里加上这个脚本,以便我们每次发布出去的 template 都保证是新的 |
有的有的,我在根目录加了一个upgrade-deps的命令来主动更新版本,但这样修改了版本以后依然会需要发布一次create-vue-vine的包,所以内部还做了一次自动查询最新版本的操作,这样即便create-vue-vine没有任何修改的时候,也能使用最新的版本 |
|
之前我还在纠结是否需要加上一个缓存功能,但思考再三还是决定放弃了,因为新建项目的操作还是很低频的,如果长时间没有使用的话,花个最多3s的时间用来查询最新版本似乎代价也不是那么大? |
我觉得非常正确,我认同这个权衡的结果。 |
No description provided.