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

resolve-from cli option #3150

Open
Globegitter opened this issue Dec 18, 2018 · 4 comments
Open

resolve-from cli option #3150

Globegitter opened this issue Dec 18, 2018 · 4 comments

Comments

@Globegitter
Copy link

What problem does this feature solve?

We are using bazel (https://bazel.build/) as a build system in a monorepo setup. Bazel usually executes in the root of the monorepo but we still have a package.json per project, so it might be in app1/package.json as well as app2/package.json. Adding the resolveFrom in the root package.json does not work for this use-case as depending on which project I point I need to point the cli at the different directory. So if I could just specify vue-cli-service --resolve-from appX that would solve my issue as I can change that per invocation and I can even tell bazel to add different cli flags when running it for different aps..

What does the proposed API look like?

It would do the same as the existing resolveFrom attribute just allowing to set this via a cli arg. Alternatively setting this via en environment variable could also solve our issue, but in not such a nice fashion.

@LinusBorg
Copy link
Member

Adding the resolveFrom

What's that?

@Globegitter
Copy link
Author

@LinusBorg
Copy link
Member

Oh, right, didn'T make the connection, assumed it was related to Bazel (which I heard about today for the first time!)

@Globegitter
Copy link
Author

Just to update, having #3685 would be the preferable feature as it completely takes away the need of the package.json.

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

2 participants