@gct-paas/build 0.0.1-dev.9 → 0.0.1
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 +1 -1
- package/dist/eslint/eslint-config/eslint-config.cjs +42 -18
- package/dist/rollup/rollup-config/dev-config.cjs +14 -4
- package/dist/types/index.d.ts +1 -0
- package/es/constants/index.mjs +4 -0
- package/es/eslint/eslint-config/eslint-config.mjs +36 -17
- package/es/rollup/rollup-config/dev-config.mjs +17 -4
- package/es/types/index.d.ts +1 -0
- package/package.json +24 -23
package/dist/constants/index.cjs
CHANGED
|
@@ -6,4 +6,4 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.PROD_MODE = exports.DEV_MODE = exports.DEFAULT_EXTERNAL = void 0;
|
|
7
7
|
const DEV_MODE = exports.DEV_MODE = "development";
|
|
8
8
|
const PROD_MODE = exports.PROD_MODE = "production";
|
|
9
|
-
const DEFAULT_EXTERNAL = exports.DEFAULT_EXTERNAL = ["vue", "vue-router", "vue-i18n", "axios", "dayjs", "lodash-es", "qs", "pinia", "vuedraggable", "sortablejs", "vue-grid-layout", "vant", "ant-design-vue", "@gct-paas/core", "@gct-paas/design", "@gct-paas/design-mobile", "@gct-paas/design-web", "@gct-paas/mobile", "@gct-paas/web", "systemjs"];
|
|
9
|
+
const DEFAULT_EXTERNAL = exports.DEFAULT_EXTERNAL = ["vue", "vue-router", "vue-i18n", "axios", "dayjs", "lodash-es", "qs", "pinia", "vuedraggable", "sortablejs", "vue-grid-layout", "vant", "ant-design-vue", "@gct-paas/build", "@gct-paas/core", "@gct-paas/core-mobile", "@gct-paas/core-web", "@gct-paas/design", "@gct-paas/design-mobile", "@gct-paas/design-web", "@gct-paas/mobile", "@gct-paas/scss", "@gct-paas/web", "systemjs"];
|
|
@@ -5,38 +5,44 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.defineEslintConfig = defineEslintConfig;
|
|
7
7
|
var _js = _interopRequireDefault(require("@eslint/js"));
|
|
8
|
-
var _typescriptEslint =
|
|
8
|
+
var _typescriptEslint = _interopRequireWildcard(require("typescript-eslint"));
|
|
9
9
|
var _eslintPluginVue = _interopRequireDefault(require("eslint-plugin-vue"));
|
|
10
|
+
var _vueEslintParser = _interopRequireDefault(require("vue-eslint-parser"));
|
|
10
11
|
var _recommended = _interopRequireDefault(require("eslint-plugin-prettier/recommended"));
|
|
11
12
|
var _eslintPluginUnusedImports = _interopRequireDefault(require("eslint-plugin-unused-imports"));
|
|
12
13
|
var _eslintPluginImport = _interopRequireDefault(require("eslint-plugin-import"));
|
|
13
14
|
var _globals = _interopRequireDefault(require("globals"));
|
|
15
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
16
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
14
17
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
15
18
|
function defineEslintConfig(...configs) {
|
|
16
|
-
return _typescriptEslint.default.config(
|
|
17
|
-
|
|
18
|
-
_typescriptEslint.default.configs.strict, _typescriptEslint.default.configs.stylistic,
|
|
19
|
-
|
|
19
|
+
return _typescriptEslint.default.config(
|
|
20
|
+
// 基础配置
|
|
21
|
+
_js.default.configs.recommended, _typescriptEslint.default.configs.strict, _typescriptEslint.default.configs.stylistic, _eslintPluginVue.default.configs["flat/recommended"], _recommended.default, _eslintPluginImport.default.flatConfigs.recommended, _eslintPluginImport.default.flatConfigs.warnings, _eslintPluginImport.default.flatConfigs.errors, _eslintPluginImport.default.flatConfigs.typescript,
|
|
22
|
+
// 自定义配置
|
|
23
|
+
{
|
|
20
24
|
ignores: ["**/node_modules", "lerna.json", "package.json", "tsconfig.json", "pnpm-lock.yaml", "pnpm-workspace.yaml", "eslint.config.mjs", "**/dist", "**/out", "**/es", "**/lib"],
|
|
21
|
-
files: ["**/*.ts
|
|
25
|
+
files: ["**/*.{ts,tsx,vue}"],
|
|
22
26
|
plugins: {
|
|
23
27
|
"unused-imports": _eslintPluginUnusedImports.default
|
|
24
28
|
},
|
|
25
29
|
languageOptions: {
|
|
26
30
|
globals: {
|
|
27
|
-
..._globals.default.browser
|
|
31
|
+
..._globals.default.browser,
|
|
32
|
+
..._globals.default.node
|
|
28
33
|
},
|
|
34
|
+
parser: _typescriptEslint.parser,
|
|
29
35
|
parserOptions: {
|
|
30
36
|
ecmaFeatures: {
|
|
31
|
-
// 全局严格模式
|
|
32
37
|
impliedStrict: true,
|
|
33
|
-
//
|
|
38
|
+
// 全局严格模式
|
|
34
39
|
jsx: true
|
|
40
|
+
// 启用 JSX
|
|
35
41
|
}
|
|
36
42
|
}
|
|
37
43
|
},
|
|
38
44
|
rules: {
|
|
39
|
-
//
|
|
45
|
+
// 基础规则覆盖
|
|
40
46
|
"no-console": "off",
|
|
41
47
|
"no-debugger": "off",
|
|
42
48
|
"no-undef": "off",
|
|
@@ -47,22 +53,20 @@ function defineEslintConfig(...configs) {
|
|
|
47
53
|
"no-restricted-syntax": "off",
|
|
48
54
|
"no-continue": "off",
|
|
49
55
|
"no-unused-vars": "off",
|
|
56
|
+
// 关闭基础规则,由 TypeScript 规则接管
|
|
50
57
|
"no-extraneous-class": "off",
|
|
51
58
|
"no-param-reassign": "off",
|
|
52
59
|
"no-useless-constructor": "off",
|
|
53
60
|
"no-empty-function": "off",
|
|
54
|
-
// unused-imports
|
|
61
|
+
// unused-imports 插件规则
|
|
55
62
|
"unused-imports/no-unused-imports": "error",
|
|
56
63
|
"consistent-return": "off",
|
|
57
64
|
"func-names": "off",
|
|
58
|
-
// import
|
|
65
|
+
// import 插件规则
|
|
59
66
|
"import/no-unresolved": "off",
|
|
60
67
|
"import/extensions": "off",
|
|
61
68
|
"import/prefer-default-export": "off",
|
|
62
|
-
//
|
|
63
|
-
"vue/no-setup-props-destructure": "off",
|
|
64
|
-
"vue/require-default-prop": "off",
|
|
65
|
-
// typescript 配置覆盖
|
|
69
|
+
// TypeScript 规则覆盖
|
|
66
70
|
"@typescript-eslint/no-unused-vars": ["error", {
|
|
67
71
|
argsIgnorePattern: "^_"
|
|
68
72
|
}],
|
|
@@ -71,15 +75,35 @@ function defineEslintConfig(...configs) {
|
|
|
71
75
|
"@typescript-eslint/explicit-module-boundary-types": "off",
|
|
72
76
|
"@typescript-eslint/no-non-null-assertion": "off",
|
|
73
77
|
"@typescript-eslint/no-extraneous-class": "off",
|
|
74
|
-
//
|
|
78
|
+
// 其他规则覆盖
|
|
75
79
|
"class-methods-use-this": "off",
|
|
76
80
|
"prefer-destructuring": "off"
|
|
77
81
|
}
|
|
78
82
|
}, {
|
|
79
83
|
name: "ts-vue-override",
|
|
80
84
|
files: ["**/*.vue"],
|
|
85
|
+
languageOptions: {
|
|
86
|
+
parser: _vueEslintParser.default,
|
|
87
|
+
globals: {
|
|
88
|
+
..._globals.default.browser,
|
|
89
|
+
..._globals.default.node
|
|
90
|
+
},
|
|
91
|
+
parserOptions: {
|
|
92
|
+
/** typescript项目需要用到这个 */
|
|
93
|
+
parser: _typescriptEslint.default.parser,
|
|
94
|
+
ecmaVersion: "latest",
|
|
95
|
+
/** 允许在.vue 文件中使用 JSX */
|
|
96
|
+
ecmaFeatures: {
|
|
97
|
+
jsx: true
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
},
|
|
81
101
|
rules: {
|
|
82
|
-
"@typescript-eslint/no-unused-vars": "off"
|
|
102
|
+
"@typescript-eslint/no-unused-vars": "off",
|
|
103
|
+
"@typescript-eslint/no-unused-expressions": "off",
|
|
104
|
+
// Vue 规则覆盖
|
|
105
|
+
"vue/no-setup-props-destructure": "off",
|
|
106
|
+
"vue/require-default-prop": "off"
|
|
83
107
|
}
|
|
84
108
|
}, ...configs);
|
|
85
109
|
}
|
|
@@ -18,8 +18,10 @@ var _pluginVueJsx = _interopRequireDefault(require("@vitejs/plugin-vue-jsx"));
|
|
|
18
18
|
var rf = _interopRequireWildcard(require("rimraf"));
|
|
19
19
|
var _cpy = _interopRequireDefault(require("cpy"));
|
|
20
20
|
var _fsExtra = _interopRequireDefault(require("fs-extra"));
|
|
21
|
+
var _os = _interopRequireDefault(require("os"));
|
|
21
22
|
var _rollupPlugins = require("../rollup-plugins/index.cjs");
|
|
22
23
|
var _constants = require("../../constants/index.cjs");
|
|
24
|
+
var _util = require("../../util/index.cjs");
|
|
23
25
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
24
26
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
25
27
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -41,10 +43,18 @@ function defineRollupConfig(opts = {}) {
|
|
|
41
43
|
ignore: ["**/*.test.ts", "**/*.test.tsx", "**/*.d.ts"]
|
|
42
44
|
});
|
|
43
45
|
if (isProd) {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
+
const isWin = _os.default.platform() === "win32";
|
|
47
|
+
if (isWin) {
|
|
48
|
+
if (_fsExtra.default.pathExistsSync(assetsDir)) {
|
|
49
|
+
(0, _cpy.default)((0, _util.winToUnixPath)(assetsDir), (0, _util.winToUnixPath)(outDir));
|
|
50
|
+
}
|
|
51
|
+
(0, _cpy.default)((0, _util.winToUnixPath)(_path.default.resolve(cwd, "src/**/*.{vue,scss,css,less,d.ts}")), (0, _util.winToUnixPath)(outDir));
|
|
52
|
+
} else {
|
|
53
|
+
if (_fsExtra.default.pathExistsSync(assetsDir)) {
|
|
54
|
+
(0, _cpy.default)(assetsDir, outDir);
|
|
55
|
+
}
|
|
56
|
+
(0, _cpy.default)(_path.default.resolve(cwd, "src/**/*.{vue,scss,css,less,d.ts}"), outDir);
|
|
46
57
|
}
|
|
47
|
-
(0, _cpy.default)(_path.default.resolve(cwd, "src/**/*.{vue,scss,css,less,d.ts}"), outDir);
|
|
48
58
|
} else {
|
|
49
59
|
(0, _rollupPlugins.copyFile)([{
|
|
50
60
|
from: assetsDir,
|
|
@@ -76,7 +86,7 @@ function defineRollupConfig(opts = {}) {
|
|
|
76
86
|
external: _constants.DEFAULT_EXTERNAL,
|
|
77
87
|
output,
|
|
78
88
|
plugins: [(0, _rollupPlugins.ignoreCompilerFile)(externalCompileFileReg), (0, _pluginJson.default)(), (0, _pluginVue.default)({
|
|
79
|
-
isProduction:
|
|
89
|
+
isProduction: isProd
|
|
80
90
|
}), (0, _pluginVueJsx.default)({}), (0, _pluginNodeResolve.nodeResolve)({
|
|
81
91
|
extensions: [".cjs", ".mjs", ".js", ".ts"]
|
|
82
92
|
}), (0, _pluginCommonjs.default)(), (0, _rollupPluginEsbuild.default)({
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
declare module 'eslint-plugin-import';
|
package/es/constants/index.mjs
CHANGED
|
@@ -14,11 +14,15 @@ export const DEFAULT_EXTERNAL = [
|
|
|
14
14
|
"vue-grid-layout",
|
|
15
15
|
"vant",
|
|
16
16
|
"ant-design-vue",
|
|
17
|
+
"@gct-paas/build",
|
|
17
18
|
"@gct-paas/core",
|
|
19
|
+
"@gct-paas/core-mobile",
|
|
20
|
+
"@gct-paas/core-web",
|
|
18
21
|
"@gct-paas/design",
|
|
19
22
|
"@gct-paas/design-mobile",
|
|
20
23
|
"@gct-paas/design-web",
|
|
21
24
|
"@gct-paas/mobile",
|
|
25
|
+
"@gct-paas/scss",
|
|
22
26
|
"@gct-paas/web",
|
|
23
27
|
"systemjs"
|
|
24
28
|
];
|
|
@@ -1,24 +1,26 @@
|
|
|
1
1
|
import eslint from "@eslint/js";
|
|
2
|
-
import tsEslint
|
|
2
|
+
import tsEslint, {
|
|
3
|
+
parser
|
|
4
|
+
} from "typescript-eslint";
|
|
3
5
|
import eslintPluginVue from "eslint-plugin-vue";
|
|
6
|
+
import vueParser from "vue-eslint-parser";
|
|
4
7
|
import eslintPluginPrettierRecommended from "eslint-plugin-prettier/recommended";
|
|
5
8
|
import unusedImports from "eslint-plugin-unused-imports";
|
|
6
9
|
import eslintPluginImport from "eslint-plugin-import";
|
|
7
10
|
import globals from "globals";
|
|
8
11
|
export function defineEslintConfig(...configs) {
|
|
9
12
|
return tsEslint.config(
|
|
10
|
-
|
|
13
|
+
// 基础配置
|
|
11
14
|
eslint.configs.recommended,
|
|
12
|
-
/** ts推荐配置 */
|
|
13
15
|
tsEslint.configs.strict,
|
|
14
16
|
tsEslint.configs.stylistic,
|
|
15
|
-
/** vue推荐配置 */
|
|
16
17
|
eslintPluginVue.configs["flat/recommended"],
|
|
17
18
|
eslintPluginPrettierRecommended,
|
|
18
19
|
eslintPluginImport.flatConfigs.recommended,
|
|
19
20
|
eslintPluginImport.flatConfigs.warnings,
|
|
20
21
|
eslintPluginImport.flatConfigs.errors,
|
|
21
22
|
eslintPluginImport.flatConfigs.typescript,
|
|
23
|
+
// 自定义配置
|
|
22
24
|
{
|
|
23
25
|
ignores: [
|
|
24
26
|
"**/node_modules",
|
|
@@ -33,25 +35,27 @@ export function defineEslintConfig(...configs) {
|
|
|
33
35
|
"**/es",
|
|
34
36
|
"**/lib"
|
|
35
37
|
],
|
|
36
|
-
files: ["**/*.ts
|
|
38
|
+
files: ["**/*.{ts,tsx,vue}"],
|
|
37
39
|
plugins: {
|
|
38
40
|
"unused-imports": unusedImports
|
|
39
41
|
},
|
|
40
42
|
languageOptions: {
|
|
41
43
|
globals: {
|
|
42
|
-
...globals.browser
|
|
44
|
+
...globals.browser,
|
|
45
|
+
...globals.node
|
|
43
46
|
},
|
|
47
|
+
parser,
|
|
44
48
|
parserOptions: {
|
|
45
49
|
ecmaFeatures: {
|
|
46
|
-
// 全局严格模式
|
|
47
50
|
impliedStrict: true,
|
|
48
|
-
//
|
|
51
|
+
// 全局严格模式
|
|
49
52
|
jsx: true
|
|
53
|
+
// 启用 JSX
|
|
50
54
|
}
|
|
51
55
|
}
|
|
52
56
|
},
|
|
53
57
|
rules: {
|
|
54
|
-
//
|
|
58
|
+
// 基础规则覆盖
|
|
55
59
|
"no-console": "off",
|
|
56
60
|
"no-debugger": "off",
|
|
57
61
|
"no-undef": "off",
|
|
@@ -65,22 +69,20 @@ export function defineEslintConfig(...configs) {
|
|
|
65
69
|
"no-restricted-syntax": "off",
|
|
66
70
|
"no-continue": "off",
|
|
67
71
|
"no-unused-vars": "off",
|
|
72
|
+
// 关闭基础规则,由 TypeScript 规则接管
|
|
68
73
|
"no-extraneous-class": "off",
|
|
69
74
|
"no-param-reassign": "off",
|
|
70
75
|
"no-useless-constructor": "off",
|
|
71
76
|
"no-empty-function": "off",
|
|
72
|
-
// unused-imports
|
|
77
|
+
// unused-imports 插件规则
|
|
73
78
|
"unused-imports/no-unused-imports": "error",
|
|
74
79
|
"consistent-return": "off",
|
|
75
80
|
"func-names": "off",
|
|
76
|
-
// import
|
|
81
|
+
// import 插件规则
|
|
77
82
|
"import/no-unresolved": "off",
|
|
78
83
|
"import/extensions": "off",
|
|
79
84
|
"import/prefer-default-export": "off",
|
|
80
|
-
//
|
|
81
|
-
"vue/no-setup-props-destructure": "off",
|
|
82
|
-
"vue/require-default-prop": "off",
|
|
83
|
-
// typescript 配置覆盖
|
|
85
|
+
// TypeScript 规则覆盖
|
|
84
86
|
"@typescript-eslint/no-unused-vars": [
|
|
85
87
|
"error",
|
|
86
88
|
{
|
|
@@ -92,7 +94,7 @@ export function defineEslintConfig(...configs) {
|
|
|
92
94
|
"@typescript-eslint/explicit-module-boundary-types": "off",
|
|
93
95
|
"@typescript-eslint/no-non-null-assertion": "off",
|
|
94
96
|
"@typescript-eslint/no-extraneous-class": "off",
|
|
95
|
-
//
|
|
97
|
+
// 其他规则覆盖
|
|
96
98
|
"class-methods-use-this": "off",
|
|
97
99
|
"prefer-destructuring": "off"
|
|
98
100
|
}
|
|
@@ -100,8 +102,25 @@ export function defineEslintConfig(...configs) {
|
|
|
100
102
|
{
|
|
101
103
|
name: "ts-vue-override",
|
|
102
104
|
files: ["**/*.vue"],
|
|
105
|
+
languageOptions: {
|
|
106
|
+
parser: vueParser,
|
|
107
|
+
globals: { ...globals.browser, ...globals.node },
|
|
108
|
+
parserOptions: {
|
|
109
|
+
/** typescript项目需要用到这个 */
|
|
110
|
+
parser: tsEslint.parser,
|
|
111
|
+
ecmaVersion: "latest",
|
|
112
|
+
/** 允许在.vue 文件中使用 JSX */
|
|
113
|
+
ecmaFeatures: {
|
|
114
|
+
jsx: true
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
},
|
|
103
118
|
rules: {
|
|
104
|
-
"@typescript-eslint/no-unused-vars": "off"
|
|
119
|
+
"@typescript-eslint/no-unused-vars": "off",
|
|
120
|
+
"@typescript-eslint/no-unused-expressions": "off",
|
|
121
|
+
// Vue 规则覆盖
|
|
122
|
+
"vue/no-setup-props-destructure": "off",
|
|
123
|
+
"vue/require-default-prop": "off"
|
|
105
124
|
}
|
|
106
125
|
},
|
|
107
126
|
...configs
|
|
@@ -12,8 +12,10 @@ import vueJsx from "@vitejs/plugin-vue-jsx";
|
|
|
12
12
|
import * as rf from "rimraf";
|
|
13
13
|
import cpy from "cpy";
|
|
14
14
|
import fs from "fs-extra";
|
|
15
|
+
import os from "os";
|
|
15
16
|
import { copyFile, ignoreCompilerFile } from "../rollup-plugins/index.mjs";
|
|
16
17
|
import { DEFAULT_EXTERNAL, PROD_MODE } from "../../constants/index.mjs";
|
|
18
|
+
import { winToUnixPath } from "../../util/index.mjs";
|
|
17
19
|
export function defineRollupConfig(opts = {}) {
|
|
18
20
|
process.on("SIGINT", () => {
|
|
19
21
|
process.exit();
|
|
@@ -32,10 +34,21 @@ export function defineRollupConfig(opts = {}) {
|
|
|
32
34
|
ignore: ["**/*.test.ts", "**/*.test.tsx", "**/*.d.ts"]
|
|
33
35
|
});
|
|
34
36
|
if (isProd) {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
+
const isWin = os.platform() === "win32";
|
|
38
|
+
if (isWin) {
|
|
39
|
+
if (fs.pathExistsSync(assetsDir)) {
|
|
40
|
+
cpy(winToUnixPath(assetsDir), winToUnixPath(outDir));
|
|
41
|
+
}
|
|
42
|
+
cpy(
|
|
43
|
+
winToUnixPath(path.resolve(cwd, "src/**/*.{vue,scss,css,less,d.ts}")),
|
|
44
|
+
winToUnixPath(outDir)
|
|
45
|
+
);
|
|
46
|
+
} else {
|
|
47
|
+
if (fs.pathExistsSync(assetsDir)) {
|
|
48
|
+
cpy(assetsDir, outDir);
|
|
49
|
+
}
|
|
50
|
+
cpy(path.resolve(cwd, "src/**/*.{vue,scss,css,less,d.ts}"), outDir);
|
|
37
51
|
}
|
|
38
|
-
cpy(path.resolve(cwd, "src/**/*.{vue,scss,css,less,d.ts}"), outDir);
|
|
39
52
|
} else {
|
|
40
53
|
copyFile([
|
|
41
54
|
{
|
|
@@ -76,7 +89,7 @@ export function defineRollupConfig(opts = {}) {
|
|
|
76
89
|
ignoreCompilerFile(externalCompileFileReg),
|
|
77
90
|
json(),
|
|
78
91
|
vue({
|
|
79
|
-
isProduction:
|
|
92
|
+
isProduction: isProd
|
|
80
93
|
}),
|
|
81
94
|
vueJsx({}),
|
|
82
95
|
nodeResolve({
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
declare module 'eslint-plugin-import';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gct-paas/build",
|
|
3
|
-
"version": "0.0.1
|
|
3
|
+
"version": "0.0.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "paas 平台核心包",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"license": "MIT",
|
|
31
31
|
"author": "gct",
|
|
32
32
|
"scripts": {
|
|
33
|
-
"build": "
|
|
33
|
+
"build": "unbuild",
|
|
34
34
|
"lint": "eslint src/",
|
|
35
35
|
"publish:next": "npm run build && npm publish --access public --tag=next --registry=https://registry.npmjs.org/",
|
|
36
36
|
"publish:dev": "npm run build && npm publish --access public --tag=dev --registry=https://registry.npmjs.org/",
|
|
@@ -39,13 +39,13 @@
|
|
|
39
39
|
"publish:npm": "npm run build && npm publish --access public --registry=https://registry.npmjs.org/"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@babel/core": "^7.26.
|
|
43
|
-
"@babel/preset-env": "^7.26.
|
|
42
|
+
"@babel/core": "^7.26.9",
|
|
43
|
+
"@babel/preset-env": "^7.26.9",
|
|
44
44
|
"@commitlint/cli": "^19.7.1",
|
|
45
45
|
"@commitlint/config-conventional": "^19.7.1",
|
|
46
|
-
"@eslint/js": "^9.
|
|
47
|
-
"@gct-paas/scss": "^0.0.1
|
|
48
|
-
"@inquirer/prompts": "^7.3.
|
|
46
|
+
"@eslint/js": "^9.21.0",
|
|
47
|
+
"@gct-paas/scss": "^0.0.1",
|
|
48
|
+
"@inquirer/prompts": "^7.3.2",
|
|
49
49
|
"@rollup/plugin-babel": "^6.0.4",
|
|
50
50
|
"@rollup/plugin-commonjs": "^28.0.2",
|
|
51
51
|
"@rollup/plugin-eslint": "^9.0.5",
|
|
@@ -59,33 +59,34 @@
|
|
|
59
59
|
"commander": "^13.1.0",
|
|
60
60
|
"consola": "^3.4.0",
|
|
61
61
|
"copy-file": "^11.0.0",
|
|
62
|
-
"core-js": "^3.
|
|
62
|
+
"core-js": "^3.41.0",
|
|
63
63
|
"cpy": "^11.1.0",
|
|
64
64
|
"crypto": "^1.0.1",
|
|
65
65
|
"esbuild": "^0.25.0",
|
|
66
|
-
"eslint": "^9.
|
|
67
|
-
"eslint-config-prettier": "^10.0.
|
|
66
|
+
"eslint": "^9.21.0",
|
|
67
|
+
"eslint-config-prettier": "^10.0.2",
|
|
68
68
|
"eslint-plugin-import": "^2.31.0",
|
|
69
69
|
"eslint-plugin-prettier": "^5.2.3",
|
|
70
70
|
"eslint-plugin-unused-imports": "^4.1.4",
|
|
71
71
|
"eslint-plugin-vue": "^9.32.0",
|
|
72
72
|
"fast-glob": "^3.3.3",
|
|
73
73
|
"fs-extra": "^11.3.0",
|
|
74
|
-
"globals": "^
|
|
74
|
+
"globals": "^16.0.0",
|
|
75
75
|
"lodash-es": "^4.17.21",
|
|
76
76
|
"ora": "^8.2.0",
|
|
77
77
|
"picocolors": "^1.1.1",
|
|
78
|
-
"prettier": "^3.5.
|
|
78
|
+
"prettier": "^3.5.3",
|
|
79
79
|
"rimraf": "^6.0.1",
|
|
80
|
-
"rollup": "^4.34.
|
|
81
|
-
"rollup-plugin-esbuild": "^6.2.
|
|
82
|
-
"stylelint": "^16.
|
|
80
|
+
"rollup": "^4.34.9",
|
|
81
|
+
"rollup-plugin-esbuild": "^6.2.1",
|
|
82
|
+
"stylelint": "^16.15.0",
|
|
83
83
|
"stylelint-config-standard": "^37.0.0",
|
|
84
84
|
"stylelint-config-standard-scss": "^14.0.0",
|
|
85
|
-
"typescript-eslint": "^8.
|
|
86
|
-
"vite": "^6.
|
|
87
|
-
"vite-plugin-dts": "^4.5.
|
|
88
|
-
"vue-
|
|
85
|
+
"typescript-eslint": "^8.26.0",
|
|
86
|
+
"vite": "^6.2.0",
|
|
87
|
+
"vite-plugin-dts": "^4.5.3",
|
|
88
|
+
"vue-eslint-parser": "^9.4.3",
|
|
89
|
+
"vue-tsc": "^2.2.8"
|
|
89
90
|
},
|
|
90
91
|
"devDependencies": {
|
|
91
92
|
"@commitlint/types": "^19.5.0",
|
|
@@ -93,9 +94,9 @@
|
|
|
93
94
|
"@types/babel__preset-env": "^7.10.0",
|
|
94
95
|
"@types/fs-extra": "^11.0.4",
|
|
95
96
|
"@types/lodash-es": "^4.17.12",
|
|
96
|
-
"@types/node": "^22.13.
|
|
97
|
-
"typescript": "^5.
|
|
98
|
-
"unbuild": "^3.
|
|
97
|
+
"@types/node": "^22.13.9",
|
|
98
|
+
"typescript": "^5.8.2",
|
|
99
|
+
"unbuild": "^3.5.0"
|
|
99
100
|
},
|
|
100
|
-
"gitHead": "
|
|
101
|
+
"gitHead": "9facb3521bdf435120898d743c13610da0250610"
|
|
101
102
|
}
|