@infly/libs 2.0.25 → 2.0.26
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/README.md +2 -2
- package/package.json +88 -88
- package/script/index.js +5 -5
- package/types/unused.index.d.ts +14 -14
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
## 软件架构
|
|
12
12
|
|
|
13
|
-
infly
|
|
13
|
+
@infly/libs
|
|
14
14
|
├── bin - 脚本文件暴露为可直接调用的命令
|
|
15
15
|
│ └── cli.js - 命令入口调用方法判断
|
|
16
16
|
├── build - 构建相关工具库
|
|
@@ -35,5 +35,5 @@ infly-libs
|
|
|
35
35
|
|
|
36
36
|
```bash
|
|
37
37
|
# 项目安装
|
|
38
|
-
npm/pnpm install infly
|
|
38
|
+
npm/pnpm install @infly/libs
|
|
39
39
|
```
|
package/package.json
CHANGED
|
@@ -1,88 +1,88 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@infly/libs",
|
|
3
|
-
"version": "2.0.
|
|
4
|
-
"description": "工具组件库",
|
|
5
|
-
"main": "index.js",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"test": "echo \"Error: no test specified\" && exit 1",
|
|
8
|
-
"postinstall": "node index.js",
|
|
9
|
-
"publishPkg": "npm version patch && npm publish --access=public --registry=https://registry.npmjs.org/",
|
|
10
|
-
"preview": "infly-libs --preview",
|
|
11
|
-
"preview:no-build": "infly-libs --preview --no-build"
|
|
12
|
-
},
|
|
13
|
-
"bin": {
|
|
14
|
-
"infly-libs": "bin/cli.js"
|
|
15
|
-
},
|
|
16
|
-
"exports": {
|
|
17
|
-
"./module/*": "./module/*",
|
|
18
|
-
"./dataInit/*": "./dataInit/*",
|
|
19
|
-
"./tools/*": "./tools/*",
|
|
20
|
-
"./store/*": "./store/*",
|
|
21
|
-
"./build/*": "./build/*"
|
|
22
|
-
},
|
|
23
|
-
"repository": {
|
|
24
|
-
"type": "git",
|
|
25
|
-
"url": "https://gitee.com/kahal/npm-package"
|
|
26
|
-
},
|
|
27
|
-
"keywords": [
|
|
28
|
-
"infly",
|
|
29
|
-
"infly-libs",
|
|
30
|
-
"libs"
|
|
31
|
-
],
|
|
32
|
-
"types-为了直接点击进入引用文件所以去掉": "types/index.d.ts",
|
|
33
|
-
"author": "Kahal",
|
|
34
|
-
"license": "ISC",
|
|
35
|
-
"dependencies": {},
|
|
36
|
-
"devDependencies-仅在需要webpack时候删除": {
|
|
37
|
-
"@babel/core": "^7.27.3",
|
|
38
|
-
"@babel/preset-env": "^7.27.2",
|
|
39
|
-
"babel-loader": "^10.0.0",
|
|
40
|
-
"webpack": "^5.99.9",
|
|
41
|
-
"webpack-cli": "^6.0.1",
|
|
42
|
-
"webpack-node-externals": "^3.0.0"
|
|
43
|
-
},
|
|
44
|
-
"peerDependencies": {
|
|
45
|
-
"axios": "^0.27.2",
|
|
46
|
-
"html-webpack-plugin": "^5.5.3"
|
|
47
|
-
},
|
|
48
|
-
"optionalDependencies": {
|
|
49
|
-
"axios": "^0.27.2",
|
|
50
|
-
"html-webpack-plugin": "^5.5.3"
|
|
51
|
-
},
|
|
52
|
-
"infly": {
|
|
53
|
-
"zipOptions": {
|
|
54
|
-
"buildFoldName": "[构建后目录名] 可选, 默认取值vue.config.js的outputDir, 配置化 eg: postal-benefits-level-pc",
|
|
55
|
-
"outputPath": "[输出文件目录链接] eg: ./ ",
|
|
56
|
-
"enabled": "[是否启用压缩] eg: true",
|
|
57
|
-
"gitAuto": "[是否自动提交git] eg: true",
|
|
58
|
-
"gitAutoPushRepos": "[自动提交推送git构建仓库] eg: frontend",
|
|
59
|
-
"gitAutoPushReposBranchMap": {
|
|
60
|
-
"release-eg": "develop-eg [自动提交推送项目构建分支和构建仓库推送分支对应配置,必须]"
|
|
61
|
-
},
|
|
62
|
-
"gitAutoCommitText": "[自动提交文案] eg: build: 更新版本为v{version}, 推送构建文件与zip压缩包 --build by infly-libs",
|
|
63
|
-
"enablePreview": "[是否启用项目预览] eg: true",
|
|
64
|
-
"enableClipboard": "[是否启用粘贴板粘贴git信息] eg: true",
|
|
65
|
-
"openExplorer": "[是否自动打开资源管理器] eg: true",
|
|
66
|
-
"webhookUrl": "[消息推送机器人链接配置] eg: https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=2417edd3-8f74-4c30-a7a8-5a72826d40d2",
|
|
67
|
-
"webhookAtUser": [
|
|
68
|
-
"@人手机号"
|
|
69
|
-
],
|
|
70
|
-
"webhookExtraText": "[消息推送额外文案] eg: 麻烦发下版",
|
|
71
|
-
"compressionLevel": 9
|
|
72
|
-
},
|
|
73
|
-
"versionConfig": {
|
|
74
|
-
"mainVersion": "[主版本号] 可选, 默认取值项目package version, eg: 1",
|
|
75
|
-
"links": {
|
|
76
|
-
"master": "[master分支构建文件推送地址] eg: e.sutpay.com",
|
|
77
|
-
"release": "[release分支构建文件推送地址] eg: http://114.132.55.214:8081/"
|
|
78
|
-
},
|
|
79
|
-
"platformName": "[用以split的项目平台名称] eg: 邮惠权益平台-运营端",
|
|
80
|
-
"baseName": "v{version}-{timestamp}.zip",
|
|
81
|
-
"versionList": [],
|
|
82
|
-
"disableUpdateVersionEnv": [
|
|
83
|
-
"development",
|
|
84
|
-
"staging [禁用更新版本号的环境, 比如测试环境构建不需要更新version, 不配置默认禁用stage测试环境]"
|
|
85
|
-
]
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@infly/libs",
|
|
3
|
+
"version": "2.0.26",
|
|
4
|
+
"description": "工具组件库",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
|
8
|
+
"postinstall": "node index.js",
|
|
9
|
+
"publishPkg": "npm version patch && npm publish --access=public --registry=https://registry.npmjs.org/",
|
|
10
|
+
"preview": "infly-libs --preview",
|
|
11
|
+
"preview:no-build": "infly-libs --preview --no-build"
|
|
12
|
+
},
|
|
13
|
+
"bin": {
|
|
14
|
+
"infly-libs": "bin/cli.js"
|
|
15
|
+
},
|
|
16
|
+
"exports": {
|
|
17
|
+
"./module/*": "./module/*",
|
|
18
|
+
"./dataInit/*": "./dataInit/*",
|
|
19
|
+
"./tools/*": "./tools/*",
|
|
20
|
+
"./store/*": "./store/*",
|
|
21
|
+
"./build/*": "./build/*"
|
|
22
|
+
},
|
|
23
|
+
"repository": {
|
|
24
|
+
"type": "git",
|
|
25
|
+
"url": "https://gitee.com/kahal/npm-package"
|
|
26
|
+
},
|
|
27
|
+
"keywords": [
|
|
28
|
+
"infly",
|
|
29
|
+
"infly-libs",
|
|
30
|
+
"libs"
|
|
31
|
+
],
|
|
32
|
+
"types-为了直接点击进入引用文件所以去掉": "types/index.d.ts",
|
|
33
|
+
"author": "Kahal",
|
|
34
|
+
"license": "ISC",
|
|
35
|
+
"dependencies": {},
|
|
36
|
+
"devDependencies-仅在需要webpack时候删除": {
|
|
37
|
+
"@babel/core": "^7.27.3",
|
|
38
|
+
"@babel/preset-env": "^7.27.2",
|
|
39
|
+
"babel-loader": "^10.0.0",
|
|
40
|
+
"webpack": "^5.99.9",
|
|
41
|
+
"webpack-cli": "^6.0.1",
|
|
42
|
+
"webpack-node-externals": "^3.0.0"
|
|
43
|
+
},
|
|
44
|
+
"peerDependencies": {
|
|
45
|
+
"axios": "^0.27.2",
|
|
46
|
+
"html-webpack-plugin": "^5.5.3"
|
|
47
|
+
},
|
|
48
|
+
"optionalDependencies": {
|
|
49
|
+
"axios": "^0.27.2",
|
|
50
|
+
"html-webpack-plugin": "^5.5.3"
|
|
51
|
+
},
|
|
52
|
+
"infly": {
|
|
53
|
+
"zipOptions": {
|
|
54
|
+
"buildFoldName": "[构建后目录名] 可选, 默认取值vue.config.js的outputDir, 配置化 eg: postal-benefits-level-pc",
|
|
55
|
+
"outputPath": "[输出文件目录链接] eg: ./ ",
|
|
56
|
+
"enabled": "[是否启用压缩] eg: true",
|
|
57
|
+
"gitAuto": "[是否自动提交git] eg: true",
|
|
58
|
+
"gitAutoPushRepos": "[自动提交推送git构建仓库] eg: frontend",
|
|
59
|
+
"gitAutoPushReposBranchMap": {
|
|
60
|
+
"release-eg": "develop-eg [自动提交推送项目构建分支和构建仓库推送分支对应配置,必须]"
|
|
61
|
+
},
|
|
62
|
+
"gitAutoCommitText": "[自动提交文案] eg: build: 更新版本为v{version}, 推送构建文件与zip压缩包 --build by infly-libs",
|
|
63
|
+
"enablePreview": "[是否启用项目预览] eg: true",
|
|
64
|
+
"enableClipboard": "[是否启用粘贴板粘贴git信息] eg: true",
|
|
65
|
+
"openExplorer": "[是否自动打开资源管理器] eg: true",
|
|
66
|
+
"webhookUrl": "[消息推送机器人链接配置] eg: https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=2417edd3-8f74-4c30-a7a8-5a72826d40d2",
|
|
67
|
+
"webhookAtUser": [
|
|
68
|
+
"@人手机号"
|
|
69
|
+
],
|
|
70
|
+
"webhookExtraText": "[消息推送额外文案] eg: 麻烦发下版",
|
|
71
|
+
"compressionLevel": 9
|
|
72
|
+
},
|
|
73
|
+
"versionConfig": {
|
|
74
|
+
"mainVersion": "[主版本号] 可选, 默认取值项目package version, eg: 1",
|
|
75
|
+
"links": {
|
|
76
|
+
"master": "[master分支构建文件推送地址] eg: e.sutpay.com",
|
|
77
|
+
"release": "[release分支构建文件推送地址] eg: http://114.132.55.214:8081/"
|
|
78
|
+
},
|
|
79
|
+
"platformName": "[用以split的项目平台名称] eg: 邮惠权益平台-运营端",
|
|
80
|
+
"baseName": "v{version}-{timestamp}.zip",
|
|
81
|
+
"versionList": [],
|
|
82
|
+
"disableUpdateVersionEnv": [
|
|
83
|
+
"development",
|
|
84
|
+
"staging [禁用更新版本号的环境, 比如测试环境构建不需要更新version, 不配置默认禁用stage测试环境]"
|
|
85
|
+
]
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
package/script/index.js
CHANGED
|
@@ -2,25 +2,25 @@ module.exports = {
|
|
|
2
2
|
previewList: [
|
|
3
3
|
{
|
|
4
4
|
key: "preview",
|
|
5
|
-
value: "infly
|
|
5
|
+
value: "@infly/libs --preview"
|
|
6
6
|
},
|
|
7
7
|
{
|
|
8
8
|
key: "preview:no-build",
|
|
9
|
-
value: "infly
|
|
9
|
+
value: "@infly/libs --preview --no-build"
|
|
10
10
|
}
|
|
11
11
|
],
|
|
12
12
|
buildList: [
|
|
13
13
|
{
|
|
14
14
|
key: "infly:build:prod",
|
|
15
|
-
value: "infly
|
|
15
|
+
value: "@infly/libs beforeBuild && vue-cli-service build && @infly/libs afterBuild"
|
|
16
16
|
},
|
|
17
17
|
{
|
|
18
18
|
key: "infly:build:stage",
|
|
19
|
-
value: "infly
|
|
19
|
+
value: "@infly/libs beforeBuild && vue-cli-service build --mode staging && @infly/libs afterBuild"
|
|
20
20
|
},
|
|
21
21
|
{
|
|
22
22
|
key: "infly:build:test",
|
|
23
|
-
value: "infly
|
|
23
|
+
value: "@infly/libs beforeBuild && @infly/libs afterBuild"
|
|
24
24
|
}
|
|
25
25
|
]
|
|
26
26
|
};
|
package/types/unused.index.d.ts
CHANGED
|
@@ -1,70 +1,70 @@
|
|
|
1
1
|
// 去掉方便开发直接进入引用文件
|
|
2
|
-
declare module "infly
|
|
2
|
+
declare module "@infly/libs/module/Uts" {
|
|
3
3
|
const Uts: any;
|
|
4
4
|
export default Uts;
|
|
5
5
|
}
|
|
6
6
|
|
|
7
|
-
declare module "infly
|
|
7
|
+
declare module "@infly/libs/module/Uts.js" {
|
|
8
8
|
const Uts: any;
|
|
9
9
|
export default Uts;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
declare module "infly
|
|
12
|
+
declare module "@infly/libs/dataInit/marketingActivitiesMap" {
|
|
13
13
|
const marketingActivitiesMap: any;
|
|
14
14
|
export default marketingActivitiesMap;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
declare module "infly
|
|
17
|
+
declare module "@infly/libs/dataInit/marketingActivitiesMap.js" {
|
|
18
18
|
const marketingActivitiesMap: any;
|
|
19
19
|
export default marketingActivitiesMap;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
declare module "infly
|
|
22
|
+
declare module "@infly/libs/dataInit/settlementMap" {
|
|
23
23
|
const settlementMap: any;
|
|
24
24
|
export default settlementMap;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
declare module "infly
|
|
27
|
+
declare module "@infly/libs/dataInit/settlementMap.js" {
|
|
28
28
|
const settlementMap: any;
|
|
29
29
|
export default settlementMap;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
declare module "infly
|
|
32
|
+
declare module "@infly/libs/dataInit/commonTypeMap" {
|
|
33
33
|
const commonTypeMap: any;
|
|
34
34
|
export default commonTypeMap;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
declare module "infly
|
|
37
|
+
declare module "@infly/libs/dataInit/commonTypeMap.js" {
|
|
38
38
|
const commonTypeMap: any;
|
|
39
39
|
export default commonTypeMap;
|
|
40
40
|
}
|
|
41
|
-
declare module "infly
|
|
41
|
+
declare module "@infly/libs/tools/format" {
|
|
42
42
|
const FormatTools: any;
|
|
43
43
|
export default FormatTools;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
declare module "infly
|
|
46
|
+
declare module "@infly/libs/tools/format.js" {
|
|
47
47
|
const FormatTools: any;
|
|
48
48
|
export default FormatTools;
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
declare module "infly
|
|
51
|
+
declare module "@infly/libs/module/REST" {
|
|
52
52
|
const REST: any;
|
|
53
53
|
export default REST;
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
-
declare module "infly
|
|
56
|
+
declare module "@infly/libs/module/REST.js" {
|
|
57
57
|
const REST: any;
|
|
58
58
|
export default REST;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
declare module "infly
|
|
61
|
+
declare module "@infly/libs/module/Permission" {
|
|
62
62
|
// 根据实际导出内容细化类型,这里先用 any
|
|
63
63
|
const Permission: any;
|
|
64
64
|
export default Permission;
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
declare module "infly
|
|
67
|
+
declare module "@infly/libs/module/Permission.js" {
|
|
68
68
|
// 根据实际导出内容细化类型,这里先用 any
|
|
69
69
|
const Permission: any;
|
|
70
70
|
export default Permission;
|