Skip to content

vue ui build task gui ignores package.json --mode and --dest flags #3236

Closed
@ediphy-dwild

Description

@ediphy-dwild

Version

3.2.1

Environment info

Environment Info:

  System:
    OS: Linux 4.9 Debian GNU/Linux 9 (stretch) 9 (stretch)
    CPU: (4) x64 Intel(R) Xeon(R) CPU @ 2.60GHz
  Binaries:
    Node: 11.6.0 - /usr/local/bin/node
    Yarn: 1.12.3 - /usr/local/bin/yarn
    npm: 6.5.0-next.0 - /usr/local/bin/npm
  Browsers:
    Chrome: Not Found
    Firefox: Not Found
  npmPackages:
    @vue/babel-preset-app:  3.2.0
    @vue/cli-overlay:  3.2.0
    @vue/cli-plugin-babel: ^3.2.0 => 3.2.0
    @vue/cli-plugin-e2e-cypress: ^3.2.0 => 3.2.0
    @vue/cli-plugin-eslint: ^3.2.0 => 3.2.1
    @vue/cli-plugin-pwa: ^3.2.0 => 3.2.0
    @vue/cli-plugin-typescript: ^3.2.0 => 3.2.0
    @vue/cli-service: ^3.2.0 => 3.2.0
    @vue/cli-shared-utils:  3.2.0
    @vue/component-compiler-utils:  2.3.1
    @vue/eslint-config-typescript: ^3.2.0 => 3.2.0
    @vue/preload-webpack-plugin:  1.1.0
    @vue/web-component-wrapper:  1.2.0
    babel-helper-vue-jsx-merge-props:  2.0.3
    babel-plugin-transform-vue-jsx:  4.0.1
    eslint-plugin-vue: ^5.0.0-0 => 5.0.0
    vue: ^2.5.17 => 2.5.21
    vue-awesome-swiper: ^3.1.3 => 3.1.3
    vue-class-component:  6.3.2
    vue-cli-plugin-vuetify: ^0.4.6 => 0.4.6
    vue-cli-plugin-webpack-bundle-analyzer: ^1.2.0 => 1.2.0
    vue-clipboard2: ^0.2.1 => 0.2.1
    vue-eslint-parser:  2.0.3
    vue-hot-reload-api:  2.3.1
    vue-loader:  15.4.2
    vue-property-decorator: ^7.2.0 => 7.2.0
    vue-resize-directive: ^1.1.4 => 1.1.4
    vue-router: ^3.0.1 => 3.0.2
    vue-style-loader:  4.1.2
    vue-template-compiler: ^2.5.17 => 2.5.21
    vue-template-es2015-compiler:  1.6.0
    vuedraggable: ^2.17.0 => 2.17.0
    vuejs-storage: ^0.9.0 => 0.9.1
    vuetify: ^1.3.0 => 1.3.15
    vuetify-loader: ^1.0.5 => 1.0.8
    vuex: ^3.0.1 => 3.0.1
  npmGlobalPackages:
    @vue/cli: 3.2.2

Steps to reproduce

  • open the vue ui web dashboard
  • import a project containing eg
  • "build:dev:webapp-shared": "vue-cli-service build --mode devshared --dest shared-dev-build/dist --no-clean"
    • (note that the script command at the top right of the gui does include all the command line params in the package.json)
  • click 'Run task'

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.


  1. 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.

  2. the overriding appears to be driven by the defaults in the 'parameters' dialog
    further to this:

open the parameters window

  • note that 'Output directory' is 'dist' (this can be overridden manually by copying and pasting the desired dest from the script command)
  • note that the 'Specify env mode' is a dropdown and cannot be overridden with the desired 'devshared' mode, so we are stuck with one of the three predefined modes

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions