1.0.20 • Published 5 years ago

@my-script/cli v1.0.20

Weekly downloads
1
License
MIT
Repository
-
Last release
5 years ago

my-script

自己使用的一个项目部署工具,可一键编译部署前端项目和node后端项目

PS: 使用前先确保配置了ssh免密登录

use

  • install

    npm install --save-dev @my-script/cli
    yarn add -D @my-script/cli
  • configuration 在项目根目录下创建配置文件myScript.config.js

    {
      user: 'root', // 服务器用户名
      domain: null, // 服务器地址
      serverPath: null, // 服务器中项目地址
      buildCommand: null, // 项目编译命令
      projectPath: process.cwd() // 需要上传的项目地址
    }
  • command 编译并部署代码

    my-script -d

    package.json中添加scripts

    "scripts": {
      "deploy": "my-script -d"
    }
1.0.20

5 years ago

1.0.19

5 years ago

1.0.18

5 years ago

1.0.17

5 years ago

1.0.16

5 years ago

1.0.15

5 years ago

1.0.14

5 years ago

1.0.13

5 years ago

1.0.12

5 years ago

1.0.11

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.0.0

5 years ago