84 lines
2.3 KiB
JSON
84 lines
2.3 KiB
JSON
{
|
|
"name": "python-profiler-visualizer",
|
|
"version": "0.1.0",
|
|
"description": "粘贴 Python 代码,科学地可视化各部分耗时并给出可优化点",
|
|
"main": "out/main/index.js",
|
|
"author": "guanjihuan",
|
|
"license": "MIT",
|
|
"scripts": {
|
|
"dev": "electron-vite dev",
|
|
"build": "electron-vite build",
|
|
"start": "electron-vite preview",
|
|
"typecheck": "tsc --noEmit",
|
|
"lint": "eslint . --ext .ts,.tsx,.cjs",
|
|
"lint:fix": "eslint . --ext .ts,.tsx,.cjs --fix",
|
|
"format": "prettier --write \"**/*.{ts,tsx,css,json,md}\"",
|
|
"format:check": "prettier --check \"**/*.{ts,tsx,css,json,md}\"",
|
|
"test": "vitest run",
|
|
"test:watch": "vitest",
|
|
"fixture:golden": "node scripts/regen-golden.mjs",
|
|
"pretest:e2e": "electron-vite build",
|
|
"test:e2e": "playwright test",
|
|
"release": "npm run build && electron-builder --win --x64"
|
|
},
|
|
"engines": {
|
|
"node": ">=20",
|
|
"npm": ">=10"
|
|
},
|
|
"build": {
|
|
"appId": "com.guanjihuan.python-profiler-visualizer",
|
|
"productName": "Python Profiler Visualizer",
|
|
"directories": {
|
|
"output": "release"
|
|
},
|
|
"files": [
|
|
"out/**/*",
|
|
"package.json",
|
|
"icon.ico"
|
|
],
|
|
"win": {
|
|
"target": [
|
|
{
|
|
"target": "nsis",
|
|
"arch": [
|
|
"x64"
|
|
]
|
|
}
|
|
],
|
|
"icon": "icon.ico"
|
|
}
|
|
},
|
|
"dependencies": {
|
|
"@monaco-editor/react": "^4.6.0",
|
|
"monaco-editor": "^0.52.0"
|
|
},
|
|
"devDependencies": {
|
|
"@playwright/test": "^1.46.0",
|
|
"@testing-library/jest-dom": "^6.4.8",
|
|
"@testing-library/react": "^16.0.1",
|
|
"@types/node": "^20.14.0",
|
|
"@types/react": "^18.3.3",
|
|
"@types/react-dom": "^18.3.0",
|
|
"@typescript-eslint/eslint-plugin": "^7.18.0",
|
|
"@typescript-eslint/parser": "^7.18.0",
|
|
"@vitejs/plugin-react": "^4.3.1",
|
|
"autoprefixer": "^10.4.19",
|
|
"electron": "^31.3.1",
|
|
"electron-builder": "^24.13.3",
|
|
"electron-vite": "^2.3.0",
|
|
"eslint": "^8.57.1",
|
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
"eslint-plugin-react": "^7.37.5",
|
|
"eslint-plugin-react-hooks": "^4.6.2",
|
|
"jsdom": "^24.1.1",
|
|
"postcss": "^8.4.40",
|
|
"prettier": "^3.9.6",
|
|
"react": "^18.3.1",
|
|
"react-dom": "^18.3.1",
|
|
"tailwindcss": "^3.4.7",
|
|
"typescript": "^5.5.4",
|
|
"vite": "^5.3.5",
|
|
"vitest": "^2.0.5"
|
|
}
|
|
}
|