1.0.12 • Published 10 months ago

@tnnevol/deploy v1.0.12

Weekly downloads
-
License
MIT
Repository
-
Last release
10 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
    }
  }
};
1.0.12

10 months ago

1.0.11

10 months ago

1.0.10

10 months ago

1.0.9

10 months ago

1.0.8

10 months ago

1.0.7

10 months ago