From 3ab132022f1fb4b9f2a879692ee23ea8794282a4 Mon Sep 17 00:00:00 2001 From: jukaifeng Date: Tue, 17 Jan 2023 21:40:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E9=85=8D=E7=BD=AE=E6=96=87?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.js | 4 ++-- ssh/upload.js | 2 +- spinner_style.js => utils/spinner_style.js | 0 3 files changed, 3 insertions(+), 3 deletions(-) rename spinner_style.js => utils/spinner_style.js (100%) diff --git a/index.js b/index.js index c6eafdb..996e9fa 100644 --- a/index.js +++ b/index.js @@ -1,5 +1,5 @@ -// const pathHierarchy = '../../../' //脚本到项目的层级 项目/node_modules/deploy-node/index.js -const pathHierarchy = './test/' //测试目录 +const pathHierarchy = '../../../' //脚本到项目的层级 项目/node_modules/deploy-node/index.js +// const pathHierarchy = './test/' //测试目录 const inquirer = require('inquirer') //命令行交互 const runUploadTask = require('./ssh/upload') diff --git a/ssh/upload.js b/ssh/upload.js index 6fee924..1231950 100755 --- a/ssh/upload.js +++ b/ssh/upload.js @@ -1,6 +1,6 @@ const chalk = require('chalk') //命令行颜色 const ora = require('ora') // 加载流程动画 -const spinner_style = require('../spinner_style') //加载动画样式 +const spinner_style = require('../utils/spinner_style') //加载动画样式 const shell = require('shelljs') // 执行shell命令 const node_ssh = require('node-ssh') // ssh连接服务器 diff --git a/spinner_style.js b/utils/spinner_style.js similarity index 100% rename from spinner_style.js rename to utils/spinner_style.js