dai-cli

自动化上传

2022/5/16 18:29:19

更改列表

index.js 16(+9 -7)

详细信息

diff --git a/.vscode/launch.json b/.vscode/launch.json
index e4187da..27b2eda 100644
--- a/.vscode/launch.json
+++ b/.vscode/launch.json
@@ -12,7 +12,7 @@
                 "<node_internals>/**"
             ],
             "program": "${workspaceFolder}\\index.js",
-            "args": ["add"]
+            "args": ["dev"]
         }
     ]
 }
\ No newline at end of file

index.js 16(+9 -7)

diff --git a/index.js b/index.js
index c4de0a5..03d2464 100644
--- a/index.js
+++ b/index.js
@@ -1,11 +1,12 @@
 #!/usr/bin/env node
-
 import program from 'commander';
 import inquirer from 'inquirer';
 import downloadGit from 'download-git-repo';
 import ora from 'ora';
 import chalk from 'chalk';
 import fs from 'fs/promises';
+import path from 'path';
+import { fileURLToPath } from 'url';
 
 const projectList = [
     { name: 'dai-vue-m 移动端项目', value: 'http://git.daicms.com/dai-vue-temp-m.git#master' },
@@ -13,7 +14,11 @@ const projectList = [
 ];
 const moduleList = [
     { name: 'dai-vue-module-m 移动端模块', value: 'http://git.daicms.com/dai-vue-module-m.git#master' },
-    { name: 'dai-vue-module-w 端脑端模块', value: 'http://git.daicms.com/dai-vue-module-m.git#master' }
+    { name: 'dai-vue-module-w 电脑端模块', value: 'http://git.daicms.com/dai-vue-module-m.git#master' },
+    {
+        name: 'dai-vue-temp-admin-iview 电脑端后台模板(iview)',
+        value: 'http://git.daicms.com/dai-vue-temp-admin-iview.git#master'
+    }
 ];
 //下载项目
 let downloadProject = function (answers) {
@@ -68,11 +73,8 @@ let downloadModule = function (options) {
         });
     });
 };
-let runDev = function () {
-    // debugger
-    // var webpackDev = require('./src/webpack.dev.js');
-    // var config = require(__dirname+'/build/config.js');
-    // webpackDev(config);
+let runDev = async function () {
+    debugger;
 };
 let exec = function () {
     return new Promise(async function (a, b) {