New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

custom-vue-cli

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

custom-vue-cli

自定义脚手架工具,功能点如下:1、初始化项目;2、生成部署配置文件模板;3、根据指定的文件路劲生成组件模板;4、部署代码到指定服务器;5、服务器代码回滚;6、将指定文件夹压缩成压缩包;

latest
Source
npmnpm
Version
0.1.4
Version published
Maintainers
1
Created
Source

安装命令

npm install custom-vue-cli -g

配置文件说明

{
  "localDir": "dist/",//本地需要发布的代码目录
  "zipName": "dist",//代码压缩后的文件名
  "servers": [
    {
      "host": "",//服务器ip
      "user": "",//用户名
      "port": "",//端口
      "password": "",//密码
      "remoteDir": ""//代码在服务器端的存放路径
    }
  ]
}

功能点说明:

1、初始化项目

2、生成部署配置文件模板

3、根据指定的文件路劲生成组件模板

4、部署代码到指定服务器

5、服务器代码回滚

6、将指定文件夹压缩成压缩包

命令使用说明

初始化项目

    custom-vue-cli init [repoUrl] [dist] //repoUrl 模板名称(H5、PC)或者仓库地址 dist目标目录一定要是空目录才行

用命令生成配置文件模板

    custom-vue-cli gcfg [cfgPath] //cfgPath为配置文件路径,可选,例如publishcfg/config.json

部署代码命令

    custom-vue-cli publish [cfgPath] [isPrompt] //cfgPath为配置文件路径,可选,例如publishcfg/config.json; isPrompt 真正开始部署前是否让用户确认部署服务器信息,默认不需要,设置为’Y‘,则会让用户确认服务器信息

恢复至上个版本

    custom-vue-cli revert [cfgPath] //cfgPath为配置文件路径,可选,例如publishcfg/config.json

生成压缩包

    custom-vue-cli compress [cfgPath] //cfgPath为配置文件路径,可选,例如publishcfg/config.json

生成组件

    custom-vue-cli ganeratorVueComp [dist]  //dist为组件的路径,可选,例如demo.vue;

更新记录

2020-07-11

    批量部署bug修复:部署配置文件中添加多个服务器,则可以同时部署多台服务器;

例如:

{
  "localDir": "dist/",
  "zipName": "dist",
  "servers": [
        {
        "host": "",
        "user": "",
        "port": "22",
        "password": "",
        "remoteDir": "/apps/svr/test122/"
      },
      {
        "host": "",
        "user": "",
        "port": "22",
        "password": "$",
        "remoteDir": "/apps/svr/test343/"
      }
    ]
}

Keywords

publish

FAQs

Package last updated on 11 Jul 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts