Skip to content

本地发布 ​

TypeScript strict

可以在 nodejs 或 bash 中使用。

1. 作者 ​

novlan1

2. 如何使用 ​

安装

bash
pnpm add @plugin-light/cli -D

在 nodejs 中使用

ts
const { PUBLISH_SCRIPT: publishUtil } = require('@plugin-light/cli');

publishUtil [prod|test]

在 bash 中使用

bash
# 工具暴露 light-cli 命令
npx light-cli publish `[prod|test]`

3. 默认值 ​

ts
export const DEFAULT_PUBLISH_OPTIONS = {
  port: '3005',
  method: 'POST',
  path: '/web-publish/publish',
} as const;

4. 环境变量 ​

变量对应名称
VUE_APP_LOCAL_PUBLISH_HOSThost
VUE_APP_LOCAL_PUBLISH_PORTport
VUE_APP_LOCAL_PUBLISH_METHODmethod
VUE_APP_LOCAL_PUBLISH_PATHpath

5. 更新日志 ​

点此查看