@tomjs/create-app 4.2.0 → 5.0.0
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.mjs +10 -9
- package/locales/en-US.json +1 -0
- package/locales/zh-CN.json +1 -0
- package/package.json +1 -1
- package/templates/config/base/.vscode/settings.json +1 -1
- package/templates/config/base/package.json +1 -0
- package/templates/config/electron/package.json +13 -0
- package/templates/config/npm/LICENSE +21 -0
- package/templates/config/npm/package.json +10 -0
- package/templates/config/public/package.json +1 -8
- package/templates/{web-react → config/react}/_eslint.config.mjs +0 -1
- package/templates/config/react/package.json +15 -0
- package/templates/config/style/lint-staged.config.mjs +1 -1
- package/templates/{vscode-vue → config/vscode}/.vscode/settings.json +1 -1
- package/templates/config/vscode/package.json +49 -0
- package/templates/config/vue/package.json +11 -0
- package/templates/electron-react/package.json +3 -25
- package/templates/electron-react/pnpm-workspace.yaml +1 -0
- package/templates/electron-vue/package.json +3 -19
- package/templates/electron-vue/pnpm-workspace.yaml +1 -0
- package/templates/electron-vue/tsconfig.node.json +1 -1
- package/templates/node-cli/.vscode/settings.json +15 -51
- package/templates/node-vite/examples/react/package.json +1 -1
- package/templates/node-vite/examples/react/vite.config.ts +2 -2
- package/templates/node-vite/examples/vue/package.json +1 -1
- package/templates/node-vite/examples/vue/vite.config.ts +2 -2
- package/templates/vscode-base/.vscode/launch.json +1 -0
- package/templates/vscode-base/.vscode/settings.json +1 -1
- package/templates/vscode-base/.vscode/tasks.json +1 -1
- package/templates/vscode-react/package.json +1 -54
- package/templates/vscode-react/tsconfig.app.json +2 -8
- package/templates/vscode-react/tsconfig.node.json +2 -7
- package/templates/vscode-vue/package.json +1 -50
- package/templates/vscode-vue/tsconfig.app.json +2 -9
- package/templates/vscode-vue/tsconfig.node.json +2 -7
- package/templates/web-react/package.json +0 -16
- package/templates/web-react/tsconfig.app.json +2 -8
- package/templates/web-react/tsconfig.json +2 -6
- package/templates/web-react/tsconfig.node.json +1 -3
- package/templates/web-vue/package.json +0 -10
- package/templates/web-vue/tsconfig.app.json +2 -9
- package/templates/web-vue/tsconfig.json +2 -6
- package/templates/web-vue/tsconfig.node.json +1 -3
- package/templates/electron-react/_eslint.config.mjs +0 -3
- package/templates/electron-react/electron/env.d.ts +0 -1
- package/templates/electron-react/electron/main/index.ts +0 -130
- package/templates/electron-vue/.vscode/launch.json +0 -48
- package/templates/electron-vue/.vscode/tasks.json +0 -67
- package/templates/electron-vue/_eslint.config.mjs +0 -3
- package/templates/electron-vue/electron/preload/index.ts +0 -4
- package/templates/vscode-react/.vscode/settings.json +0 -59
- package/templates/vscode-vue/.vscode/extensions.json +0 -5
- package/templates/vscode-vue/.vscode/launch.json +0 -34
- package/templates/vscode-vue/.vscode/tasks.json +0 -45
- package/templates/vscode-vue/.vscodeignore +0 -73
- package/templates/vscode-vue/_.gitignore +0 -65
- package/templates/vscode-vue/extension/index.ts +0 -21
- package/templates/vscode-vue/extension/views/helper.ts +0 -29
- package/templates/vscode-vue/extension/views/panel.ts +0 -49
- package/templates/vscode-vue/locales/en.json +0 -6
- package/templates/vscode-vue/locales/zh-CN.json +0 -6
- package/templates/vscode-vue/resources/logo.png +0 -0
- package/templates/vscode-vue/resources/logo.svg +0 -1
- package/templates/web-vue/_eslint.config.mjs +0 -6
- package/templates/web-vue/public/vite.svg +0 -1
- /package/templates/{electron-react → config/electron}/.vscode/launch.json +0 -0
- /package/templates/{electron-react → config/electron}/.vscode/tasks.json +0 -0
- /package/templates/{electron-vue → config/electron}/electron/main/index.ts +0 -0
- /package/templates/{electron-react → config/electron}/electron/preload/index.ts +0 -0
- /package/templates/{electron-react → config/electron}/public/vite.svg +0 -0
- /package/templates/config/{public → npm}/README.md +0 -0
- /package/templates/config/{public → npm}/README.zh_CN.md +0 -0
- /package/templates/{electron-vue → config/react}/public/vite.svg +0 -0
- /package/templates/{vscode-react → config/vscode}/.vscode/extensions.json +0 -0
- /package/templates/{vscode-react → config/vscode}/.vscode/launch.json +0 -0
- /package/templates/{vscode-react → config/vscode}/.vscode/tasks.json +0 -0
- /package/templates/{vscode-react → config/vscode}/.vscodeignore +0 -0
- /package/templates/{vscode-react → config/vscode}/_.gitignore +0 -0
- /package/templates/{vscode-react → config/vscode}/extension/index.ts +0 -0
- /package/templates/{vscode-react → config/vscode}/extension/views/helper.ts +0 -0
- /package/templates/{vscode-react → config/vscode}/extension/views/panel.ts +0 -0
- /package/templates/{vscode-react → config/vscode}/locales/en.json +0 -0
- /package/templates/{vscode-react → config/vscode}/locales/zh-CN.json +0 -0
- /package/templates/{vscode-react → config/vscode}/resources/logo.png +0 -0
- /package/templates/{vscode-react → config/vscode}/resources/logo.svg +0 -0
- /package/templates/{web-react → config/vue}/public/vite.svg +0 -0
|
@@ -5,60 +5,11 @@
|
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"description": "%description%",
|
|
7
7
|
"license": "MIT",
|
|
8
|
-
"keywords": [
|
|
9
|
-
"vscode"
|
|
10
|
-
],
|
|
11
|
-
"categories": [
|
|
12
|
-
"Other"
|
|
13
|
-
],
|
|
14
8
|
"main": "dist/extension/index.js",
|
|
15
|
-
"icon": "resources/logo.png",
|
|
16
|
-
"engines": {
|
|
17
|
-
"node": ">=14.16.0",
|
|
18
|
-
"vscode": "^1.56.0"
|
|
19
|
-
},
|
|
20
|
-
"activationEvents": [],
|
|
21
|
-
"contributes": {
|
|
22
|
-
"commands": [
|
|
23
|
-
{
|
|
24
|
-
"command": "tomjs.xxx.showHello",
|
|
25
|
-
"title": "%tomjs.commands.hello%",
|
|
26
|
-
"category": "%displayName%"
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
"command": "tomjs.xxx.showPanel",
|
|
30
|
-
"title": "%tomjs.commands.panel%",
|
|
31
|
-
"category": "%displayName%"
|
|
32
|
-
}
|
|
33
|
-
]
|
|
34
|
-
},
|
|
35
|
-
"vsce": {
|
|
36
|
-
"dependencies": false,
|
|
37
|
-
"yarn": false
|
|
38
|
-
},
|
|
39
9
|
"scripts": {
|
|
40
|
-
"
|
|
41
|
-
"dev:vsd": "vscode-dev --watch",
|
|
42
|
-
"dev:dist": "vite",
|
|
43
|
-
"build": "vscode-dev && vue-tsc --noEmit && vite build",
|
|
44
|
-
"preview": "vite preview"
|
|
10
|
+
"build": "vscode-dev && vue-tsc --noEmit && vite build"
|
|
45
11
|
},
|
|
46
12
|
"dependencies": {
|
|
47
|
-
"@tomjs/node": "^2.2.3",
|
|
48
|
-
"@tomjs/vscode": "^2.5.0",
|
|
49
|
-
"@tomjs/vscode-webview": "^2.0.2",
|
|
50
|
-
"@vscode/webview-ui-toolkit": "^1.4.0",
|
|
51
|
-
"vue": "^3.5.26",
|
|
52
13
|
"vue-i18n": "^11.2.8"
|
|
53
|
-
},
|
|
54
|
-
"devDependencies": {
|
|
55
|
-
"@tomjs/vite-plugin-vscode": "^6.1.0",
|
|
56
|
-
"@tomjs/vscode-dev": "^3.1.2",
|
|
57
|
-
"@types/vscode": "^1.56.0",
|
|
58
|
-
"@types/vscode-webview": "^1.57.5",
|
|
59
|
-
"@vitejs/plugin-vue": "^6.0.3",
|
|
60
|
-
"vite": "^7.3.0",
|
|
61
|
-
"vite-plugin-vue-devtools": "^8.0.5",
|
|
62
|
-
"vue-tsc": "^3.2.1"
|
|
63
14
|
}
|
|
64
15
|
}
|
|
@@ -3,14 +3,7 @@
|
|
|
3
3
|
"compilerOptions": {
|
|
4
4
|
"composite": true,
|
|
5
5
|
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
|
|
6
|
-
"types": [
|
|
7
|
-
"vite/client"
|
|
8
|
-
]
|
|
6
|
+
"types": ["vite/client"]
|
|
9
7
|
},
|
|
10
|
-
"include": [
|
|
11
|
-
"src/**/*.ts",
|
|
12
|
-
"src/**/*.tsx",
|
|
13
|
-
"src/**/*.vue",
|
|
14
|
-
"src/**/*.d.ts"
|
|
15
|
-
]
|
|
8
|
+
"include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.vue", "src/**/*.d.ts"]
|
|
16
9
|
}
|
|
@@ -2,12 +2,7 @@
|
|
|
2
2
|
"extends": "@tomjs/tsconfig/node.json",
|
|
3
3
|
"compilerOptions": {
|
|
4
4
|
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
|
|
5
|
-
"types": [
|
|
6
|
-
"@tomjs/vite-plugin-vscode/types"
|
|
7
|
-
]
|
|
5
|
+
"types": ["@tomjs/vite-plugin-vscode/types"]
|
|
8
6
|
},
|
|
9
|
-
"include": [
|
|
10
|
-
"extension",
|
|
11
|
-
"*.config.ts"
|
|
12
|
-
]
|
|
7
|
+
"include": ["extension", "*.config.ts"]
|
|
13
8
|
}
|
|
@@ -6,22 +6,6 @@
|
|
|
6
6
|
"scripts": {
|
|
7
7
|
"dev": "vite",
|
|
8
8
|
"build": "tsc -b && vite build",
|
|
9
|
-
"lint": "eslint .",
|
|
10
9
|
"preview": "vite preview"
|
|
11
|
-
},
|
|
12
|
-
"dependencies": {
|
|
13
|
-
"react": "^19.2.3",
|
|
14
|
-
"react-dom": "^19.2.3"
|
|
15
|
-
},
|
|
16
|
-
"devDependencies": {
|
|
17
|
-
"@eslint-react/eslint-plugin": "^2.4.0",
|
|
18
|
-
"@types/node": "^22.19.3",
|
|
19
|
-
"@types/react": "^19.2.7",
|
|
20
|
-
"@types/react-dom": "^19.2.3",
|
|
21
|
-
"@vitejs/plugin-react-swc": "^4.2.2",
|
|
22
|
-
"eslint-plugin-react-hooks": "^7.0.1",
|
|
23
|
-
"eslint-plugin-react-refresh": "^0.4.26",
|
|
24
|
-
"typescript": "~5.9.3",
|
|
25
|
-
"vite": "^7.3.0"
|
|
26
10
|
}
|
|
27
11
|
}
|
|
@@ -3,13 +3,7 @@
|
|
|
3
3
|
"compilerOptions": {
|
|
4
4
|
"composite": true,
|
|
5
5
|
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
|
|
6
|
-
"types": [
|
|
7
|
-
"vite/client"
|
|
8
|
-
]
|
|
6
|
+
"types": ["vite/client"]
|
|
9
7
|
},
|
|
10
|
-
"include": [
|
|
11
|
-
"src/**/*.ts",
|
|
12
|
-
"src/**/*.tsx",
|
|
13
|
-
"src/**/*.d.ts"
|
|
14
|
-
]
|
|
8
|
+
"include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.d.ts"]
|
|
15
9
|
}
|
|
@@ -7,15 +7,5 @@
|
|
|
7
7
|
"dev": "vite",
|
|
8
8
|
"build": "vue-tsc -b && vite build",
|
|
9
9
|
"preview": "vite preview"
|
|
10
|
-
},
|
|
11
|
-
"dependencies": {
|
|
12
|
-
"vue": "^3.5.26"
|
|
13
|
-
},
|
|
14
|
-
"devDependencies": {
|
|
15
|
-
"@types/node": "^22.19.3",
|
|
16
|
-
"@vitejs/plugin-vue": "^6.0.3",
|
|
17
|
-
"typescript": "~5.9.3",
|
|
18
|
-
"vite": "^7.3.0",
|
|
19
|
-
"vue-tsc": "^3.2.1"
|
|
20
10
|
}
|
|
21
11
|
}
|
|
@@ -3,14 +3,7 @@
|
|
|
3
3
|
"compilerOptions": {
|
|
4
4
|
"composite": true,
|
|
5
5
|
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
|
|
6
|
-
"types": [
|
|
7
|
-
"vite/client"
|
|
8
|
-
]
|
|
6
|
+
"types": ["vite/client"]
|
|
9
7
|
},
|
|
10
|
-
"include": [
|
|
11
|
-
"src/**/*.ts",
|
|
12
|
-
"src/**/*.d.ts",
|
|
13
|
-
"src/**/*.tsx",
|
|
14
|
-
"src/**/*.vue"
|
|
15
|
-
]
|
|
8
|
+
"include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue"]
|
|
16
9
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/// <reference types="@tomjs/vite-plugin-electron/env" />
|
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
import { release } from 'node:os';
|
|
2
|
-
import { join } from 'node:path';
|
|
3
|
-
import { ELECTRON_EXIT } from '@tomjs/vite-plugin-electron/electron';
|
|
4
|
-
import { app, BrowserWindow, ipcMain, shell } from 'electron';
|
|
5
|
-
|
|
6
|
-
console.log('Electron Main Process!');
|
|
7
|
-
|
|
8
|
-
const isDev = process.env.NODE_ENV === 'development';
|
|
9
|
-
process.env.DIST = join(__dirname, '../renderer');
|
|
10
|
-
|
|
11
|
-
console.log('process.env.DIST', process.env.DIST);
|
|
12
|
-
console.log('process.env.VITE_DEV_SERVER_URL', process.env.VITE_DEV_SERVER_URL);
|
|
13
|
-
|
|
14
|
-
// Disable GPU Acceleration for Windows 7
|
|
15
|
-
if (release().startsWith('6.1'))
|
|
16
|
-
app.disableHardwareAcceleration();
|
|
17
|
-
|
|
18
|
-
// Set application name for Windows 10+ notifications
|
|
19
|
-
if (process.platform === 'win32')
|
|
20
|
-
app.setAppUserModelId(app.getName());
|
|
21
|
-
|
|
22
|
-
if (!app.requestSingleInstanceLock()) {
|
|
23
|
-
app.quit();
|
|
24
|
-
process.exit(0);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
// Remove electron security warnings
|
|
28
|
-
// This warning only shows in development mode
|
|
29
|
-
// Read more on https://www.electronjs.org/docs/latest/tutorial/security
|
|
30
|
-
// process.env['ELECTRON_DISABLE_SECURITY_WARNINGS'] = 'true'
|
|
31
|
-
|
|
32
|
-
let win: BrowserWindow | null = null;
|
|
33
|
-
// Here, you can also use other preload
|
|
34
|
-
const preload = join(__dirname, '../preload/index.js');
|
|
35
|
-
const url = process.env.VITE_DEV_SERVER_URL as string;
|
|
36
|
-
const indexHtml = join(process.env.DIST, 'index.html');
|
|
37
|
-
|
|
38
|
-
function createWindow() {
|
|
39
|
-
win = new BrowserWindow({
|
|
40
|
-
title: 'Main window',
|
|
41
|
-
width: 800,
|
|
42
|
-
height: 700,
|
|
43
|
-
webPreferences: {
|
|
44
|
-
preload,
|
|
45
|
-
// Warning: Enable nodeIntegration and disable contextIsolation is not secure in production
|
|
46
|
-
// Consider using contextBridge.exposeInMainWorld
|
|
47
|
-
// Read more on https://www.electronjs.org/docs/latest/tutorial/context-isolation
|
|
48
|
-
nodeIntegration: true,
|
|
49
|
-
contextIsolation: false,
|
|
50
|
-
},
|
|
51
|
-
});
|
|
52
|
-
|
|
53
|
-
if (isDev) {
|
|
54
|
-
// electron-vite-vue#298
|
|
55
|
-
win.loadURL(url);
|
|
56
|
-
// Open devTool if the app is not packaged
|
|
57
|
-
}
|
|
58
|
-
else {
|
|
59
|
-
win.loadFile(indexHtml);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
// Test actively push message to the Electron-Renderer
|
|
63
|
-
win.webContents.on('did-finish-load', () => {
|
|
64
|
-
win?.webContents.send('main-process-message', new Date().toLocaleString());
|
|
65
|
-
});
|
|
66
|
-
|
|
67
|
-
// Make all links open with the browser, not with the application
|
|
68
|
-
win.webContents.setWindowOpenHandler(({ url }) => {
|
|
69
|
-
if (url.startsWith('https:'))
|
|
70
|
-
shell.openExternal(url);
|
|
71
|
-
return { action: 'deny' };
|
|
72
|
-
});
|
|
73
|
-
// win.webContents.on('will-navigate', (event, url) => { }) #344
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
app.whenReady().then(async () => {
|
|
77
|
-
createWindow();
|
|
78
|
-
});
|
|
79
|
-
|
|
80
|
-
app.on('window-all-closed', () => {
|
|
81
|
-
win = null;
|
|
82
|
-
if (process.platform !== 'darwin')
|
|
83
|
-
app.quit();
|
|
84
|
-
});
|
|
85
|
-
|
|
86
|
-
app.on('second-instance', () => {
|
|
87
|
-
if (win) {
|
|
88
|
-
// Focus on the main window if the user tried to open another
|
|
89
|
-
if (win.isMinimized())
|
|
90
|
-
win.restore();
|
|
91
|
-
win.focus();
|
|
92
|
-
}
|
|
93
|
-
});
|
|
94
|
-
|
|
95
|
-
app.on('activate', () => {
|
|
96
|
-
const allWindows = BrowserWindow.getAllWindows();
|
|
97
|
-
if (allWindows.length) {
|
|
98
|
-
allWindows[0].focus();
|
|
99
|
-
}
|
|
100
|
-
else {
|
|
101
|
-
createWindow();
|
|
102
|
-
}
|
|
103
|
-
});
|
|
104
|
-
|
|
105
|
-
// New window example arg: new windows url
|
|
106
|
-
ipcMain.handle('open-win', (_, arg) => {
|
|
107
|
-
const childWindow = new BrowserWindow({
|
|
108
|
-
webPreferences: {
|
|
109
|
-
preload,
|
|
110
|
-
nodeIntegration: true,
|
|
111
|
-
contextIsolation: false,
|
|
112
|
-
},
|
|
113
|
-
});
|
|
114
|
-
|
|
115
|
-
if (process.env.VITE_DEV_SERVER_URL) {
|
|
116
|
-
childWindow.loadURL(`${url}#${arg}`);
|
|
117
|
-
}
|
|
118
|
-
else {
|
|
119
|
-
childWindow.loadFile(indexHtml, { hash: arg });
|
|
120
|
-
}
|
|
121
|
-
});
|
|
122
|
-
|
|
123
|
-
process.on('message', (data) => {
|
|
124
|
-
// electron exit message
|
|
125
|
-
if (data === ELECTRON_EXIT) {
|
|
126
|
-
if (isDev && win) {
|
|
127
|
-
win.webContents.closeDevTools();
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
});
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
// Use IntelliSense to learn about possible attributes.
|
|
3
|
-
// Hover to view descriptions of existing attributes.
|
|
4
|
-
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
|
5
|
-
"version": "0.2.0",
|
|
6
|
-
"configurations": [
|
|
7
|
-
{
|
|
8
|
-
"name": "Debug Electron",
|
|
9
|
-
"type": "node",
|
|
10
|
-
"request": "launch",
|
|
11
|
-
"cwd": "${workspaceFolder}",
|
|
12
|
-
"runtimeExecutable": "${workspaceFolder}/node_modules/.bin/electron",
|
|
13
|
-
"windows": {
|
|
14
|
-
"runtimeExecutable": "${workspaceFolder}/node_modules/.bin/electron.cmd"
|
|
15
|
-
},
|
|
16
|
-
"args": [
|
|
17
|
-
"."
|
|
18
|
-
],
|
|
19
|
-
"outFiles": [
|
|
20
|
-
"${workspaceFolder}/**/*.js",
|
|
21
|
-
"${workspaceFolder}/**/*.cjs",
|
|
22
|
-
"${workspaceFolder}/**/*.mjs",
|
|
23
|
-
"!**/node_modules/**"
|
|
24
|
-
],
|
|
25
|
-
"preLaunchTask": "npm:dev"
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
"name": "Debug Web",
|
|
29
|
-
"type": "node",
|
|
30
|
-
"request": "launch",
|
|
31
|
-
"cwd": "${workspaceFolder}",
|
|
32
|
-
"runtimeExecutable": "${workspaceFolder}/node_modules/.bin/electron",
|
|
33
|
-
"windows": {
|
|
34
|
-
"runtimeExecutable": "${workspaceFolder}/node_modules/.bin/electron.cmd"
|
|
35
|
-
},
|
|
36
|
-
"args": [
|
|
37
|
-
"."
|
|
38
|
-
],
|
|
39
|
-
"outFiles": [
|
|
40
|
-
"${workspaceFolder}/**/*.js",
|
|
41
|
-
"${workspaceFolder}/**/*.cjs",
|
|
42
|
-
"${workspaceFolder}/**/*.mjs",
|
|
43
|
-
"!**/node_modules/**"
|
|
44
|
-
],
|
|
45
|
-
"preLaunchTask": "npm:debug"
|
|
46
|
-
}
|
|
47
|
-
]
|
|
48
|
-
}
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
// See https://go.microsoft.com/fwlink/?LinkId=733558
|
|
3
|
-
// for the documentation about the tasks.json format
|
|
4
|
-
"version": "2.0.0",
|
|
5
|
-
"tasks": [
|
|
6
|
-
{
|
|
7
|
-
"type": "npm",
|
|
8
|
-
"script": "dev",
|
|
9
|
-
"label": "npm:dev",
|
|
10
|
-
"problemMatcher": {
|
|
11
|
-
"owner": "typescript",
|
|
12
|
-
"fileLocation": "relative",
|
|
13
|
-
"pattern": {
|
|
14
|
-
"regexp": "^([a-zA-Z]\\:\\/?([\\w\\-]\\/?)+\\.\\w+):(\\d+):(\\d+): (ERROR|WARNING)\\: (.*)$",
|
|
15
|
-
"file": 1,
|
|
16
|
-
"line": 3,
|
|
17
|
-
"column": 4,
|
|
18
|
-
"code": 5,
|
|
19
|
-
"message": 6
|
|
20
|
-
},
|
|
21
|
-
"background": {
|
|
22
|
-
"activeOnStart": true,
|
|
23
|
-
"beginsPattern": "^.*VITE v.* ready in \\d* ms.*$",
|
|
24
|
-
"endsPattern": "^.*\\[tomjs:electron\\] startup electron*$"
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
"isBackground": true,
|
|
28
|
-
"presentation": {
|
|
29
|
-
"reveal": "never"
|
|
30
|
-
},
|
|
31
|
-
"group": {
|
|
32
|
-
"kind": "build",
|
|
33
|
-
"isDefault": true
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
"type": "npm",
|
|
38
|
-
"script": "debug",
|
|
39
|
-
"label": "npm:debug",
|
|
40
|
-
"problemMatcher": {
|
|
41
|
-
"owner": "typescript",
|
|
42
|
-
"fileLocation": "relative",
|
|
43
|
-
"pattern": {
|
|
44
|
-
"regexp": "^([a-zA-Z]\\:\\/?([\\w\\-]\\/?)+\\.\\w+):(\\d+):(\\d+): (ERROR|WARNING)\\: (.*)$",
|
|
45
|
-
"file": 1,
|
|
46
|
-
"line": 3,
|
|
47
|
-
"column": 4,
|
|
48
|
-
"code": 5,
|
|
49
|
-
"message": 6
|
|
50
|
-
},
|
|
51
|
-
"background": {
|
|
52
|
-
"activeOnStart": true,
|
|
53
|
-
"beginsPattern": "^.*VITE v.* ready in \\d* ms.*$",
|
|
54
|
-
"endsPattern": "^.*\\[tomjs:electron\\] startup electron*$"
|
|
55
|
-
}
|
|
56
|
-
},
|
|
57
|
-
"isBackground": true,
|
|
58
|
-
"presentation": {
|
|
59
|
-
"reveal": "never"
|
|
60
|
-
},
|
|
61
|
-
"group": {
|
|
62
|
-
"kind": "build",
|
|
63
|
-
"isDefault": true
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
]
|
|
67
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"i18n-ally.localesPaths": ["locales"],
|
|
3
|
-
"i18n-ally.sourceLanguage": "zh-CN",
|
|
4
|
-
"i18n-ally.displayLanguage": "zh-CN",
|
|
5
|
-
"i18n-ally.keepFulfilled": true,
|
|
6
|
-
"i18n-ally.keystyle": "flat",
|
|
7
|
-
"i18n-ally.sortKeys": true,
|
|
8
|
-
"i18n-ally.translate.promptSource": true,
|
|
9
|
-
"i18n-ally.translate.saveAsCandidates": true,
|
|
10
|
-
|
|
11
|
-
// Disable the default formatter, use eslint instead
|
|
12
|
-
"prettier.enable": false,
|
|
13
|
-
"editor.formatOnSave": true,
|
|
14
|
-
|
|
15
|
-
// Auto fix
|
|
16
|
-
"editor.codeActionsOnSave": {
|
|
17
|
-
"source.fixAll.eslint": "explicit",
|
|
18
|
-
"source.organizeImports": "never"
|
|
19
|
-
},
|
|
20
|
-
|
|
21
|
-
// Silent the stylistic rules in your IDE, but still auto fix them
|
|
22
|
-
"eslint.rules.customizations": [
|
|
23
|
-
{ "rule": "style/*", "severity": "off", "fixable": true },
|
|
24
|
-
{ "rule": "format/*", "severity": "off", "fixable": true },
|
|
25
|
-
{ "rule": "*-indent", "severity": "off", "fixable": true },
|
|
26
|
-
{ "rule": "*-spacing", "severity": "off", "fixable": true },
|
|
27
|
-
{ "rule": "*-spaces", "severity": "off", "fixable": true },
|
|
28
|
-
{ "rule": "*-order", "severity": "off", "fixable": true },
|
|
29
|
-
{ "rule": "*-dangle", "severity": "off", "fixable": true },
|
|
30
|
-
{ "rule": "*-newline", "severity": "off", "fixable": true },
|
|
31
|
-
{ "rule": "*quotes", "severity": "off", "fixable": true },
|
|
32
|
-
{ "rule": "*semi", "severity": "off", "fixable": true }
|
|
33
|
-
],
|
|
34
|
-
|
|
35
|
-
// Enable eslint for all supported languages
|
|
36
|
-
"eslint.validate": [
|
|
37
|
-
"javascript",
|
|
38
|
-
"javascriptreact",
|
|
39
|
-
"typescript",
|
|
40
|
-
"typescriptreact",
|
|
41
|
-
"vue",
|
|
42
|
-
"html",
|
|
43
|
-
"markdown",
|
|
44
|
-
"json",
|
|
45
|
-
"jsonc",
|
|
46
|
-
"yaml",
|
|
47
|
-
"toml",
|
|
48
|
-
"xml",
|
|
49
|
-
"gql",
|
|
50
|
-
"graphql",
|
|
51
|
-
"astro",
|
|
52
|
-
"svelte",
|
|
53
|
-
"css",
|
|
54
|
-
"less",
|
|
55
|
-
"scss",
|
|
56
|
-
"pcss",
|
|
57
|
-
"postcss"
|
|
58
|
-
]
|
|
59
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
// A launch configuration that compiles the extension and then opens it inside a new window
|
|
2
|
-
// Use IntelliSense to learn about possible attributes.
|
|
3
|
-
// Hover to view descriptions of existing attributes.
|
|
4
|
-
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
|
5
|
-
{
|
|
6
|
-
"version": "0.2.0",
|
|
7
|
-
"configurations": [
|
|
8
|
-
{
|
|
9
|
-
"name": "Debug Extension",
|
|
10
|
-
"type": "extensionHost",
|
|
11
|
-
"request": "launch",
|
|
12
|
-
"args": [
|
|
13
|
-
"--disable-extensions",
|
|
14
|
-
"--extensionDevelopmentPath=${workspaceFolder}"
|
|
15
|
-
],
|
|
16
|
-
"outFiles": [
|
|
17
|
-
"${workspaceFolder}/dist/extension/*.js"
|
|
18
|
-
],
|
|
19
|
-
"preLaunchTask": "npm: dev"
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
"name": "Preview Extension",
|
|
23
|
-
"type": "extensionHost",
|
|
24
|
-
"request": "launch",
|
|
25
|
-
"args": [
|
|
26
|
-
"--extensionDevelopmentPath=${workspaceFolder}"
|
|
27
|
-
],
|
|
28
|
-
"outFiles": [
|
|
29
|
-
"${workspaceFolder}/dist/extension/*.js"
|
|
30
|
-
],
|
|
31
|
-
"preLaunchTask": "npm: build"
|
|
32
|
-
}
|
|
33
|
-
]
|
|
34
|
-
}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
// See https://go.microsoft.com/fwlink/?LinkId=733558
|
|
2
|
-
// for the documentation about the tasks.json format
|
|
3
|
-
{
|
|
4
|
-
"version": "2.0.0",
|
|
5
|
-
"tasks": [
|
|
6
|
-
{
|
|
7
|
-
"type": "npm",
|
|
8
|
-
"script": "dev",
|
|
9
|
-
"problemMatcher": {
|
|
10
|
-
"owner": "typescript",
|
|
11
|
-
"fileLocation": "relative",
|
|
12
|
-
"pattern": {
|
|
13
|
-
"regexp": "^([a-zA-Z]\\:/?([\\w\\-]/?)+\\.\\w+):(\\d+):(\\d+): (ERROR|WARNING)\\: (.*)$",
|
|
14
|
-
"file": 1,
|
|
15
|
-
"line": 3,
|
|
16
|
-
"column": 4,
|
|
17
|
-
"code": 5,
|
|
18
|
-
"message": 6
|
|
19
|
-
},
|
|
20
|
-
"background": {
|
|
21
|
-
"activeOnStart": true,
|
|
22
|
-
"beginsPattern": "^.*extension build start*$",
|
|
23
|
-
"endsPattern": "^.*extension (build|rebuild) success.*$"
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
|
-
"isBackground": true,
|
|
27
|
-
"presentation": {
|
|
28
|
-
"reveal": "never"
|
|
29
|
-
},
|
|
30
|
-
"group": {
|
|
31
|
-
"kind": "build",
|
|
32
|
-
"isDefault": true
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
"type": "npm",
|
|
37
|
-
"script": "build",
|
|
38
|
-
"group": {
|
|
39
|
-
"kind": "build",
|
|
40
|
-
"isDefault": true
|
|
41
|
-
},
|
|
42
|
-
"problemMatcher": []
|
|
43
|
-
}
|
|
44
|
-
]
|
|
45
|
-
}
|