create-aiot 2.0.2-beta.15 → 2.0.2-beta.17

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/index.js CHANGED
@@ -12,7 +12,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
12
12
  return (mod && mod.__esModule) ? mod : { "default": mod };
13
13
  };
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.getCrerateXtsCommand = exports.getUxCreateCommand = void 0;
15
+ exports.getUxCreateCommand = getUxCreateCommand;
16
+ exports.getCrerateXtsCommand = getCrerateXtsCommand;
16
17
  const shared_utils_1 = require("@aiot-toolkit/shared-utils");
17
18
  const fs_1 = __importDefault(require("fs"));
18
19
  const path_1 = __importDefault(require("path"));
@@ -92,7 +93,6 @@ function getUxCreateCommand() {
92
93
  };
93
94
  });
94
95
  }
95
- exports.getUxCreateCommand = getUxCreateCommand;
96
96
  function getCrerateXtsCommand() {
97
97
  return __awaiter(this, void 0, void 0, function* () {
98
98
  const templateList = yield TemplateUtil_1.default.requestTemplateList('xts');
@@ -143,4 +143,3 @@ function getCrerateXtsCommand() {
143
143
  };
144
144
  });
145
145
  }
146
- exports.getCrerateXtsCommand = getCrerateXtsCommand;
@@ -12,9 +12,6 @@
12
12
  "lint": "eslint --format codeframe --fix --ext .ux,.js src/"
13
13
  },
14
14
  "devDependencies": {
15
- "aiot-toolkit": "^{{ toolkitVersion }}",
16
- "babel-eslint": "^10.0.1",
17
- "eslint": "^6.8.0",
18
- "eslint-plugin-ux": "^0.0.4"
15
+ "aiot-toolkit": "^{{ toolkitVersion }}"
19
16
  }
20
17
  }
@@ -13,9 +13,6 @@
13
13
  },
14
14
  "devDependencies": {
15
15
  "@aiot-toolkit/jsc": "^1.0.3",
16
- "aiot-toolkit": "^{{ toolkitVersion }}",
17
- "babel-eslint": "^10.0.1",
18
- "eslint": "^6.8.0",
19
- "eslint-plugin-ux": "^0.0.4"
16
+ "aiot-toolkit": "^{{ toolkitVersion }}"
20
17
  }
21
18
  }
@@ -15,7 +15,7 @@ class XtsTemplateUtil {
15
15
  static createAspect(projectAbsolutePath, aspect) {
16
16
  // 按照逗号分割字符串,且去掉空格
17
17
  const aspects = aspect.replace(' ', '').split(',');
18
- const aspectAbsolutePath = path_1.default.join(__dirname, '../template', 'xts', 'aspect1');
18
+ const aspectAbsolutePath = path_1.default.join(__dirname, '../../template', 'xts', 'aspect1');
19
19
  // 循环生成自定义aspect
20
20
  aspects.map((aspectItem) => {
21
21
  const targetAspectPath = path_1.default.join(projectAbsolutePath, aspectItem);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-aiot",
3
- "version": "2.0.2-beta.15",
3
+ "version": "2.0.2-beta.17",
4
4
  "description": "An easy way to start aiot project",
5
5
  "main": "lib/index.js",
6
6
  "keywords": [
@@ -23,13 +23,13 @@
23
23
  "test": "node ./__tests__/create-aiot.test.js"
24
24
  },
25
25
  "dependencies": {
26
- "@aiot-toolkit/commander": "2.0.2-beta.15",
27
- "@aiot-toolkit/shared-utils": "2.0.2-beta.15",
26
+ "@aiot-toolkit/commander": "2.0.2-beta.17",
27
+ "@aiot-toolkit/shared-utils": "2.0.2-beta.17",
28
28
  "@inquirer/prompts": "^3.0.3",
29
29
  "fs-extra": "^11.2.0"
30
30
  },
31
31
  "devDependencies": {
32
32
  "@types/fs-extra": "^11.0.4"
33
33
  },
34
- "gitHead": "61b4fe38ce1de8f7c6b484f0f5323143630e8cc0"
34
+ "gitHead": "4b2b3395e77e91b0c00a524dcf89b9dc0db689bf"
35
35
  }