-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
Consolidate CLI for different platforms #1459
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
Comments
Thanks for the ideas, but I don't think we will consider this until Vue 3 / CLI 4. The current focus of the CLI is on web applications only. |
@yyx990803 why closing the issue if you will considerate this until v3/v4 ? Also, why to see the CLI as web only when you have weex code in the vue repo, or when there is definitely people that could benefit from this. @erha19 is putting doing some work for Weex folks when it could be replaced in the future, I see more value on working together on this. This issue is close, which means, let's forget about it. I hope you change your mind for the greater of many. |
Because we have to plan for what we are able to focus on for a given period of time. This proposal is broadening the scope of the CLI tremendously and I don't see this being worked on any time soon, so I'd avoid it cluttering the current issues. We will open a new issue when we are ready to work on it. |
Also, closing doesn't mean let's forget it - remember issues are used to manage work. This is just me saying: interesting idea, but please don't leave it on my plate just yet. |
What problem does this feature solve?
As Vue starts being used in more platform, platform specific features.
Splitting the community cross platform based CLIs or having more than one Vue project when we could be sharing a lot of code between platforms.
What does the proposed API look like?
Consolidate the CLI underline architecture for support multi-platform setup.
The proposal is really similar to what Weex CLI has today.
Today there is always a
public
folder which would be what could be underplatforms/web
folder.Because no everyone is using other platforms I think the tradeoff of just installing an extra dependency for the CLI.
Those dependencies should install extra commands to the CLI, example
Those underline platform plugins could do some
default
Webpack transformation as it is required for some platform.Also the
vue-config.js
should be pass somehow the platform that the CLI used for add some extra transformation.Some inspiration about the plugin and CLI could be take from here https://github.com/infinitered/gluegun
Checklist
vue-config.js
should allow the developer to know the platform for be able to inject different pipelines./platforms
folder./public
into./platforms/web
folder./dist
folder should have the platform name as child, for example./dist/web
or./dist/ios
cc: @yyx990803 @Akryum @erha19
The text was updated successfully, but these errors were encountered: