From e06f9888286fc9b201225c8ce57ac932c67b92c9 Mon Sep 17 00:00:00 2001 From: KeiferJu Date: Tue, 18 Aug 2020 14:56:38 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .idea/.gitignore | 8 ++++++++ .idea/dllcn-auto-deploy.iml | 9 +++++++++ .idea/misc.xml | 9 +++++++++ .idea/modules.xml | 8 ++++++++ .idea/vcs.xml | 6 ++++++ package.json | 2 +- upload.js | 4 ++-- 7 files changed, 43 insertions(+), 3 deletions(-) create mode 100644 .idea/.gitignore create mode 100644 .idea/dllcn-auto-deploy.iml create mode 100644 .idea/misc.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/vcs.xml diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..73f69e0 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,8 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml +# Editor-based HTTP Client requests +/httpRequests/ diff --git a/.idea/dllcn-auto-deploy.iml b/.idea/dllcn-auto-deploy.iml new file mode 100644 index 0000000..d6ebd48 --- /dev/null +++ b/.idea/dllcn-auto-deploy.iml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..d4b854b --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,9 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..2f667df --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..35eb1dd --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/package.json b/package.json index 9e45214..5042dca 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@dllcn/auto-deploy", - "version": "1.1.0", + "version": "1.1.1", "description": "自动部署脚本", "main": "upload.js", "scripts": { diff --git a/upload.js b/upload.js index fbf5cee..1bfb19b 100755 --- a/upload.js +++ b/upload.js @@ -1,4 +1,4 @@ -const pathHierarchy = '../../' //脚本到项目的层级 项目/node_modules/deploy-node/index.js +const pathHierarchy = '../../../' //脚本到项目的层级 项目/node_modules/deploy-node/index.js const chalk = require('chalk') //命令行颜色 const ora = require('ora') // 加载流程动画 @@ -29,7 +29,7 @@ const errorLog = log => console.log(chalk.red(`---------------- ${log} --------- const successLog = log => console.log(chalk.green(`---------------- ${log} ----------------`)); //文件夹目录 -const distZipPath = path.resolve(__dirname, `${pathHierarchy}smx-bundle.tar.gz`); //打包后地址(smx-bundle.tar.gz是文件名,不需要更改, 主要在config中配置 PATH 即可) +const distZipPath = path.resolve(__dirname, `${pathHierarchy}../smx-bundle.tar.gz`); //打包后地址(smx-bundle.tar.gz是文件名,不需要更改, 主要在config中配置 PATH 即可) //项目打包代码 npm run build