@seayoo-web/scripts 3.1.6 → 3.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/dist/{git-8eP8TYSu.js → git-B0Cnp5wC.js} +2 -2
- package/dist/index.js +3 -2
- package/dist/node.js +7 -5
- package/package.json +16 -16
- package/types/src/destory.d.ts +1 -1
- package/types/src/postcss.d.ts +7 -0
|
@@ -223,7 +223,7 @@ async function createPageDeployTag(page, deployTo, finderUser) {
|
|
|
223
223
|
);
|
|
224
224
|
try {
|
|
225
225
|
await execCmd(`git push origin -f ${tagName}`, true);
|
|
226
|
-
} catch
|
|
226
|
+
} catch {
|
|
227
227
|
await execCmd(`git push origin -f --tags`, true);
|
|
228
228
|
}
|
|
229
229
|
}
|
|
@@ -281,7 +281,7 @@ async function createBackupTag(action, info) {
|
|
|
281
281
|
await execCmd(`git tag -f ${tagName} -m "${getNowTime()} destroyed by ${user}"`);
|
|
282
282
|
try {
|
|
283
283
|
await execCmd(`git push origin -f ${tagName}`, true);
|
|
284
|
-
} catch
|
|
284
|
+
} catch {
|
|
285
285
|
await execCmd(`git push origin --tags`, true);
|
|
286
286
|
}
|
|
287
287
|
}
|
package/dist/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import { sentryVitePlugin } from "@sentry/vite-plugin";
|
|
|
6
6
|
import legacy from "@vitejs/plugin-legacy";
|
|
7
7
|
import { existsSync, readFileSync, statSync, readdirSync } from "fs";
|
|
8
8
|
import { loadEnv } from "vite";
|
|
9
|
-
import { g as getNowTime, a as getCommitInfo, c as createPageDeployTag } from "./git-
|
|
9
|
+
import { g as getNowTime, a as getCommitInfo, c as createPageDeployTag } from "./git-B0Cnp5wC.js";
|
|
10
10
|
import "colors";
|
|
11
11
|
import skipFormatting from "@vue/eslint-config-prettier/skip-formatting";
|
|
12
12
|
import { vueTsConfigs, defineConfigWithVueTs } from "@vue/eslint-config-typescript";
|
|
@@ -294,7 +294,8 @@ function definePageBuildConfig(option) {
|
|
|
294
294
|
authToken: envs.sentryAuthToken,
|
|
295
295
|
org: sentry.org || "sentry",
|
|
296
296
|
url: sentry.url || "https://sentry.seayoo.com",
|
|
297
|
-
project: sentry.project || "gamer-fe"
|
|
297
|
+
project: sentry.project || "gamer-fe",
|
|
298
|
+
...plugins
|
|
298
299
|
}) : null,
|
|
299
300
|
justBuild ? visualizer() : null
|
|
300
301
|
],
|
package/dist/node.js
CHANGED
|
@@ -5,7 +5,7 @@ import { Command } from "commander";
|
|
|
5
5
|
import fs from "fs-extra";
|
|
6
6
|
import inquirer from "inquirer";
|
|
7
7
|
import ora from "ora";
|
|
8
|
-
import { b as getMonorepoRoot, d as addProjectToWorkspace, e as copyTemplate, f as copyGlobalFiles, h as getProjects, i as getTemplates, j as checkGitStatusBeforeDestroy, k as createBackupTag, r as removeProjectFromWorkspace, s as submitAllDeletionChanges, l as getRepos, m as isPlainObject, n as format, o as deepMerge } from "./git-
|
|
8
|
+
import { b as getMonorepoRoot, d as addProjectToWorkspace, e as copyTemplate, f as copyGlobalFiles, h as getProjects, i as getTemplates, j as checkGitStatusBeforeDestroy, k as createBackupTag, r as removeProjectFromWorkspace, s as submitAllDeletionChanges, l as getRepos, m as isPlainObject, n as format, o as deepMerge } from "./git-B0Cnp5wC.js";
|
|
9
9
|
import { finderUpload } from "@seayoo-web/finder";
|
|
10
10
|
import { finderDeploy, finderUpload as finderUpload2 } from "@seayoo-web/finder";
|
|
11
11
|
import { createServer } from "http";
|
|
@@ -31,6 +31,7 @@ async function initRepoQuestions$1() {
|
|
|
31
31
|
return [
|
|
32
32
|
{
|
|
33
33
|
type: "list",
|
|
34
|
+
//@ts-expect-error known issue
|
|
34
35
|
name: "project",
|
|
35
36
|
message: "选择项目:",
|
|
36
37
|
choices: projects.map((project) => ({
|
|
@@ -41,6 +42,7 @@ async function initRepoQuestions$1() {
|
|
|
41
42
|
},
|
|
42
43
|
{
|
|
43
44
|
type: "list",
|
|
45
|
+
//@ts-expect-error known issue
|
|
44
46
|
name: "template",
|
|
45
47
|
message: "选择模板:",
|
|
46
48
|
choices: templates.map((template) => ({
|
|
@@ -51,6 +53,7 @@ async function initRepoQuestions$1() {
|
|
|
51
53
|
},
|
|
52
54
|
{
|
|
53
55
|
type: "input",
|
|
56
|
+
//@ts-expect-error known issue
|
|
54
57
|
name: "repoName",
|
|
55
58
|
message: "仓库名称:",
|
|
56
59
|
validate: (input) => {
|
|
@@ -60,7 +63,6 @@ async function initRepoQuestions$1() {
|
|
|
60
63
|
},
|
|
61
64
|
{
|
|
62
65
|
type: "input",
|
|
63
|
-
name: "description",
|
|
64
66
|
message: "仓库描述:",
|
|
65
67
|
default: ""
|
|
66
68
|
}
|
|
@@ -71,8 +73,8 @@ async function initProjectQuestions$1() {
|
|
|
71
73
|
return [
|
|
72
74
|
{
|
|
73
75
|
type: "input",
|
|
74
|
-
name: "project",
|
|
75
76
|
message: "项目 ID:",
|
|
77
|
+
//@ts-expect-error known issue
|
|
76
78
|
validate: (input) => {
|
|
77
79
|
if (!/^[a-zA-Z0-9-_]+$/.test(input)) {
|
|
78
80
|
return "项目名称只能包含字母、数字、下划线和横线";
|
|
@@ -85,8 +87,8 @@ async function initProjectQuestions$1() {
|
|
|
85
87
|
},
|
|
86
88
|
{
|
|
87
89
|
type: "input",
|
|
88
|
-
name: "name",
|
|
89
90
|
message: "中文名称:",
|
|
91
|
+
//@ts-expect-error known issue
|
|
90
92
|
validate: (input) => {
|
|
91
93
|
if (!input) {
|
|
92
94
|
return "中文名称不能为空";
|
|
@@ -276,7 +278,7 @@ async function destroyRepo() {
|
|
|
276
278
|
await createBackupTag("page", `${answers.project}/${answers.page}`);
|
|
277
279
|
spinner.text = "开始清理文件...";
|
|
278
280
|
const pageDir = path.join(root, answers.project, answers.page);
|
|
279
|
-
|
|
281
|
+
fs.removeSync(pageDir);
|
|
280
282
|
spinner.text = "提交代码中...";
|
|
281
283
|
await submitAllDeletionChanges(`chore: destroy page ${answers.project}/${answers.page}`);
|
|
282
284
|
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.8",
|
|
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": "^12.
|
|
49
|
-
"jiti": "^2.
|
|
48
|
+
"inquirer": "^12.11.1",
|
|
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",
|
package/types/src/destory.d.ts
CHANGED