@gct-paas/build 0.1.6-dev.6 → 0.1.6-dev.7
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/dist/constants/index.cjs +4 -2
- package/dist/util/env-state/env-state.cjs +9 -0
- package/dist/util/env-state/env-state.d.ts +7 -0
- package/dist/util/index.cjs +7 -0
- package/dist/util/index.d.ts +1 -0
- package/dist/vite/vite-config/vite-pkg-dev-config.cjs +2 -2
- package/dist/vite/vite-config/vite-project-config.cjs +2 -1
- package/dist/vite/vite-plugins/inject-importmap-plugin.cjs +86 -0
- package/dist/vite/vite-plugins/inject-importmap-plugin.d.ts +19 -0
- package/es/constants/index.mjs +4 -2
- package/es/util/env-state/env-state.d.ts +7 -0
- package/es/util/env-state/env-state.mjs +3 -0
- package/es/util/index.d.ts +1 -0
- package/es/util/index.mjs +1 -0
- package/es/vite/vite-config/vite-pkg-dev-config.mjs +12 -10
- package/es/vite/vite-config/vite-project-config.mjs +3 -1
- package/es/vite/vite-plugins/inject-importmap-plugin.d.ts +19 -0
- package/es/vite/vite-plugins/inject-importmap-plugin.mjs +75 -0
- package/package.json +3 -2
package/dist/constants/index.cjs
CHANGED
|
@@ -15,5 +15,7 @@ const DEFAULT_EXTERNAL = exports.DEFAULT_EXTERNAL = [
|
|
|
15
15
|
"vuedraggable", "vue-grid-layout", "vant", "ant-design-vue", "vxe-table",
|
|
16
16
|
// 图标库相关依赖
|
|
17
17
|
"@ant-design/icons-vue", "@icon-park/vue-next/es/all", "@icon-park/vue-next/icons.json",
|
|
18
|
-
// @gct-paas
|
|
19
|
-
"@gct-paas/api", "@gct-paas/core", "@gct-paas/core-mobile", "@gct-paas/core-web", "@gct-paas/core-pad", "@gct-paas/design", "@gct-paas/design-mobile", "@gct-paas/design-web", "@gct-paas/design-pad", "@gct-paas/render", "@gct-paas/render-mobile", "@gct-paas/render-pad", "@gct-paas/render-web", "@gct-paas/schema", "@gct-paas/scss",
|
|
18
|
+
// @gct-paas 底包相关依赖
|
|
19
|
+
"@gct-paas/api", "@gct-paas/core", "@gct-paas/core-mobile", "@gct-paas/core-web", "@gct-paas/core-pad", "@gct-paas/design", "@gct-paas/design-mobile", "@gct-paas/design-web", "@gct-paas/design-pad", "@gct-paas/render", "@gct-paas/render-mobile", "@gct-paas/render-pad", "@gct-paas/render-web", "@gct-paas/schema", "@gct-paas/scss",
|
|
20
|
+
// @gct-paas 独立组件库
|
|
21
|
+
"@gct-paas/platform-icons", "@gct-paas/vue-pdf", "@gct-paas/vue-video-player"];
|
package/dist/util/index.cjs
CHANGED
|
@@ -15,10 +15,17 @@ Object.defineProperty(exports, "IS_NODE_MODULE", {
|
|
|
15
15
|
return _regExp.IS_NODE_MODULE;
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
|
+
Object.defineProperty(exports, "isBuildPluginEnv", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function () {
|
|
21
|
+
return _envState.isBuildPluginEnv;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
18
24
|
exports.mergeConfig = mergeConfig;
|
|
19
25
|
exports.unixToWinPath = unixToWinPath;
|
|
20
26
|
exports.winToUnixPath = winToUnixPath;
|
|
21
27
|
var _lodashEs = require("lodash-es");
|
|
28
|
+
var _envState = require("./env-state/env-state.cjs");
|
|
22
29
|
var _regExp = require("./reg-exp/reg-exp.cjs");
|
|
23
30
|
var _watcher = require("./watcher/watcher.cjs");
|
|
24
31
|
function winToUnixPath(pathStr) {
|
package/dist/util/index.d.ts
CHANGED
|
@@ -80,12 +80,12 @@ function definePkgDevViteConfig(opts = {}) {
|
|
|
80
80
|
},
|
|
81
81
|
// 排除测试目录,以及测试文件
|
|
82
82
|
exclude: ["**/test/**", "**/*.test.ts", "**/*.test.tsx", "**/*.spec.ts", "**/*.spec.tsx"]
|
|
83
|
-
}), (0, _vitePluginStaticCopy.viteStaticCopy)({
|
|
83
|
+
}), ...((0, _fs.existsSync)(_path.default.resolve(cwd, "src/types")) ? [(0, _vitePluginStaticCopy.viteStaticCopy)({
|
|
84
84
|
targets: [{
|
|
85
85
|
// 将 src/types 目录下的文件复制到编译输出目录
|
|
86
86
|
src: "src/types",
|
|
87
87
|
dest: "."
|
|
88
88
|
}]
|
|
89
|
-
})]
|
|
89
|
+
})] : [])]
|
|
90
90
|
}), opts);
|
|
91
91
|
}
|
|
@@ -12,6 +12,7 @@ var _path = _interopRequireDefault(require("path"));
|
|
|
12
12
|
var _fsExtra = _interopRequireDefault(require("fs-extra"));
|
|
13
13
|
var _util = require("../../util/index.cjs");
|
|
14
14
|
var _constants = require("../../constants/index.cjs");
|
|
15
|
+
var _injectImportmapPlugin = require("../vite-plugins/inject-importmap-plugin.cjs");
|
|
15
16
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
16
17
|
function defineProjectViteConfig(opts = {}) {
|
|
17
18
|
return (0, _vite.defineConfig)(async () => {
|
|
@@ -55,7 +56,7 @@ function defineProjectViteConfig(opts = {}) {
|
|
|
55
56
|
},
|
|
56
57
|
plugins: [(0, _pluginVue.default)(), (0, _pluginVueJsx.default)(), (0, _vite2.default)({
|
|
57
58
|
hmrTopLevelAwait: false
|
|
58
|
-
})]
|
|
59
|
+
}), (0, _injectImportmapPlugin.injectImportMapPlugin)()]
|
|
59
60
|
}, opts);
|
|
60
61
|
});
|
|
61
62
|
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.injectImportMapPlugin = injectImportMapPlugin;
|
|
7
|
+
var _nodeFs = _interopRequireDefault(require("node:fs"));
|
|
8
|
+
var _nodePath = _interopRequireDefault(require("node:path"));
|
|
9
|
+
var _simpleGit = require("simple-git");
|
|
10
|
+
var _util = require("../../util/index.cjs");
|
|
11
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
|
+
const DEV_IMPORT_MAP_PREFIX = ["/plugin-kit/@id/", "/plugin-design/@id/", "/plugin-render-mobile/@id/", "/plugin-render-pad/@id/", "/plugin-render-web/@id/"];
|
|
13
|
+
function injectImportMapPlugin(options = {}) {
|
|
14
|
+
const {
|
|
15
|
+
repoUrl = "https://git.gct-china.com/paas/frontend/gct-paas-cdn.git",
|
|
16
|
+
filePath = "extras/import-map.json"
|
|
17
|
+
} = options;
|
|
18
|
+
let importMapContent = "{}";
|
|
19
|
+
return {
|
|
20
|
+
name: "gct-vite-plugin:inject-importmap",
|
|
21
|
+
apply: "build",
|
|
22
|
+
async buildStart() {
|
|
23
|
+
const cwd = process.cwd();
|
|
24
|
+
let targetBranch = options.branch;
|
|
25
|
+
if (!targetBranch) {
|
|
26
|
+
const cwdGit = (0, _simpleGit.simpleGit)(cwd);
|
|
27
|
+
try {
|
|
28
|
+
targetBranch = await cwdGit.revparse(["--abbrev-ref", "HEAD"]);
|
|
29
|
+
} catch (err) {
|
|
30
|
+
this.error(`\u65E0\u6CD5\u81EA\u52A8\u83B7\u53D6\u5F53\u524D git \u5206\u652F\uFF0C\u8BF7\u786E\u8BA4\u5F53\u524D\u5904\u4E8E git \u4ED3\u5E93\u4E2D\uFF0C\u6216\u901A\u8FC7 options.branch \u660E\u786E\u6307\u5B9A\u5206\u652F\u3002\u9519\u8BEF\u4FE1\u606F: ${err}`);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
const cacheDir = _nodePath.default.resolve(cwd, "node_modules/.gct/cache/importmap-repo-cache");
|
|
34
|
+
try {
|
|
35
|
+
if (!_nodeFs.default.existsSync(cacheDir)) {
|
|
36
|
+
_nodeFs.default.mkdirSync(cacheDir, {
|
|
37
|
+
recursive: true
|
|
38
|
+
});
|
|
39
|
+
const git2 = (0, _simpleGit.simpleGit)(cacheDir);
|
|
40
|
+
await git2.init();
|
|
41
|
+
await git2.addRemote("origin", repoUrl);
|
|
42
|
+
await git2.raw(["config", "core.sparseCheckout", "true"]);
|
|
43
|
+
_nodeFs.default.writeFileSync(_nodePath.default.join(cacheDir, ".git/info/sparse-checkout"), filePath);
|
|
44
|
+
}
|
|
45
|
+
const git = (0, _simpleGit.simpleGit)(cacheDir);
|
|
46
|
+
await git.remote(["set-url", "origin", repoUrl]);
|
|
47
|
+
await git.fetch("origin", targetBranch, {
|
|
48
|
+
"--depth": 1
|
|
49
|
+
});
|
|
50
|
+
await git.reset(["--hard", `origin/${targetBranch}`]);
|
|
51
|
+
const targetFilePath = _nodePath.default.join(cacheDir, filePath);
|
|
52
|
+
if (!_nodeFs.default.existsSync(targetFilePath)) {
|
|
53
|
+
this.error(`\u5728\u4ED3\u5E93 ${repoUrl} \u7684 ${targetBranch} \u5206\u652F\u4E2D\uFF0C\u672A\u627E\u5230\u6587\u4EF6: ${filePath}\u3002`);
|
|
54
|
+
}
|
|
55
|
+
const rawContent = _nodeFs.default.readFileSync(targetFilePath, "utf-8");
|
|
56
|
+
try {
|
|
57
|
+
const parsed = JSON.parse(rawContent);
|
|
58
|
+
if ((0, _util.isBuildPluginEnv)() && parsed.imports) {
|
|
59
|
+
const keys = Object.keys(parsed.imports);
|
|
60
|
+
DEV_IMPORT_MAP_PREFIX.forEach(prefix => {
|
|
61
|
+
keys.forEach(key => {
|
|
62
|
+
const val = parsed.imports[key];
|
|
63
|
+
parsed.imports[prefix + key] = val;
|
|
64
|
+
});
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
importMapContent = JSON.stringify(parsed);
|
|
68
|
+
} catch (parseError) {
|
|
69
|
+
this.error(`\u76EE\u6807\u6587\u4EF6 ${filePath} \u5305\u542B\u975E\u6CD5\u7684 JSON \u683C\u5F0F: ${parseError}`);
|
|
70
|
+
}
|
|
71
|
+
} catch (error) {
|
|
72
|
+
this.error(`\u4ECE Git \u4ED3\u5E93\u62C9\u53D6\u6216\u8BFB\u53D6 import-map.json \u65F6\u53D1\u751F\u9519\u8BEF: ${error}`);
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
transformIndexHtml() {
|
|
76
|
+
return [{
|
|
77
|
+
tag: "script",
|
|
78
|
+
attrs: {
|
|
79
|
+
type: "importmap"
|
|
80
|
+
},
|
|
81
|
+
injectTo: "head-prepend",
|
|
82
|
+
children: importMapContent
|
|
83
|
+
}];
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { Plugin } from 'vite';
|
|
2
|
+
export interface InjectImportMapPluginOptions {
|
|
3
|
+
/**
|
|
4
|
+
* 仓库地址,默认为 https://git.gct-china.com/paas/frontend/gct-paas-cdn.git
|
|
5
|
+
*/
|
|
6
|
+
repoUrl?: string;
|
|
7
|
+
/**
|
|
8
|
+
* 需要读取的文件路径,默认为 extras/import-map.json
|
|
9
|
+
*/
|
|
10
|
+
filePath?: string;
|
|
11
|
+
/**
|
|
12
|
+
* 指定分支,若未指定则自动获取当前主工程对应的分支
|
|
13
|
+
*/
|
|
14
|
+
branch?: string;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* 编译时读取并注入 import-map 配置的插件
|
|
18
|
+
*/
|
|
19
|
+
export declare function injectImportMapPlugin(options?: InjectImportMapPluginOptions): Plugin;
|
package/es/constants/index.mjs
CHANGED
|
@@ -32,7 +32,7 @@ export const DEFAULT_EXTERNAL = [
|
|
|
32
32
|
"@ant-design/icons-vue",
|
|
33
33
|
"@icon-park/vue-next/es/all",
|
|
34
34
|
"@icon-park/vue-next/icons.json",
|
|
35
|
-
// @gct-paas
|
|
35
|
+
// @gct-paas 底包相关依赖
|
|
36
36
|
"@gct-paas/api",
|
|
37
37
|
"@gct-paas/core",
|
|
38
38
|
"@gct-paas/core-mobile",
|
|
@@ -48,6 +48,8 @@ export const DEFAULT_EXTERNAL = [
|
|
|
48
48
|
"@gct-paas/render-web",
|
|
49
49
|
"@gct-paas/schema",
|
|
50
50
|
"@gct-paas/scss",
|
|
51
|
+
// @gct-paas 独立组件库
|
|
51
52
|
"@gct-paas/platform-icons",
|
|
52
|
-
"@gct-paas/vue-pdf"
|
|
53
|
+
"@gct-paas/vue-pdf",
|
|
54
|
+
"@gct-paas/vue-video-player"
|
|
53
55
|
];
|
package/es/util/index.d.ts
CHANGED
package/es/util/index.mjs
CHANGED
|
@@ -6,7 +6,7 @@ import vueJsx from "@vitejs/plugin-vue-jsx";
|
|
|
6
6
|
import { libInjectCss } from "vite-plugin-lib-inject-css";
|
|
7
7
|
import { viteStaticCopy } from "vite-plugin-static-copy";
|
|
8
8
|
import dts from "vite-plugin-dts";
|
|
9
|
-
import { readFileSync } from "fs";
|
|
9
|
+
import { readFileSync, existsSync } from "fs";
|
|
10
10
|
import { mergeConfig, IS_NODE_MODULE } from "../../util/index.mjs";
|
|
11
11
|
import { DEFAULT_EXTERNAL } from "../../constants/index.mjs";
|
|
12
12
|
export function definePkgDevViteConfig(opts = {}) {
|
|
@@ -82,15 +82,17 @@ export function definePkgDevViteConfig(opts = {}) {
|
|
|
82
82
|
"**/*.spec.tsx"
|
|
83
83
|
]
|
|
84
84
|
}),
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
85
|
+
...existsSync(path.resolve(cwd, "src/types")) ? [
|
|
86
|
+
viteStaticCopy({
|
|
87
|
+
targets: [
|
|
88
|
+
{
|
|
89
|
+
// 将 src/types 目录下的文件复制到编译输出目录
|
|
90
|
+
src: "src/types",
|
|
91
|
+
dest: "."
|
|
92
|
+
}
|
|
93
|
+
]
|
|
94
|
+
})
|
|
95
|
+
] : []
|
|
94
96
|
]
|
|
95
97
|
}),
|
|
96
98
|
opts
|
|
@@ -8,6 +8,7 @@ import path from "path";
|
|
|
8
8
|
import fse from "fs-extra";
|
|
9
9
|
import { mergeConfig } from "../../util/index.mjs";
|
|
10
10
|
import { DEFAULT_EXTERNAL } from "../../constants/index.mjs";
|
|
11
|
+
import { injectImportMapPlugin } from "../vite-plugins/inject-importmap-plugin.mjs";
|
|
11
12
|
export function defineProjectViteConfig(opts = {}) {
|
|
12
13
|
return defineConfig(async () => {
|
|
13
14
|
const cwd = process.cwd();
|
|
@@ -52,7 +53,8 @@ export function defineProjectViteConfig(opts = {}) {
|
|
|
52
53
|
plugins: [
|
|
53
54
|
vue(),
|
|
54
55
|
vueJsx(),
|
|
55
|
-
UnoCSS({ hmrTopLevelAwait: false })
|
|
56
|
+
UnoCSS({ hmrTopLevelAwait: false }),
|
|
57
|
+
injectImportMapPlugin()
|
|
56
58
|
]
|
|
57
59
|
},
|
|
58
60
|
opts
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { Plugin } from 'vite';
|
|
2
|
+
export interface InjectImportMapPluginOptions {
|
|
3
|
+
/**
|
|
4
|
+
* 仓库地址,默认为 https://git.gct-china.com/paas/frontend/gct-paas-cdn.git
|
|
5
|
+
*/
|
|
6
|
+
repoUrl?: string;
|
|
7
|
+
/**
|
|
8
|
+
* 需要读取的文件路径,默认为 extras/import-map.json
|
|
9
|
+
*/
|
|
10
|
+
filePath?: string;
|
|
11
|
+
/**
|
|
12
|
+
* 指定分支,若未指定则自动获取当前主工程对应的分支
|
|
13
|
+
*/
|
|
14
|
+
branch?: string;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* 编译时读取并注入 import-map 配置的插件
|
|
18
|
+
*/
|
|
19
|
+
export declare function injectImportMapPlugin(options?: InjectImportMapPluginOptions): Plugin;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import fs from "node:fs";
|
|
2
|
+
import path from "node:path";
|
|
3
|
+
import { simpleGit } from "simple-git";
|
|
4
|
+
import { isBuildPluginEnv } from "../../util/index.mjs";
|
|
5
|
+
const DEV_IMPORT_MAP_PREFIX = ["/plugin-kit/@id/", "/plugin-design/@id/", "/plugin-render-mobile/@id/", "/plugin-render-pad/@id/", "/plugin-render-web/@id/"];
|
|
6
|
+
export function injectImportMapPlugin(options = {}) {
|
|
7
|
+
const {
|
|
8
|
+
repoUrl = "https://git.gct-china.com/paas/frontend/gct-paas-cdn.git",
|
|
9
|
+
filePath = "extras/import-map.json"
|
|
10
|
+
} = options;
|
|
11
|
+
let importMapContent = "{}";
|
|
12
|
+
return {
|
|
13
|
+
name: "gct-vite-plugin:inject-importmap",
|
|
14
|
+
apply: "build",
|
|
15
|
+
async buildStart() {
|
|
16
|
+
const cwd = process.cwd();
|
|
17
|
+
let targetBranch = options.branch;
|
|
18
|
+
if (!targetBranch) {
|
|
19
|
+
const cwdGit = simpleGit(cwd);
|
|
20
|
+
try {
|
|
21
|
+
targetBranch = await cwdGit.revparse(["--abbrev-ref", "HEAD"]);
|
|
22
|
+
} catch (err) {
|
|
23
|
+
this.error(`\u65E0\u6CD5\u81EA\u52A8\u83B7\u53D6\u5F53\u524D git \u5206\u652F\uFF0C\u8BF7\u786E\u8BA4\u5F53\u524D\u5904\u4E8E git \u4ED3\u5E93\u4E2D\uFF0C\u6216\u901A\u8FC7 options.branch \u660E\u786E\u6307\u5B9A\u5206\u652F\u3002\u9519\u8BEF\u4FE1\u606F: ${err}`);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
const cacheDir = path.resolve(cwd, "node_modules/.gct/cache/importmap-repo-cache");
|
|
27
|
+
try {
|
|
28
|
+
if (!fs.existsSync(cacheDir)) {
|
|
29
|
+
fs.mkdirSync(cacheDir, { recursive: true });
|
|
30
|
+
const git2 = simpleGit(cacheDir);
|
|
31
|
+
await git2.init();
|
|
32
|
+
await git2.addRemote("origin", repoUrl);
|
|
33
|
+
await git2.raw(["config", "core.sparseCheckout", "true"]);
|
|
34
|
+
fs.writeFileSync(path.join(cacheDir, ".git/info/sparse-checkout"), filePath);
|
|
35
|
+
}
|
|
36
|
+
const git = simpleGit(cacheDir);
|
|
37
|
+
await git.remote(["set-url", "origin", repoUrl]);
|
|
38
|
+
await git.fetch("origin", targetBranch, { "--depth": 1 });
|
|
39
|
+
await git.reset(["--hard", `origin/${targetBranch}`]);
|
|
40
|
+
const targetFilePath = path.join(cacheDir, filePath);
|
|
41
|
+
if (!fs.existsSync(targetFilePath)) {
|
|
42
|
+
this.error(`\u5728\u4ED3\u5E93 ${repoUrl} \u7684 ${targetBranch} \u5206\u652F\u4E2D\uFF0C\u672A\u627E\u5230\u6587\u4EF6: ${filePath}\u3002`);
|
|
43
|
+
}
|
|
44
|
+
const rawContent = fs.readFileSync(targetFilePath, "utf-8");
|
|
45
|
+
try {
|
|
46
|
+
const parsed = JSON.parse(rawContent);
|
|
47
|
+
if (isBuildPluginEnv() && parsed.imports) {
|
|
48
|
+
const keys = Object.keys(parsed.imports);
|
|
49
|
+
DEV_IMPORT_MAP_PREFIX.forEach((prefix) => {
|
|
50
|
+
keys.forEach((key) => {
|
|
51
|
+
const val = parsed.imports[key];
|
|
52
|
+
parsed.imports[prefix + key] = val;
|
|
53
|
+
});
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
importMapContent = JSON.stringify(parsed);
|
|
57
|
+
} catch (parseError) {
|
|
58
|
+
this.error(`\u76EE\u6807\u6587\u4EF6 ${filePath} \u5305\u542B\u975E\u6CD5\u7684 JSON \u683C\u5F0F: ${parseError}`);
|
|
59
|
+
}
|
|
60
|
+
} catch (error) {
|
|
61
|
+
this.error(`\u4ECE Git \u4ED3\u5E93\u62C9\u53D6\u6216\u8BFB\u53D6 import-map.json \u65F6\u53D1\u751F\u9519\u8BEF: ${error}`);
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
transformIndexHtml() {
|
|
65
|
+
return [
|
|
66
|
+
{
|
|
67
|
+
tag: "script",
|
|
68
|
+
attrs: { type: "importmap" },
|
|
69
|
+
injectTo: "head-prepend",
|
|
70
|
+
children: importMapContent
|
|
71
|
+
}
|
|
72
|
+
];
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gct-paas/build",
|
|
3
|
-
"version": "0.1.6-dev.
|
|
3
|
+
"version": "0.1.6-dev.7",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "paas 平台核心包",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -71,6 +71,7 @@
|
|
|
71
71
|
"prettier": "^3.8.1",
|
|
72
72
|
"rimraf": "^6.1.3",
|
|
73
73
|
"sass": "^1.98.0",
|
|
74
|
+
"simple-git": "^3.33.0",
|
|
74
75
|
"stylelint": "~16.26.1",
|
|
75
76
|
"stylelint-config-recess-order": "~7.4.0",
|
|
76
77
|
"stylelint-config-standard-scss": "~16.0.0",
|
|
@@ -99,5 +100,5 @@
|
|
|
99
100
|
"peerDependencies": {
|
|
100
101
|
"@gct-paas/scss": "*"
|
|
101
102
|
},
|
|
102
|
-
"gitHead": "
|
|
103
|
+
"gitHead": "ea800dfadead2fc20cf424513bc776a340e50ee8"
|
|
103
104
|
}
|