-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
185 changed files
with
39,361 additions
and
38,498 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
VITE_BETTER_SQLITE3_BINDING=.\resources\app.asar\native\better_sqlite3.node | ||
VITE_INSTALL=false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,38 @@ | ||
.DS_Store | ||
node_modules | ||
/dist | ||
|
||
|
||
# local env files | ||
.env.local | ||
.env.*.local | ||
|
||
# Log files | ||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
pnpm-debug.log* | ||
lerna-debug.log* | ||
|
||
node_modules | ||
dist | ||
dist-ssr | ||
dist-electron | ||
native | ||
release | ||
*.local | ||
.env | ||
|
||
# Editor directories and files | ||
.vscode/.debug.env | ||
.idea | ||
.vscode | ||
.DS_Store | ||
*.suo | ||
*.ntvs* | ||
*.njsproj | ||
*.sln | ||
*.sw? | ||
|
||
#Electron-builder output | ||
/dist_electron | ||
# lockfile | ||
package-lock.json | ||
pnpm-lock.yaml | ||
yarn.lock | ||
|
||
# VSCode | ||
.history | ||
|
||
/build | ||
# Rust | ||
target |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import fs from 'node:fs' | ||
import path from 'node:path' | ||
import { fileURLToPath } from 'node:url' | ||
import { createRequire } from 'node:module' | ||
import { spawn } from 'node:child_process' | ||
|
||
const pkg = createRequire(import.meta.url)('../package.json') | ||
const __dirname = path.dirname(fileURLToPath(import.meta.url)) | ||
|
||
// write .debug.env | ||
const envContent = Object.entries(pkg.debug.env).map(([key, val]) => `${key}=${val}`) | ||
fs.writeFileSync(path.join(__dirname, '.debug.env'), envContent.join('\n')) | ||
|
||
// bootstrap | ||
spawn( | ||
// TODO: terminate `npm run dev` when Debug exits. | ||
process.platform === 'win32' ? 'npm.cmd' : 'npm', | ||
['run', 'dev'], | ||
{ | ||
stdio: 'inherit', | ||
env: Object.assign(process.env, { VSCODE_DEBUG: 'true' }), | ||
}, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"recommendations": [ | ||
"Vue.volar", | ||
"Vue.vscode-typescript-vue-plugin" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"compounds": [ | ||
{ | ||
"name": "Debug App", | ||
"preLaunchTask": "Before Debug", | ||
"configurations": [ | ||
"Debug Main Process", | ||
"Debug Renderer Process" | ||
], | ||
"presentation": { | ||
"hidden": false, | ||
"group": "", | ||
"order": 1 | ||
}, | ||
"stopAll": true | ||
} | ||
], | ||
"configurations": [ | ||
{ | ||
"name": "Debug Main Process", | ||
"type": "node", | ||
"request": "launch", | ||
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron", | ||
"windows": { | ||
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron.cmd" | ||
}, | ||
"runtimeArgs": [ | ||
"--remote-debugging-port=9229", | ||
"." | ||
], | ||
"envFile": "${workspaceFolder}/.vscode/.debug.env", | ||
"console": "integratedTerminal" | ||
}, | ||
{ | ||
"name": "Debug Renderer Process", | ||
"port": 9229, | ||
"request": "attach", | ||
"type": "chrome", | ||
"timeout": 60000, | ||
"skipFiles": [ | ||
"<node_internals>/**", | ||
"${workspaceRoot}/node_modules/**", | ||
"${workspaceRoot}/dist-electron/**", | ||
// Skip files in host(VITE_DEV_SERVER_URL) | ||
"http://127.0.0.1:3344/**" | ||
] | ||
}, | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"typescript.tsdk": "node_modules/typescript/lib", | ||
"typescript.tsc.autoDetect": "off", | ||
"json.schemas": [ | ||
{ | ||
"fileMatch": [ | ||
"/*electron-builder.json5", | ||
"/*electron-builder.json" | ||
], | ||
"url": "https://json.schemastore.org/electron-builder" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
// See https://go.microsoft.com/fwlink/?LinkId=733558 | ||
// for the documentation about the tasks.json format | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"label": "Before Debug", | ||
"type": "shell", | ||
"command": "node .vscode/.debug.script.mjs", | ||
"isBackground": true, | ||
"problemMatcher": { | ||
"owner": "typescript", | ||
"fileLocation": "relative", | ||
"pattern": { | ||
// TODO: correct "regexp" | ||
"regexp": "^([a-zA-Z]\\:\/?([\\w\\-]\/?)+\\.\\w+):(\\d+):(\\d+): (ERROR|WARNING)\\: (.*)$", | ||
"file": 1, | ||
"line": 3, | ||
"column": 4, | ||
"code": 5, | ||
"message": 6 | ||
}, | ||
"background": { | ||
"activeOnStart": true, | ||
"beginsPattern": "^.*VITE v.* ready in \\d* ms.*$", | ||
"endsPattern": "^.*\\[startup\\] Electron App.*$" | ||
} | ||
} | ||
} | ||
] | ||
} |
Oops, something went wrong.