5.2.5-beta.7 • Published 7 months ago

@tnnevol/deploy v5.2.5-beta.7

Weekly downloads
-
License
MIT
Repository
-
Last release
7 months ago

@tnnevol/deploy

注:

不想写核心部分了,对 deploy-cli-service 项目的v1.3.0进行了一些改动,特注于此。如有版权问题,可随时改动。(主要项目不想使用私钥并且密码不想明文😢)

安装

# npm global
npm i @tnnevol/deploy -g
# or dev
npm i @tnnevol/deploy -D

使用

npx deploy --help

# 初始化
npx deploy init

# 对新的文案进行加密
npx deploy encryption

# 部署 env 的值对应 配置文件 serverConfig 中的 key
npx deploy publish --env=test

配置文件

配置文件生成后,请将 cryptoKeycryptoIv,存放到其他文件并且该文件不要提交到线上。

const { cryptoKey, cryptoIv } = require("./.key");
module.exports = {
  projectName: "@examples/deploy",
  cryptoKey,
  cryptoIv,
  serverConfig: {
    test: {
      name: "test",
      script: "npm run build",
      host: "0.0.0.0",
      port: 22,
      username: "666",
      password: "999",
      distPath: "dist",
      webDir: "/www/99/66",
      bakDir: "",
      isRemoveRemoteFile: false,
      isRemoveLocalFile: true
    }
  }
};
5.2.5-beta.6

7 months ago

5.2.5-beta.5

7 months ago

5.2.5-beta.7

7 months ago

5.2.4

11 months ago

5.2.3

11 months ago

5.2.2

11 months ago

5.2.1

11 months ago

5.2.0

11 months ago

5.2.5-beta.4

11 months ago

5.2.5-beta.3

11 months ago

2.0.0

1 year ago

1.0.12

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago