Problems encountered in custom Vue cli plug-ins

Time:2020-9-18
Plug in naming

Name must be withvue-cli-plugin-Prefix start

other

1. Types supported by prompts include:

text
password
invisible
number
confirm
list
toggle
select
multiselect
autocompleteMultiselect
autocomplete
date
There is no input type. When input type is used, the command line will prompt for input, but the value cannot be obtained.

2. Command line association problem:

{
type:'confirm',
name:'changeDockerfile',
message:'Do you wish to overwrite Dockerfile',
default: false,
  },
  {
    when: answers => answers.changeDockerfile === true,
    type:'text',
    name:'dockerCpAddress',
    Message: 'please enter dockerfile CP address'
  }

3. If else should not be used to judge whether to render the rewriting file, but if

Problems encountered in custom Vue cli plug-ins

4.npm publish:

The version number cannot be the same as last time

Recommended Today

Openkruise: cloud native deployment base of Alibaba double 11 full link application

Introduction:Kruise is a homonym of cruise, ‘k’ for kubernetes, which means navigation and automatic patrol of applications on kubernetes. It is full of Alibaba’s best practices in large-scale application deployment, release and management for many years, as well as the precipitation of the demand of Alibaba cloud kubernetes for thousands of customers. Source|Alibaba cloud official […]