调整路径

This commit is contained in:
KeiferJu 2020-08-18 14:56:38 +08:00
parent d2c4245ea7
commit e06f988828
7 changed files with 43 additions and 3 deletions

8
.idea/.gitignore vendored Normal file
View File

@ -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/

View File

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>

9
.idea/misc.xml Normal file
View File

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="JavaScriptSettings">
<option name="languageLevel" value="ES6" />
</component>
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" project-jdk-name="1.8" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/out" />
</component>
</project>

8
.idea/modules.xml Normal file
View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/dllcn-auto-deploy.iml" filepath="$PROJECT_DIR$/.idea/dllcn-auto-deploy.iml" />
</modules>
</component>
</project>

6
.idea/vcs.xml Normal file
View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="" vcs="Git" />
</component>
</project>

View File

@ -1,6 +1,6 @@
{ {
"name": "@dllcn/auto-deploy", "name": "@dllcn/auto-deploy",
"version": "1.1.0", "version": "1.1.1",
"description": "自动部署脚本", "description": "自动部署脚本",
"main": "upload.js", "main": "upload.js",
"scripts": { "scripts": {

View File

@ -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 chalk = require('chalk') //命令行颜色
const ora = require('ora') // 加载流程动画 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 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 //项目打包代码 npm run build