@htyf-mp/cli 0.4.0 → 0.4.2
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/package.json +2 -2
- package/src/config.mjs +4 -8
- package/src/constants.mjs +1 -2
- package/src/project-initializer.mjs +0 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@htyf-mp/cli",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.2",
|
|
4
4
|
"description": "红糖云服app小程序模板-cli",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -82,5 +82,5 @@
|
|
|
82
82
|
"publishConfig": {
|
|
83
83
|
"access": "public"
|
|
84
84
|
},
|
|
85
|
-
"gitHead": "
|
|
85
|
+
"gitHead": "d4c267bc6aade2148d186c61f34fac95f7c81c98"
|
|
86
86
|
}
|
package/src/config.mjs
CHANGED
|
@@ -13,6 +13,10 @@ export class ProjectConfig {
|
|
|
13
13
|
};
|
|
14
14
|
|
|
15
15
|
this.templates = {
|
|
16
|
+
[CONSTANTS.TEMPLATE_TYPES.TARO_TEMPLATE]: {
|
|
17
|
+
name: 'taro-template',
|
|
18
|
+
tempPath: '_taro_temp_'
|
|
19
|
+
},
|
|
16
20
|
[CONSTANTS.TEMPLATE_TYPES.APP_TEMPLATE]: {
|
|
17
21
|
name: 'app-template',
|
|
18
22
|
tempPath: '_apps_temp_'
|
|
@@ -21,14 +25,6 @@ export class ProjectConfig {
|
|
|
21
25
|
name: 'game-template',
|
|
22
26
|
tempPath: '_game_temp_'
|
|
23
27
|
},
|
|
24
|
-
[CONSTANTS.TEMPLATE_TYPES.WEB_TEMPLATE]: {
|
|
25
|
-
name: 'web-template',
|
|
26
|
-
tempPath: '_web_temp_'
|
|
27
|
-
},
|
|
28
|
-
[CONSTANTS.TEMPLATE_TYPES.TARO_TEMPLATE]: {
|
|
29
|
-
name: 'taro-template',
|
|
30
|
-
tempPath: '_taro_temp_'
|
|
31
|
-
}
|
|
32
28
|
};
|
|
33
29
|
}
|
|
34
30
|
|
package/src/constants.mjs
CHANGED
|
@@ -25,10 +25,9 @@ export const CONSTANTS = {
|
|
|
25
25
|
CODING: 'https://e.coding.net/dagouzhi/hongtangyun_mobile/htyf-cli.git'
|
|
26
26
|
},
|
|
27
27
|
TEMPLATE_TYPES: {
|
|
28
|
+
TARO_TEMPLATE: 'taro-template',
|
|
28
29
|
APP_TEMPLATE: 'app-template',
|
|
29
30
|
GAME_TEMPLATE: 'game-template',
|
|
30
|
-
WEB_TEMPLATE: 'web-template',
|
|
31
|
-
TARO_TEMPLATE: 'taro-template',
|
|
32
31
|
}
|
|
33
32
|
};
|
|
34
33
|
|
|
@@ -198,8 +198,6 @@ export class ProjectInitializer {
|
|
|
198
198
|
let appType = 'app';
|
|
199
199
|
if (templateType === CONSTANTS.TEMPLATE_TYPES.GAME_TEMPLATE) {
|
|
200
200
|
appType = 'game';
|
|
201
|
-
} else if (templateType === CONSTANTS.TEMPLATE_TYPES.WEB_TEMPLATE) {
|
|
202
|
-
appType = 'web';
|
|
203
201
|
} else if (templateType === CONSTANTS.TEMPLATE_TYPES.APP_TEMPLATE) {
|
|
204
202
|
appType = 'app';
|
|
205
203
|
} else if (templateType === CONSTANTS.TEMPLATE_TYPES.TARO_TEMPLATE) {
|