@seayoo-web/scripts 3.1.5 → 3.1.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/index.js +3 -1
- package/dist/node.js +4 -7
- package/package.json +16 -16
package/dist/index.js
CHANGED
|
@@ -255,6 +255,7 @@ function definePageBuildConfig(option) {
|
|
|
255
255
|
"core-js/es/symbol/iterator"
|
|
256
256
|
],
|
|
257
257
|
additionalModernPolyfills: [
|
|
258
|
+
"core-js/es/global-this",
|
|
258
259
|
"core-js/es/array/flat",
|
|
259
260
|
"core-js/es/array/flat-map",
|
|
260
261
|
"core-js/es/promise/all-settled",
|
|
@@ -293,7 +294,8 @@ function definePageBuildConfig(option) {
|
|
|
293
294
|
authToken: envs.sentryAuthToken,
|
|
294
295
|
org: sentry.org || "sentry",
|
|
295
296
|
url: sentry.url || "https://sentry.seayoo.com",
|
|
296
|
-
project: sentry.project || "gamer-fe"
|
|
297
|
+
project: sentry.project || "gamer-fe",
|
|
298
|
+
...plugins
|
|
297
299
|
}) : null,
|
|
298
300
|
justBuild ? visualizer() : null
|
|
299
301
|
],
|
package/dist/node.js
CHANGED
|
@@ -31,7 +31,6 @@ async function initRepoQuestions$1() {
|
|
|
31
31
|
return [
|
|
32
32
|
{
|
|
33
33
|
type: "list",
|
|
34
|
-
name: "project",
|
|
35
34
|
message: "选择项目:",
|
|
36
35
|
choices: projects.map((project) => ({
|
|
37
36
|
name: `${project.id} ${project.name}`,
|
|
@@ -41,7 +40,6 @@ async function initRepoQuestions$1() {
|
|
|
41
40
|
},
|
|
42
41
|
{
|
|
43
42
|
type: "list",
|
|
44
|
-
name: "template",
|
|
45
43
|
message: "选择模板:",
|
|
46
44
|
choices: templates.map((template) => ({
|
|
47
45
|
name: `${template.id} ${template.desc}`,
|
|
@@ -51,8 +49,8 @@ async function initRepoQuestions$1() {
|
|
|
51
49
|
},
|
|
52
50
|
{
|
|
53
51
|
type: "input",
|
|
54
|
-
name: "repoName",
|
|
55
52
|
message: "仓库名称:",
|
|
53
|
+
//@ts-expect-error known issue
|
|
56
54
|
validate: (input) => {
|
|
57
55
|
if (/^[a-z0-9-]+$/.test(input)) return true;
|
|
58
56
|
return "仓库名称只能包含小写字母、数字和中横线";
|
|
@@ -60,7 +58,6 @@ async function initRepoQuestions$1() {
|
|
|
60
58
|
},
|
|
61
59
|
{
|
|
62
60
|
type: "input",
|
|
63
|
-
name: "description",
|
|
64
61
|
message: "仓库描述:",
|
|
65
62
|
default: ""
|
|
66
63
|
}
|
|
@@ -71,8 +68,8 @@ async function initProjectQuestions$1() {
|
|
|
71
68
|
return [
|
|
72
69
|
{
|
|
73
70
|
type: "input",
|
|
74
|
-
name: "project",
|
|
75
71
|
message: "项目 ID:",
|
|
72
|
+
//@ts-expect-error known issue
|
|
76
73
|
validate: (input) => {
|
|
77
74
|
if (!/^[a-zA-Z0-9-_]+$/.test(input)) {
|
|
78
75
|
return "项目名称只能包含字母、数字、下划线和横线";
|
|
@@ -85,8 +82,8 @@ async function initProjectQuestions$1() {
|
|
|
85
82
|
},
|
|
86
83
|
{
|
|
87
84
|
type: "input",
|
|
88
|
-
name: "name",
|
|
89
85
|
message: "中文名称:",
|
|
86
|
+
//@ts-expect-error known issue
|
|
90
87
|
validate: (input) => {
|
|
91
88
|
if (!input) {
|
|
92
89
|
return "中文名称不能为空";
|
|
@@ -276,7 +273,7 @@ async function destroyRepo() {
|
|
|
276
273
|
await createBackupTag("page", `${answers.project}/${answers.page}`);
|
|
277
274
|
spinner.text = "开始清理文件...";
|
|
278
275
|
const pageDir = path.join(root, answers.project, answers.page);
|
|
279
|
-
|
|
276
|
+
fs.removeSync(pageDir);
|
|
280
277
|
spinner.text = "提交代码中...";
|
|
281
278
|
await submitAllDeletionChanges(`chore: destroy page ${answers.project}/${answers.page}`);
|
|
282
279
|
spinner.succeed("页面已经销毁!".green);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seayoo-web/scripts",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.7",
|
|
4
4
|
"description": "scripts for seayoo web repos",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"source": "index.ts",
|
|
@@ -33,33 +33,33 @@
|
|
|
33
33
|
"access": "public"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@sentry/vite-plugin": "^4.
|
|
36
|
+
"@sentry/vite-plugin": "^4.6.1",
|
|
37
37
|
"@vitejs/plugin-legacy": "^7.2.1",
|
|
38
|
-
"@vitejs/plugin-vue": "^6.0.
|
|
38
|
+
"@vitejs/plugin-vue": "^6.0.3",
|
|
39
39
|
"@vue/eslint-config-prettier": "^10.2.0",
|
|
40
40
|
"@vue/eslint-config-typescript": "^14.6.0",
|
|
41
41
|
"chokidar": "^4.0.3",
|
|
42
42
|
"colors": "^1.4.0",
|
|
43
43
|
"commander": "^13.1.0",
|
|
44
44
|
"eslint-plugin-import": "^2.32.0",
|
|
45
|
-
"eslint-plugin-vue": "^10.
|
|
46
|
-
"fs-extra": "^11.3.
|
|
45
|
+
"eslint-plugin-vue": "^10.6.2",
|
|
46
|
+
"fs-extra": "^11.3.3",
|
|
47
47
|
"html-minifier-terser": "^7.2.0",
|
|
48
|
-
"inquirer": "^
|
|
49
|
-
"jiti": "^2.
|
|
48
|
+
"inquirer": "^13.1.0",
|
|
49
|
+
"jiti": "^2.6.1",
|
|
50
50
|
"ora": "^8.2.0",
|
|
51
51
|
"postcss-html": "^1.8.0",
|
|
52
|
-
"rollup-plugin-visualizer": "^6.0.
|
|
53
|
-
"stylelint-order": "^7.0.
|
|
54
|
-
"terser": "^5.
|
|
52
|
+
"rollup-plugin-visualizer": "^6.0.5",
|
|
53
|
+
"stylelint-order": "^7.0.1",
|
|
54
|
+
"terser": "^5.44.1",
|
|
55
55
|
"vite-plugin-stylelint": "^6.0.2",
|
|
56
56
|
"@seayoo-web/finder": "^2.2.2"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@types/fs-extra": "^11.0.4",
|
|
60
60
|
"@types/html-minifier-terser": "^7.0.2",
|
|
61
|
-
"@types/node": "^22.
|
|
62
|
-
"@typescript-eslint/utils": "^8.
|
|
61
|
+
"@types/node": "^22.19.3",
|
|
62
|
+
"@typescript-eslint/utils": "^8.52.0",
|
|
63
63
|
"eslint": "^9.33.0",
|
|
64
64
|
"stylelint": "^16.23.1",
|
|
65
65
|
"stylelint-config-recess-order": "^7.2.0",
|
|
@@ -67,10 +67,10 @@
|
|
|
67
67
|
"@seayoo-web/tsconfig": "^1.0.5"
|
|
68
68
|
},
|
|
69
69
|
"optionalDependencies": {
|
|
70
|
-
"eslint": "^9.
|
|
71
|
-
"stylelint": "^16.
|
|
72
|
-
"stylelint-config-recess-order": "^7.
|
|
73
|
-
"stylelint-config-standard": "^39.0.
|
|
70
|
+
"eslint": "^9.39.2",
|
|
71
|
+
"stylelint": "^16.26.1",
|
|
72
|
+
"stylelint-config-recess-order": "^7.4.0",
|
|
73
|
+
"stylelint-config-standard": "^39.0.1"
|
|
74
74
|
},
|
|
75
75
|
"scripts": {
|
|
76
76
|
"build": "vite build && tsc --emitDeclarationOnly",
|