1.1.0 • Published 4 years ago

easy-post-cli v1.1.0

Weekly downloads
3
License
ISC
Repository
-
Last release
4 years ago

简述

使用前需要在项目根目录添加ep.config.js

const config = [
    {
        name: '测试',
        commit:true, // 是否同时提交到远程仓库
        ssh: {
            host: 'xxx.xxx.xxx.xxx',
            port: xxx,
            username: 'root',
            password: '',
            // privateKey: '', // ssh私钥(不使用此方法时请勿填写, 注释即可)
            // passphrase: '' // ssh私钥对应解密密码(不存在设为''即可)
        },
        targetDir: '/home/xxx/Code/xxx/dist', // 目标压缩目录(可使用相对地址)
        targetFile: 'dist.zip', // 目标文件
        openCompress: true, // 是否开启本地压缩
        openBackUp: true, // 是否开启远端备份
        deployDir: '', // 远端目录
        releaseDir: 'dist' // 发布目录
    }
]

module.exports = config

使用

在项目内使用请在package.json中添加

"epost": "node ./node_modules/easy-post-cli/app.js"

执行使用

npm run epost

全局安装使用

npm i -g easy-post-cli 
# 执行使用
epost
1.1.0

4 years ago

1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago