create-aiot 2.0.2-dev.2 → 2.0.2-dev.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/bin.js CHANGED
@@ -11,14 +11,29 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
11
11
  };
12
12
  Object.defineProperty(exports, "__esModule", { value: true });
13
13
  const commander_1 = require("@aiot-toolkit/commander");
14
+ const prompts_1 = require("@inquirer/prompts");
14
15
  const _1 = require(".");
15
16
  function main() {
16
17
  return __awaiter(this, void 0, void 0, function* () {
18
+ if (process.argv.length <= 2) {
19
+ const answer = yield (0, prompts_1.select)({
20
+ message: 'Select a framework:',
21
+ choices: [
22
+ {
23
+ value: 'ux'
24
+ },
25
+ {
26
+ value: 'xts'
27
+ }
28
+ ]
29
+ });
30
+ process.argv.push(answer);
31
+ }
17
32
  // 创建命令行配置
18
33
  const config = {
19
34
  name: 'create-aiot',
20
35
  description: 'create aiot project',
21
- version: '2.0.0',
36
+ version: require('../package.json').version,
22
37
  commandList: [yield (0, _1.getCrerateXtsCommand)(), yield (0, _1.getUxCreateCommand)()]
23
38
  };
24
39
  commander_1.Command.registeProgram(config);
@@ -13,9 +13,9 @@
13
13
  "type": "xts",
14
14
  "demoList": [
15
15
  {
16
- "name": "xts",
16
+ "name": "xts-demo",
17
17
  "path": "./xts/app-package-name",
18
- "description": "xts app template"
18
+ "description": "xts demo template"
19
19
  }
20
20
  ]
21
21
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-aiot",
3
- "version": "2.0.2-dev.2",
3
+ "version": "2.0.2-dev.4",
4
4
  "description": "An easy way to start aiot project",
5
5
  "main": "lib/index.js",
6
6
  "keywords": [
@@ -19,15 +19,12 @@
19
19
  "files": [
20
20
  "lib"
21
21
  ],
22
- "repository": {
23
- "type": "git",
24
- "url": "ssh://xujunjie1@git.mioffice.cn:29418/vela/aiot-toolkit"
25
- },
26
22
  "scripts": {
27
23
  "test": "node ./__tests__/create-aiot.test.js"
28
24
  },
29
25
  "dependencies": {
30
- "@aiot-toolkit/commander": "2.0.2-dev.2",
26
+ "@aiot-toolkit/commander": "2.0.2-dev.4",
27
+ "@inquirer/prompts": "^4.1.0",
31
28
  "ansi-colors": "^4.1.3",
32
29
  "cli-progress": "^3.12.0",
33
30
  "simple-git": "^3.19.1"
@@ -35,5 +32,5 @@
35
32
  "devDependencies": {
36
33
  "@types/cli-progress": "^3.11.0"
37
34
  },
38
- "gitHead": "4979839c27a3477f7e72f1f1ed167200bc1d48b5"
35
+ "gitHead": "534fdc7c6f018623c05499bf9add8db813ef8660"
39
36
  }