-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
vue ui build task gui ignores package.json --mode and --dest flags #3236
Comments
You should use the |
Maybe the |
I feel that making the textbox, which acts as a command-preview - match what the Run button will do when clicked would be of greater benefit than enhancing the gui to fit my particular use-case. A secondary issue is that running a build task from the command line, then running the same build task from the gui produces different results. |
What's the status on this one? |
Adding to this as I was just testing something last night with 3.4.1 doing a The command preview in the UI shows |
See #3236 (comment) |
Thanks @Akryum. I saw that up there but didn't really clue into what it was and had no idea how to use it. did some research and found it in the UI and it fixed my issue. |
One related question. I had just been relying on the UI reading the npm scripts and bringing those in as tasks. I know we can build out our own Tasks for UI purposes to effectively mirror what's in npm scripts. I didn't do this originally as I didn't want to maintain something in two places. Is there a way to programtically pass in the
Do I have that basically correct? edit: The reason I didn't go down the route of maintaining both is we have a dozen or so npm scripts that would need mirrored as it's a plugin to integrate Nativescript-Vue with CLI 3. I realize that's a lot of Tasks to have in the UI, but we're trying to mirror a lot of the existing CLI options that Nativescript offer. |
Nice change! That option could be preselected, until the user changes it. This would enable the user to keep some variables coming from the hard-coded script, and change only some others, and not all. |
Version
3.2.1
Environment info
Steps to reproduce
What is expected?
--mode and --dest flags visible in the script command (from package.json) view are honored
What is actually happening?
builds ignore the script command --mode, and will override --dest to 'dist'. --dest can be worked around by opening the 'parameters' dialog, but --mode cannot be worked around, and the task gui cannot be used to run this build task.
the dest is being set to a subdirectory within shared-dev-build as we use a docker volume as the destination for the build, and if a raw 'dist' is mounted, the directory cannot be deleted at the start of the build (from memory, a rmdir command fails), so we worked around this by mounting a higher directory, and having the build take place in a subdirectory of the mountpoint.
the overriding appears to be driven by the defaults in the 'parameters' dialog
further to this:
open the parameters window
The text was updated successfully, but these errors were encountered: