webdpl
v1.0.1-alpha.8
Published
pnpm add webdpl
Downloads
528
Readme
安装
pnpm add webdpl
使用
Create a configuration file named webdpl.config.ts in the root directory
import { defineConfig } from "webdpl";
export default defineConfig({
sshList: [
{
host: "127.0.0.1",
username: "root",
password: "root",
},
],
uploadList: [
{
host: "127.0.0.1",
fileList: [
{
localPath: "dist",
remotePath: "the path of your project in server",
},
{
localPath: "src",
remotePath: "the path of your project in server",
},
],
},
],
});
配置脚本 package.json
"scripts": {
"dp": "webdpl deploy"
}
执行命令
pnpm dp