@cgzair/cgz-fabric 2.1.5 → 2.1.8
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/utils/extension.js +1 -1
- package/package.json +8 -8
package/lib/utils/extension.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0});const child_process_1=require("child_process"),fs_1=__importDefault(require("fs")),path_1=__importDefault(require("path")),cgz_core_1=require("@cgzair/cgz-core");exports.default=(e=path_1.default.resolve(__dirname,"../../../"))=>{
|
|
1
|
+
"use strict";var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0});const child_process_1=require("child_process"),fs_1=__importDefault(require("fs")),path_1=__importDefault(require("path")),cgz_core_1=require("@cgzair/cgz-core");exports.default=(e=path_1.default.resolve(__dirname,"../../../"))=>{const o=(0,child_process_1.spawnSync)("code",["-v"],{stdio:"pipe",shell:!0});if(0!==o.status||o.error)return cgz_core_1.log.info("当前系统暂未安装 vscode,扩展安装已跳过,更多请参考:https://code.visualstudio.com/");JSON.parse(fs_1.default.readFileSync(path_1.default.resolve(__dirname,"../config/_vscode/extensions.json.ejs"),"utf-8")).recommendations.forEach(e=>{cgz_core_1.log.info(`安装 ${e} ...`),(0,child_process_1.execSync)(`code --install-extension ${e}`),cgz_core_1.log.info(`${e} 安装成功`)}),(0,cgz_core_1.setScripts)("extension","fabric i --ext",e),cgz_core_1.log.info("写入 vscode 扩展 scripts 配置成功"),cgz_core_1.log.success("安装推荐 vscode 扩展成功")};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cgzair/cgz-fabric",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.8",
|
|
4
4
|
"description": "A collection of configuration files containing prettier, eslint, stylelint, markdown",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -24,11 +24,11 @@
|
|
|
24
24
|
],
|
|
25
25
|
"author": "cgz",
|
|
26
26
|
"peerDependencies": {
|
|
27
|
-
"@cgzair/commitlint-config-cgz": "^2.0.
|
|
28
|
-
"@cgzair/eslint-config-cgz": "^2.0.
|
|
29
|
-
"@cgzair/markdownlint-config-cgz": "^2.0.
|
|
30
|
-
"@cgzair/prettier-config-cgz": "^2.0.
|
|
31
|
-
"@cgzair/stylelint-config-cgz": "^2.0.
|
|
27
|
+
"@cgzair/commitlint-config-cgz": "^2.0.3",
|
|
28
|
+
"@cgzair/eslint-config-cgz": "^2.0.6",
|
|
29
|
+
"@cgzair/markdownlint-config-cgz": "^2.0.2",
|
|
30
|
+
"@cgzair/prettier-config-cgz": "^2.0.2",
|
|
31
|
+
"@cgzair/stylelint-config-cgz": "^2.0.6"
|
|
32
32
|
},
|
|
33
33
|
"peerDependenciesMeta": {
|
|
34
34
|
"@cgzair/stylelint-config-cgz": {
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"@cgzair/eslint-config-cgz": "2.0.6",
|
|
56
56
|
"@cgzair/markdownlint-config-cgz": "2.0.2",
|
|
57
57
|
"@cgzair/prettier-config-cgz": "2.0.2",
|
|
58
|
-
"@cgzair/stylelint-config-cgz": "2.0.
|
|
58
|
+
"@cgzair/stylelint-config-cgz": "2.0.6",
|
|
59
59
|
"@types/ejs": "^3.1.0",
|
|
60
60
|
"@types/fs-extra": "^9.0.13",
|
|
61
61
|
"@types/glob": "^7.2.0",
|
|
@@ -77,5 +77,5 @@
|
|
|
77
77
|
"pnpm": ">=9.0.0"
|
|
78
78
|
},
|
|
79
79
|
"license": "MIT",
|
|
80
|
-
"gitHead": "
|
|
80
|
+
"gitHead": "b8ba88e0ced91d2bf48e520a53a9b7a16bb13df5"
|
|
81
81
|
}
|